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
Feature request: add an option to Layout/ExtraSpacing rule for table aligned arguments #5657
Comments
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! |
Hi, I would just like to second this. This is a major source of annoyance for me and I wish there were some way to have rubocop recognize parameters intentionally aligned this way. |
Possibly related to #2035 |
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 issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
Reopen HOW? |
I have this Rails migration:
Layout/ExtraSpacing
complains ont.citext :email, null: false, index: { unique: true }
line because there's too much space; but I like how they are aligned. I'd love ifLayout/ExtraSpacing
rule had some kind ofAllowTableStyleArgumentsAlignment
option in order to allow this kind of alignment.Expected behavior
t.citext :email, null: false, index: { unique: true }
line in the example above shouldn't complain if some kind ofAllowTableStyleArgumentsAlignment
option is enabledActual behavior
t.citext :email, null: false, index: { unique: true }
line raisesLayout/ExtraSpacing
rule violationRuboCop version
The text was updated successfully, but these errors were encountered: