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
$ bundle exec rubocop -A test_file.rb --only Layout/ArgumentAlignment,Layout/FirstHashElementIndentation --debug
For /Users/natmorcos/src/github.com/MyApp: configuration from /Users/natmorcos/src/github.com/MyApp/.rubocop.yml
configuration from /Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-rails-2.10.1/config/default.yml
configuration from /Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-rails-2.10.1/config/default.yml
Default configuration from /Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/config/default.yml
Inheriting configuration from /Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-my-org-2.1.0/rubocop.yml
Inheriting configuration from /Users/natmorcos/src/github.com/MyApp/.rubocop_todo.yml
.rubocop.yml: Layout/LineLength:IgnoredPatterns overrides the same parameter in .rubocop_todo.yml
Inspecting 1 file
Scanning /Users/natmorcos/src/github.com/MyApp/test_file.rb
C
Offenses:
test_file.rb:4:3: C: [Corrected] Layout/FirstHashElementIndentation: Use 2 spaces forindentationin a hash, relative to the start of the line where the left curly brace is.
"data" => { ...
^^^^^^^^^^^
test_file.rb:4:5: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
"data" => { ...
^^^^^^^^^^^
0 files inspected, 2 offenses detected, 2 offenses corrected
Infinite loop detected in /Users/natmorcos/src/github.com/MyApp/test_file.rb and caused by Layout/ArgumentAlignment -> Layout/FirstHashElementIndentation
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:299:in `check_for_infinite_loop'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:282:in `block in iterate_until_no_changes'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:281:in `loop'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:281:in `iterate_until_no_changes'
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:250:in `do_inspection_loop'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:130:in `block in file_offenses'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:155:in `file_offense_cache'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:129:in `file_offenses'
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:120:in `process_file'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:101:in `block in each_inspected_file'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:100:in `each'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:100:in `reduce'
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:100:in `each_inspected_file'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:86:in `inspect_files'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/runner.rb:47:in `run'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli/command/execute_runner.rb:26:in `block in execute_runner'
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli/command/execute_runner.rb:52:in `with_redirect'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli/command/execute_runner.rb:25:in `execute_runner'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli/command/execute_runner.rb:17:in `run'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli/command.rb:11:in `run'
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli/environment.rb:18:in `run'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli.rb:65:in `run_command'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli.rb:72:in `execute_runners'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/lib/rubocop/cli.rb:41:in `run'
/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/exe/rubocop:12:in `block in<top (required)>'/opt/rubies/2.7.2/lib/ruby/2.7.0/benchmark.rb:308:in `realtime'/Users/natmorcos/.gem/ruby/2.7.2/gems/rubocop-1.15.0/exe/rubocop:12:in `<top (required)>'/Users/natmorcos/.gem/ruby/2.7.2/bin/rubocop:23:in `load'
/Users/natmorcos/.gem/ruby/2.7.2/bin/rubocop:23:in `<top (required)>'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'/Users/natmorcos/.gem/ruby/2.7.2/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'/Users/natmorcos/.gem/ruby/2.7.2/bin/bundle:23:in `load'/Users/natmorcos/.gem/ruby/2.7.2/bin/bundle:23:in `<main>'
Finished in 0.4486390000092797 seconds
RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler.
If you see extension cop versions (e.g. rubocop-performance, rubocop-rspec, and others)
output by rubocop -V, include them as well. Here's an example:
Expected behavior
Successful autocorrect
Actual behavior
Infinite loop detected, rubocop exits in error.
Minimum reproducible test case included below
Steps to reproduce the problem
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler.If you see extension cop versions (e.g.
rubocop-performance
,rubocop-rspec
, and others)output by
rubocop -V
, include them as well. Here's an example:The text was updated successfully, but these errors were encountered: