-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Lint/EndAlignment disabled by default (was After Style/ConditionalAssignment auto-correct Lint/EndAlignment does not auto-correct) #2719
Comments
Auto-correct Lint/EndAlignment:
AutoCorrect: true I am not sure why auto-correct is disabled on this cop by default. So far, it seems to work just fine to me. Maybe @bbatsov, @jonas054, or @lumeet could shed some light on this. If none of them are opposed, I am for enabling auto-correct on |
Same here. |
Here's the original reasoning by @jonas054: #1789 (comment). I'm fine either way. |
+1 on enabling auto-correct |
If we enale auto-correct by default for |
The original intention for leaving auto-correct disabled makes sense. The concept of |
I think there is a better solution; make In practice the conditional indentation cop is the only place where we are getting complaints about end indentation. |
If I need to code |
Personally, I think the ideal situation is that cops never create offenses for other cops to correct. But that is probably not achievable. It doesn't matter much if some cops occasionally create new offenses. |
@alexdowad I agree. |
…ment [Fix #2719] ConditionalAssignment handles end alignment
gets auto-corrected to:
and Lint/EndAlignment refuses to auto-correct this.
Tested with rubocop version 0.36.0
The text was updated successfully, but these errors were encountered: