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
Upgrade to Rubocop 0.57.2 #4300
Conversation
I'd like to see the |
@reitermarkus @apjanke will need a rebase.
I disagree here; the changes that have been made here seem to be more consistent and readable (and more like other Ruby blocks) in their indentation style. I do think we should do the usual "fix Homebrew/homebrew-core styles" PR before this is merged and discuss things there. |
Have opened Homebrew/homebrew-core#28754 to discuss. |
@apjanke Any chance of a rebase here? Thanks! |
992e0fc
to
7525180
Compare
Rebased! |
@@ -0,0 +1,31 @@ | |||
module Hbc |
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.
This file doesn't exist anymore in master
.
Library/Homebrew/constants.rb
Outdated
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
|
|||
# RuboCop version used for `brew style` and `brew cask style` | |||
HOMEBREW_RUBOCOP_VERSION = "0.55.0" | |||
HOMEBREW_RUBOCOP_VERSION = "0.57.1" | |||
HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.19.0" # has to be updated when RuboCop version changes |
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.
Bump to 0.20.0
.
7525180
to
55cf2d2
Compare
Amended to address @reitermarkus's comments. |
Library/Homebrew/constants.rb
Outdated
@@ -1,5 +1,5 @@ | |||
# frozen_string_literal: true | |||
|
|||
# RuboCop version used for `brew style` and `brew cask style` | |||
HOMEBREW_RUBOCOP_VERSION = "0.55.0" | |||
HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.19.0" # has to be updated when RuboCop version changes | |||
HOMEBREW_RUBOCOP_VERSION = "0.57.1" |
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.
0.57.2
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.
Amended.
55cf2d2
to
07e774f
Compare
Library/Homebrew/.rubocop.yml
Outdated
@@ -72,6 +77,11 @@ Naming/PredicateName: | |||
Naming/UncommunicativeMethodParamName: | |||
Enabled: false | |||
|
|||
# I'm not sure how to correct these, and seems to get false positives on | |||
# modifiers used on symbols of methods |
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.
Change this comment to reference rubocop/rubocop#5953.
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.
Done.
07e774f
to
e0a8a79
Compare
Thanks @apjanke! |
Yay! |
brew style
with your changes locally?brew tests
with your changes locally?Any interest in upgrading to Rubocop 0.57.1? I thought it might fix an error I was running in to with
brew style --rspec
. It didn't, but I went and did the work for it anyway (including style fixes) before realizing that. Do we care about being on a newer version of Rubocop?