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
rubocop: default hash syntax. #16848
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's some proper magic right there
As-of 3.1: this mean that you omit the hash value if the name is the same as the key. We're allowing this already and it didn't make sense to land until the bulk of the other RuboCop 3.1 changes did but, now we're ready, it is more concise and a pattern that people will need to understand anyway.
28e5cde
to
29fa57e
Compare
any idea what's going on or how to debug this @dduugg? |
This is your culprit (error message could be better): https://github.com/Homebrew/brew/pull/16848/files#diff-7f62150baa805002e8934bd1ae264d83858f2a7587d7f1db2d4f33a5bc5e57a3 |
29fa57e
to
ea2892f
Compare
Thanks all for the catch 👁️ |
Follow-up to Homebrew/brew#16848. Signed-off-by: Steve Peters <[email protected]>
Follow-up to Homebrew/brew#16848. Signed-off-by: Steve Peters <[email protected]>
As-of 3.1: this mean that you omit the hash value if the name is the same as the key.
We're allowing this already and it didn't make sense to land until the bulk of the other RuboCop 3.1 changes did but, now we're ready, it is more concise and a pattern that people will need to understand anyway.