lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.47.1 vs lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.48.0

- old
+ new

@@ -55,10 +55,10 @@ PERCENT_W = '%w'.freeze PERCENT_CAPITAL_W = '%W'.freeze PERCENT_I = '%i'.freeze PERCENT_CAPITAL_I = '%I'.freeze ARRAY_NEW_PATTERN = '$(send (const nil :Array) :new ...)'.freeze - ASSIGNMENT_TYPES = [:lvasgn, :ivasgn, :cvasgn, :gvasgn].freeze + ASSIGNMENT_TYPES = %i(lvasgn ivasgn cvasgn gvasgn).freeze def_node_matcher :literal_expansion?, <<-PATTERN (splat {$({str dstr int float array} ...) (block #{ARRAY_NEW_PATTERN} ...) #{ARRAY_NEW_PATTERN}} ...) PATTERN