You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rubocop crashed on an infinite loop caused by Layout/ArgumentAlignment -> Layout/HashAlignment:
rubocop -a -c .rubocop.yml --debug
...
lib/package.rb:25:24: C: [Corrected] Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.
componentFileFilter: { 'all' => nil },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/package.rb:25:30: C: [Corrected] Layout/HashAlignment: Align the separators of a hash literal if they span more than one line.
componentFileFilter: { 'all' => nil },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/package.rb:26:28: C: [Corrected] Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.
componentOption: { 'all' => { run_postinstall: true } },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/package.rb:26:30: C: [Corrected] Layout/HashAlignment: Align the separators of a hash literal if they span more than one line.
componentOption: { 'all' => { run_postinstall: true } },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/package.rb:27:28: C: [Corrected] Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.
descriptionList: {}
^^^^^^^^^^^^^^^^^^^
lib/package.rb:27:30: C: [Corrected] Layout/HashAlignment: Align the separators of a hash literal if they span more than one line.
descriptionList: {}
^^^^^^^^^^^^^^^^^^^
8 files inspected, 221 offenses detected, 6 offenses corrected, 105 more offenses can be corrected with `rubocop -A`
Infinite loop detected in /home/zopolis4/chromebrew/lib/package.rb and caused by Layout/ArgumentAlignment -> Layout/HashAlignment
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:296:in `check_for_infinite_loop'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:279:in `block in iterate_until_no_changes'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:278:in `loop'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:278:in `iterate_until_no_changes'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:247:in `do_inspection_loop'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:130:in `block in file_offenses'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:155:in `file_offense_cache'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:129:in `file_offenses'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:120:in `process_file'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:101:in `block in each_inspected_file'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:100:in `each'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:100:in `reduce'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:100:in `each_inspected_file'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:86:in `inspect_files'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/runner.rb:47:in `run'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli/command/execute_runner.rb:26:in `block in execute_runner'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli/command/execute_runner.rb:52:in `with_redirect'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli/command/execute_runner.rb:25:in `execute_runner'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli/command/execute_runner.rb:17:in `run'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli/command.rb:11:in `run'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli/environment.rb:18:in `run'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli.rb:71:in `run_command'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli.rb:78:in `execute_runners'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/lib/rubocop/cli.rb:47:in `run'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/exe/rubocop:12:in `block in <top (required)>'
/usr/lib/ruby/2.7.0/benchmark.rb:308:in `realtime'
/var/lib/gems/2.7.0/gems/rubocop-1.29.1/exe/rubocop:12:in `<top (required)>'
/usr/local/bin/rubocop:23:in `load'
/usr/local/bin/rubocop:23:in `<main>'
Finished in 2.2580198920004477 seconds
The broken area of code in question:
class << selfattr_reader_with_defaultcomponentList: ['all'],componentFileFilter: {'all'=>nil},componentOption: {'all'=>{run_postinstall: true}},descriptionList: {}attr_accessor:name,:is_dep,:in_build,:build_from_source,:in_upgrade,:target_componentend
…Alignment`
Fixesrubocop#10665.
This PR fixes an incorrect autocorrect for `EnforcedStyle: with_first_argument` of
`Layout/ArgumentAlignment` and `EnforcedColonStyle: separator` of `Layout/HashAlignment`.
Fixes#10665.
This PR fixes an incorrect autocorrect for `EnforcedStyle: with_first_argument` of
`Layout/ArgumentAlignment` and `EnforcedColonStyle: separator` of `Layout/HashAlignment`.
Expected behavior
I expected rubocop not to crash.
Actual behavior
Rubocop crashed on an infinite loop caused by Layout/ArgumentAlignment -> Layout/HashAlignment:
The broken area of code in question:
The contents of the rubocop.yml file:
RuboCop version
The text was updated successfully, but these errors were encountered: