# frozen_string_literal: true
FOO = %w(one two three).freeze
# frozen_string_literal: true
FOO = [%w(one two three)].freeze
Note the extra array.
Save this as foo.rb:
# frozen_string_literal: true
FOO = %w(one two three)
rubocop -c /dev/null -a foo.rb
$ rubocop -V
0.47.1 (using Parser 2.3.3.1, running on ruby 2.3.3 x86_64-darwin16)
I confirmed this and I'm looking into it.
Thank you @mikegee !
Most helpful comment
I confirmed this and I'm looking into it.