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?
to your account
Rubocop linting should pass with no errors.
Rubocop raises the error An error occurred while Style/ConditionalAssignment cop was inspecting and
rubocop --debug did not provide any useful info.
An error occurred while Style/ConditionalAssignment cop was inspecting
Error is raised for the line failures += 1 in this method:
failures += 1
def perform(action = nil)
failures = 0
@collection.each do |object|
failures += 1
redirect_to request.referer || @return_path, notice: notice_message(@collection.length, failures, action)
$ [bundle exec] rubocop -V
1.27.0 (using Parser 220.127.116.11, rubocop-ast 1.16.0, running on ruby 3.0.2 x86_64-linux)
- rubocop-performance 1.13.3
- rubocop-rails 2.14.2
- rubocop-rspec 2.9.0
The text was updated successfully, but these errors were encountered:
[Fix rubocop#10737] Fix crash in Style/ConditionalAssignment with `…
…EnforcedStyle: assign_inside_condition` when op-assigning a variable inside a `resbody`.
Merge pull request #10738 from dvandersluis/issue/10737
[Fix #10737] Fix crash in `Style/ConditionalAssignment` with `EnforcedStyle: assign_inside_condition` when op-assigning a variable inside a `resbody`
Successfully merging a pull request may close this issue.