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
Infinite loop detected (rubocop failed with code=2) #7899
Labels
Comments
I cannot reproduce this issue in the default configuration of RuboCop. Con you show me your .rubocop.yml? |
.rubocop.yml
.rubocop_todo.yml
|
Thanks for the showing me your .rubocop.yml. I can reproduce this issue. |
8 tasks
koic
added a commit
to koic/rubocop
that referenced
this issue
Apr 24, 2020
…Operators` Fixes rubocop#7899. This PR fixes the following infinite loop error for `Layout/SpaceAroundOperators` with `Layout/ExtraSpacing` when using `ForceEqualSignAlignment: true`. ```console % bundle exec rubocop -V 0.82.0 (using Parser 2.7.1.1, running on ruby 2.7.0 x86_64-darwin17) % cat .rubocop.yml Layout/ExtraSpacing: ForceEqualSignAlignment: true % cat example.rb test123456 = nil test1234 = nil test1_test2_test3_test4_12 =nil % bundle exec rubocop -a --only Layout/ExtraSpacing,Layout/SpaceAroundOperators (snip) Infinite loop detected in /Users/koic/src/github.com/koic/rubocop-issues/7899/example.rb. /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/runner.rb:287:in `check_for_infinite_loop' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/runner.rb:270:in `block in iterate_until_no_changes' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/runner.rb:269:in `loop' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/runner.rb:269:in `iterate_until_no_changes' ```
koic
added a commit
that referenced
this issue
Apr 24, 2020
…ce_around_operators [Fix #7899] Fix an infinite loop error for `Layout/SpaceAroundOperators`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following code
Expected behavior
Align
=
Describe here how you expected RuboCop to behave in this particular situation.
Actual behavior
Steps to reproduce the problem
Save the first snippet as
rubocop_error.rb
and executeRuboCop version
The text was updated successfully, but these errors were encountered: