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
Given a file rubocop.rb:
rubocop.rb
foo.bar = 'baz' and bang
Run:
rubocop -a rubocop.rb
Autocorrection for Style/AndOr does not break syntax of assignment operations, e.g.:
Style/AndOr
(foo.bar = 'baz') && bang
Autocorrection for Style/AndOr does break syntax of assignment operations:
foo.bar(= 'baz') && bang
$ rubocop -V 0.42.0 (using Parser 2.3.1.2, running on ruby 2.3.0 x86_64-linux)
The text was updated successfully, but these errors were encountered:
[fix rubocop#3445] by special casing setter methods
d84fbfc
3fadc5a
[Fix rubocop#3445] Handle properly setter methods auto-correct in Sty…
d45d31b
…le/AndOr (rubocop#3454)
No branches or pull requests
Steps to reproduce the problem
Given a file
rubocop.rb
:Run:
Expected behavior
Autocorrection for
Style/AndOr
does not break syntax of assignment operations, e.g.:Actual behavior
Autocorrection for
Style/AndOr
does break syntax of assignment operations:RuboCop version
The text was updated successfully, but these errors were encountered: