-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update to rubocop 1.59 [NTC-130] #56
Update to rubocop 1.59 [NTC-130] #56
Conversation
@@ -70,3 +70,4 @@ workflows: | |||
- "3.0.0" | |||
- "3.1.1" | |||
- "3.2.0" | |||
- "3.3.0" |
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.
We could drop Ruby 2.7 support while we're at it as 2.7 is EOL.
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.
The underlying rubocop version still supports it, so I think we might as well keep it as long as it doesn't hurt the maintenance of this gem.
Dropping support for ruby 2.7 might actually make it harder to move a project from 2.7 to 3+, since instead of bumping rubocop, fixing things and then bumping ruby, you are forced to either bump both of them together or go through 2 rubocop version upgrades.
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.
Are there any new cops in the updated version of Rubocop that we want to proactively enable or explicitly disable?
Not sure, it's a very long list since 1.43: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md I guess I can try running this locally on con-u and give my opinion on any new complaints that I personally disagree with, but not sure how to arrive at a final list without reviewing all the new ones with some sort of committee. |
That is a long list. We can always defer this analysis after releasing/unblocking Ruby 3.3 support. The process for enabling/disabling cops is documented here. We're also very open to suggestions on how to evolve this process if you have ideas. |
@jturkel On con-u I didn't find any new complaints that I thought should be disabled. With the exception of |
Looks like I found one after all: #57 |
Problem
The current underlying version of rubocop doesn't support Ruby 3.3.
Solution
Bump the rubocop version to one that supports Ruby 3.3 (1.46+). Since we're upgrading we might as well upgrade to the latest version.
Blocking https://github.com/salsify/con-u/pull/5195
Prime: @erikkessler1 @jturkel
CC: @salsify/network-core