Skip to content
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

Merged
merged 2 commits into from Mar 8, 2024
Merged

Conversation

MikeMcQuaid
Copy link
Member

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.

@MikeMcQuaid MikeMcQuaid requested a review from a team March 7, 2024 15:45
Copy link
Member

@SMillerDev SMillerDev left a 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.
@MikeMcQuaid
Copy link
Member Author

Error: You called sig twice without declaring a method in between

any idea what's going on or how to debug this @dduugg?

@dduugg
Copy link
Sponsor Member

dduugg commented Mar 7, 2024

Error: You called sig twice without declaring a method in between

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

@MikeMcQuaid
Copy link
Member Author

Thanks all for the catch 👁️

@MikeMcQuaid MikeMcQuaid changed the title rubocop default hash syntax rubocop: default hash syntax. Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-core that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-bundle that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-command-not-found that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-formula-analytics that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-services that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-test-bot that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-test-bot that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
MikeMcQuaid added a commit to Homebrew/homebrew-cask that referenced this pull request Mar 7, 2024
@MikeMcQuaid MikeMcQuaid merged commit b70884a into master Mar 8, 2024
34 checks passed
@MikeMcQuaid MikeMcQuaid deleted the rubocop_default_hash_syntax branch March 8, 2024 07:55
scpeters added a commit to osrf/homebrew-simulation that referenced this pull request Mar 11, 2024
Follow-up to Homebrew/brew#16848.

Signed-off-by: Steve Peters <[email protected]>
scpeters added a commit to osrf/homebrew-simulation that referenced this pull request Mar 11, 2024
Follow-up to Homebrew/brew#16848.

Signed-off-by: Steve Peters <[email protected]>
@github-actions github-actions bot added the outdated PR was locked due to age label Apr 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants