-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
The new rcop release 1.84.0 changes indentation inside block arguments (closures passed to methods), reducing indentation by 2 spaces. This appears to be a regression from fixes that were applied in 1.82.1.
Steps to reproduce the problem
update your rubocop to 1.84.0
Expected behavior
Block body should be indented 2 spaces relative to the method call, not aligned with the opening brace.
.indent {
- out
- .break
- .sep_with_breaks(inner) { |v|
- simplified_process(v)
- }
+ out
+ .break
+ .sep_with_breaks(inner) { |v|
+ simplified_process(v)
+ }
}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:
$ [bundle exec] rubocop -V
1.84.0 (using Parser 3.3.10.1, Prism 1.8.0, rubocop-ast 1.49.0, analyzing as Ruby 3.4, running on ruby 3.4.1) [x86_64-linux]
- rubocop-minitest 0.38.2
- rubocop-performance 1.26.1
Reactions are currently unavailable