-
Notifications
You must be signed in to change notification settings - Fork 52
Bump rubocop from 1.75.8 to 1.76.0 in the rubocop group #736
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
Changes from all commits
fdff86c
ee416ca
16502a2
487ed0f
a6ad200
0e9597f
89cd222
b823271
ccbb378
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 @@ | ||
| up: | ||
| - ruby | ||
| - bundler | ||
|
|
||
| test: bundle exec rake | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -378,8 +378,10 @@ Lint/ShadowedArgument: | |
| Lint/ShadowedException: | ||
| Enabled: false | ||
|
|
||
| <% if rubocop_version < "1.76" %> | ||
| Lint/ShadowingOuterLocalVariable: | ||
| Enabled: false | ||
| <% end %> | ||
|
Comment on lines
+381
to
+384
Contributor
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. This is now the default, so we only want to keep configuring it for old RuboCop versions. |
||
|
|
||
| Lint/SharedMutableDefault: | ||
| Enabled: false | ||
|
|
@@ -450,6 +452,11 @@ Lint/UselessAssignment: | |
| Lint/UselessConstantScoping: | ||
| Enabled: false | ||
|
|
||
| <% if rubocop_version >= "1.76" %> | ||
| Lint/UselessDefaultValueArgument: | ||
| Enabled: true | ||
| <% end %> | ||
|
Comment on lines
+455
to
+458
Contributor
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. https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessdefaultvalueargument This seems like a good idea, although I do notice that there's an example of including |
||
|
|
||
| Lint/UselessDefined: | ||
| Enabled: false | ||
|
|
||
|
|
@@ -462,6 +469,11 @@ Lint/UselessMethodDefinition: | |
| Lint/UselessNumericOperation: | ||
| Enabled: false | ||
|
|
||
| <% if rubocop_version >= "1.76" %> | ||
| Lint/UselessOr: | ||
| Enabled: true | ||
| <% end %> | ||
|
Comment on lines
+472
to
+475
Contributor
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. https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessor This seems unambiguous. |
||
|
|
||
| Lint/UselessRescue: | ||
| Enabled: false | ||
|
|
||
|
|
@@ -558,7 +570,16 @@ Naming/MethodName: | |
| Naming/MethodParameterName: | ||
| Enabled: false | ||
|
|
||
| <% if rubocop_version >= "1.76" %> | ||
| Naming/PredicateMethod: | ||
| Enabled: false | ||
| <% end %> | ||
|
|
||
| <% if rubocop_version >= "1.76" %> | ||
| Naming/PredicatePrefix: | ||
| <% else %> | ||
| Naming/PredicateName: | ||
| <% end %> | ||
|
Comment on lines
+578
to
+582
Contributor
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. This just handles the cop being renamed. We may want to backport this so consumers don't get the warning. |
||
| Enabled: false | ||
| NamePrefix: | ||
| - is_ | ||
|
|
@@ -768,6 +789,11 @@ Style/EmptyLiteral: | |
| Style/EmptyMethod: | ||
| Enabled: false | ||
|
|
||
| <% if rubocop_version >= "1.76" %> | ||
| Style/EmptyStringInsideInterpolation: | ||
| Enabled: false | ||
| <% end %> | ||
|
Comment on lines
+792
to
+795
Contributor
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. https://docs.rubocop.org/rubocop/cops_style.html#styleemptystringinsideinterpolation This controls the preference between "...#{var ? "foo" : ""}...#{var ? "" : "bar"}..."
# or
"...#{"foo" if var}...#{"bar" unless var}..."defaulting to preferring the latter. I personally agree with it, but my gut feeling following the "Great Reset" is that we shouldn't enable this and leave it up to the author.
Member
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. Yes, that is right. |
||
|
|
||
| Style/Encoding: | ||
| Enabled: false | ||
|
|
||
|
|
@@ -1112,6 +1138,11 @@ Style/RedundantArgument: | |
| Style/RedundantArrayConstructor: | ||
| Enabled: false | ||
|
|
||
| <% if rubocop_version >= "1.76" %> | ||
| Style/RedundantArrayFlatten: | ||
| Enabled: true | ||
| <% end %> | ||
|
Comment on lines
+1141
to
+1144
Contributor
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. https://docs.rubocop.org/rubocop/cops_style.html#styleredundantarrayflatten While this is a |
||
|
|
||
| Style/RedundantAssignment: | ||
| 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.
🤷 I just want
dev testdue to habit.