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
"Layout/AlignHash" Cop renamed in v0.77 #7
Comments
Layout/AlignHash
to Layout/HashAlignment
I think it is OK to break backwards compatibility; we have a precedent for this. We added In terms of better ways to deal with this, I believe that projects can reference the conventions file by git SHA (e.g. https://raw.githubusercontent.com/carbonfive/c5-conventions/2ecae4ad486cf2de4d1b5d3113f2be12bf406123/rubocop/rubocop.yml) so that they don't track the latest changes of the master branch. There is also a way to distribute rubocop conventions as a gem: https://docs.rubocop.org/en/stable/configuration/#inheriting-configuration-from-a-remote-url. That would be more work in terms of packaging but it would then allow each project to pin to a version of the conventions via a gem dependency. Personally I think there are two slightly different use cases that might warrant different solutions.
|
Layout/Align hash was renamed (#7), change the config file accordingly.
@mattbrictson that makes sense. I was thinking about what happened with Also, this is a good suggestion:
|
Oops, I think there's more:
Will fix the others! |
Layout/AlignHash, and other cops were renamed in Rubocop 0.77 (see #7). Change the config accordingly.
Closed in #8 |
The Rubocop 0.77 release "standardized" some of the cop names. Unfortunately, our conventions disable one of the renamed cops (
Layout/AlignHash
).c5-conventions/rubocop/rubocop.yml
Lines 28 to 29 in 2ecae4a
Users of our conventions will see an error when they upgrade to v0.77:
I think we should update the conventions file. However, this may break things for users of Rubocop < v0.77.
Is there a good way to deal with this?
The text was updated successfully, but these errors were encountered: