Run rubocop -a on the following code:
TERMINAL_STATES = %w[rejected failed complete undefined]
Results in the following code:
TERMINAL_STATES = [%w(rejected failed complete undefined)].freeze
Which ultimately changes the behaviour of the code.
TERMINAL_STATES = %w(rejected failed complete undefined).freeze
$ rubocop -V
0.47.1 (using Parser 2.4.0.0, running on ruby 2.3.0 x86_64-darwin16)
This was fixed by https://github.com/bbatsov/rubocop/pull/3962, but isn't released yet.
@bbatsov, we've had a few reports of this problem. I suggest releasing in the next couple weeks, if you can. How can I help?
0.48.0 is now released. Can we close this @cabello? 馃檪
Sure, I will update the gem on my projects, thank you very much!
Most helpful comment
This was fixed by https://github.com/bbatsov/rubocop/pull/3962, but isn't released yet.
@bbatsov, we've had a few reports of this problem. I suggest releasing in the next couple weeks, if you can. How can I help?