-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
style: use RuboCop 0.41.2, adjust defaults #489
Conversation
Changes to our style configuration: - Consolidate all rules related to Ruby 1.8 compatibility in one place. - Codify our de-facto preference for `alias_method` over `alias` (drops offense count by 54 after turning this on). - Drop `Style/SignalException` as `only_raise` has been the new default for quite a while (since RuboCop 0.37.0).
@@ -3,9 +3,13 @@ AllCops: | |||
- 'Homebrew/vendor/**/*' | |||
- 'Homebrew/test/vendor/**/*' | |||
|
|||
# 1.8-style hash keys | |||
# Ruby 1.8 compatibility |
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.
Maybe put all these last in the file?
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.
I don't have a strong preference. It felt nice to “reuse” this comment and to keep it at the top as a constant reminder for every reader of this file that we're still stuck with Ruby 1.8 (until this is no longer the case).
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.
Sorry, I see now it's right at the top. Seems fine 👍
👍 |
1 similar comment
👍 |
Changes to our style configuration: - Consolidate all rules related to Ruby 1.8 compatibility in one place. - Codify our de-facto preference for `alias_method` over `alias` (drops offense count by 54 after turning this on). - Drop `Style/SignalException` as `only_raise` has been the new default for quite a while (since RuboCop 0.37.0).
brew tests
with your changes locally?Changes to our style configuration:
alias_method
overalias
(drops offense count by 54 after turning this on).Style/SignalException
asonly_raise
has been the new default for quite a while (since RuboCop 0.37.0).