-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
RescueEnsureAlignment and IndentationWidth don't work properly together #7470
Comments
We have this issue too, we just have the cop disabled because alignment is much worse when this cop is turned on. would love a nice fix to it someday |
Subscribing in case this is related to / fixed by #7531 My use case: #7531 (comment) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This is still an issue... |
I think this is now addressed by enabling the Layout/BeginEndAlignment cop with |
I tested this against our application and saw little-to-no issues anymore. Quite nice actually. So you can consider my comment resolved. Might be able to just close this issue |
Ah yes I meant to test this. If someone else has tested then I think we can close it. Thanks for the fix! |
An indented
begin rescue
expression does not indent the innerbegin
section correctly nor theend
Expected behavior
should be reformated to be
Actual behavior
it reformats to
where both the
yield
and theend
are not indented.Steps to reproduce the problem
The above code should reproduce
RuboCop version
The text was updated successfully, but these errors were encountered: