lib/rubocop/cop/rspec/empty_metadata.rb in rubocop-rspec-3.2.0 vs lib/rubocop/cop/rspec/empty_metadata.rb in rubocop-rspec-3.3.0

- old
+ new

@@ -19,9 +19,10 @@ MSG = 'Avoid empty metadata hash.' def on_metadata(_symbols, hash) return unless hash&.pairs&.empty? + return if hash.children.any?(&:kwsplat_type?) add_offense(hash) do |corrector| remove_empty_metadata(corrector, hash) end end