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
Regression in 0.91.0 in Layout/RescueEnsureAlignment #8760
Comments
I'm still seeing this with RuboCop 0.91.1. |
@mvz I cannot reproduce this issue with RuboCop 0.91.1. Can you provide the issue code? |
@koic here's a simple reproduction: foo.rb: # frozen_string_literal: true
foo = begin
bar
rescue StandardError
baz
end
qux foo .rubocop.yml: AllCops:
NewCops: enable Output:
RuboCop version info:
|
I get the same result with the following Layout/BeginEndAlignment:
Enabled: true |
@mvz I get it. The default configuration for Layout/BeginEndAlignment:
Enabled: true
EnforcedStyleAlignWith: begin https://docs.rubocop.org/rubocop/0.92/cops_layout.html#layoutbeginendalignment |
@koic Thanks for looking into this. Changing the EnforcedStyleAlignWith to I'm a little confused by the difference in default settings between Layout/BeginEndAlignment and Layout/EndAlignment, but that's another issue. |
Previously this was valid:
But now after upgrading to 0.91.0 this trips:
Layout/RescueEnsureAlignment
Possibly due to changes https://github.com/rubocop-hq/rubocop/pull/8628/files#diff-e066e4a443e8fb75fe62f10fef9c6866R24
The text was updated successfully, but these errors were encountered: