-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 in this code snippet #3690
Comments
I cannot reproduce this on rubocop
|
@tejasbubane I was able to reproduce on RuboCop Here is the stack trace work/rubocop/lib/rubocop/runner.rb:233:in `check_for_infinite_loop'
work/rubocop/lib/rubocop/runner.rb:216:in `block in iterate_until_no_changes'
work/rubocop/lib/rubocop/runner.rb:215:in `loop'
work/rubocop/lib/rubocop/runner.rb:215:in `iterate_until_no_changes'
work/rubocop/lib/rubocop/runner.rb:186:in `do_inspection_loop'
work/rubocop/lib/rubocop/runner.rb:101:in `block in file_offenses'
work/rubocop/lib/rubocop/runner.rb:111:in `file_offense_cache'
work/rubocop/lib/rubocop/runner.rb:99:in `file_offenses'
work/rubocop/lib/rubocop/runner.rb:90:in `process_file'
work/rubocop/lib/rubocop/runner.rb:68:in `block in each_inspected_file'
work/rubocop/lib/rubocop/runner.rb:65:in `each'
work/rubocop/lib/rubocop/runner.rb:65:in `reduce'
work/rubocop/lib/rubocop/runner.rb:65:in `each_inspected_file'
work/rubocop/lib/rubocop/runner.rb:57:in `inspect_files'
work/rubocop/lib/rubocop/runner.rb:36:in `run'
work/rubocop/lib/rubocop/cli.rb:72:in `execute_runner'
work/rubocop/lib/rubocop/cli.rb:27:in `run' |
I was able to narrow this down to a single cop. Running |
Thanks! |
The text was updated successfully, but these errors were encountered: