class RuboCop::Cop::RSpec::EmptyMetadata
def on_metadata(_symbols, 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