New issue
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
Failure in Lint/SelfAssignment #8422
Labels
Comments
koic
added a commit
to koic/rubocop
that referenced
this issue
Jul 31, 2020
Fixes rubocop#8422. Fix an error for `Lint/SelfAssignment` when using or-assignment for constant.
8 tasks
bbatsov
pushed a commit
that referenced
this issue
Jul 31, 2020
Fixes #8422. Fix an error for `Lint/SelfAssignment` when using or-assignment for constant.
I'm getting the same error with the following code: A = if foo
bar
else
end Full check:
|
koic
added a commit
to koic/rubocop
that referenced
this issue
May 9, 2023
Fixes rubocop#8422 (comment). This PR fixes an error for `Naming/ConstantName` when assigning a constant from an empty branch of `else`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Cop runs
Actual behavior
Cop throws error
Steps to reproduce the problem
Run rubocop with:
bundle exec rubocop --only Lint/SelfAssignment /Users/tsmith/dev/oss/IT-CPE_facebook/itchef/cookbooks/cpe_applocker/libraries/applocker_helpers.rb -d
against:
https://github.com/facebook/IT-CPE/blob/master/itchef/cookbooks/cpe_applocker/libraries/applocker_helpers.rb
RuboCop version
The text was updated successfully, but these errors were encountered: