We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I run rubocop -a on the following code:
rubocop -a
if fruit == 'juicy' CHOICE = 'apple'.freeze else CHOICE = 'grape'.freeze end
It autocorrects it to this:
= if fruit == 'juicy' 'apple'.freeze else 'grape'.freeze end
But it should be this:
CHOICE = if fruit == 'juicy' 'apple'.freeze else 'grape'.freeze end
$ rubocop -V 0.36.0 (using Parser 2.3.0.1, running on ruby 2.2.4 x86_64-linux)
The text was updated successfully, but these errors were encountered:
I have a fix for this coming up
Sorry, something went wrong.
27ec4a5
Merge pull request #2648 from segiddins/seg-casgn-conditional-assignment
6ec674c
[Fix #2646] Auto-correcting assignment to a constant in `Style/Condit…
No branches or pull requests
If I run
rubocop -a
on the following code:It autocorrects it to this:
But it should be this:
The text was updated successfully, but these errors were encountered: