-
Notifications
You must be signed in to change notification settings - Fork 47
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
Bump rubocop from 1.56.4 to 1.57.1 #582
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% rubocop_version = Gem.loaded_specs.fetch("rubocop").version %> | ||
|
||
inherit_mode: | ||
merge: | ||
- Exclude | ||
|
@@ -794,6 +796,11 @@ Style/SelectByRegexp: | |
Style/SingleArgumentDig: | ||
Enabled: false | ||
|
||
<% if rubocop_version >= Gem::Version.new('1.57') %> | ||
Style/SingleLineDoEndBlock: | ||
Enabled: true | ||
<% end %> | ||
Comment on lines
+799
to
+802
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rafaelfranca Trying something new here. Typically, when a new cop is released, we enable or disable it, but that requires bumping the minimum RuboCop version (as older versions will complain they don't know about that cop). As per our discussion about plugins, we'll have to take this approach to selectively enable plugin cops, as we won't be able to rely on Bundler/Rubygems to enforce any version requirement (without adding a dependency from Therefore, I'm trying out this approach here first. Note that |
||
|
||
Style/SlicingWithRange: | ||
Enabled: false | ||
|
||
|
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.
Is this the version on the bundle or in the system?
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.
It looks like the version of whatever the process is running, depending on if
bundle exec
(or equivalent binstub) is used or not.Added logging and binstub
bundle info
gem info rubocop
gem info rubocop-minitest
Running
rubocop