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
I do not know if I miss something or I found a bug
return nil unless user and user[:id]
to
return nil unless user && user[:id]
return nil unless user && user[:id)](
I have the lines
return nil unless user and user[:id] { status: "success", validation: true, }
And when I run
rubocop --auto-correct
I get
return nil unless user && user[:id)]( { status: "success", validation: true, }
Also rubocop detect the new error
E: unexpected token tRPAREN (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops) return nil unless user && user[:id)](
$ rubocop -V 0.48.1 (using Parser 2.4.0.0, running on ruby 2.3.1 x86_64-linux-gnu)
The text was updated successfully, but these errors were encountered:
Fix Style/AndOr auto-correct bug
7aaccc9
see rubocop#4352
Assuming this is the same thing I'm experiencing:
(a[:a] or a) # Becomes (a[:a)](|| a)
Sorry, something went wrong.
[Fix rubocop#4352] Fix auto-correct of AndOr with Enumerable accessors
10577b6
[Fix #4352] Fix auto-correct of AndOr with Enumerable accessors
fc2339f
Successfully merging a pull request may close this issue.
I do not know if I miss something or I found a bug
Expected behavior
to
Actual behavior
to
Steps to reproduce the problem
I have the lines
And when I run
I get
Also rubocop detect the new error
RuboCop version
The text was updated successfully, but these errors were encountered: