Skip to content

Commit 2e4ab9a

Browse files
authored
Merge pull request #753 from Shopify/dependabot/bundler/rubocop-65d6729e70
Bump the rubocop group across 1 directory with 2 updates
2 parents e205192 + 9383b72 commit 2e4ab9a

File tree

3 files changed

+62
-33
lines changed

3 files changed

+62
-33
lines changed

Gemfile.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,41 @@ GEM
1010
specs:
1111
ast (2.4.3)
1212
diffy (3.4.4)
13-
json (2.12.2)
13+
json (2.15.2)
1414
language_server-protocol (3.17.0.5)
1515
lint_roller (1.1.0)
1616
minitest (5.26.0)
1717
parallel (1.27.0)
18-
parser (3.3.8.0)
18+
parser (3.3.10.0)
1919
ast (~> 2.4.1)
2020
racc
21-
prism (1.4.0)
21+
prism (1.6.0)
2222
racc (1.8.1)
2323
rainbow (3.1.1)
2424
rake (13.3.1)
25-
regexp_parser (2.10.0)
26-
rubocop (1.78.0)
25+
regexp_parser (2.11.3)
26+
rubocop (1.81.6)
2727
json (~> 2.3)
2828
language_server-protocol (~> 3.17.0.2)
2929
lint_roller (~> 1.1.0)
3030
parallel (~> 1.10)
3131
parser (>= 3.3.0.2)
3232
rainbow (>= 2.2.2, < 4.0)
3333
regexp_parser (>= 2.9.3, < 3.0)
34-
rubocop-ast (>= 1.45.1, < 2.0)
34+
rubocop-ast (>= 1.47.1, < 2.0)
3535
ruby-progressbar (~> 1.7)
3636
unicode-display_width (>= 2.4.0, < 4.0)
37-
rubocop-ast (1.45.1)
37+
rubocop-ast (1.47.1)
3838
parser (>= 3.3.7.2)
3939
prism (~> 1.4)
40-
rubocop-minitest (0.38.1)
40+
rubocop-minitest (0.38.2)
4141
lint_roller (~> 1.1)
4242
rubocop (>= 1.75.0, < 2.0)
4343
rubocop-ast (>= 1.38.0, < 2.0)
4444
ruby-progressbar (1.13.0)
45-
unicode-display_width (3.1.4)
46-
unicode-emoji (~> 4.0, >= 4.0.4)
47-
unicode-emoji (4.0.4)
45+
unicode-display_width (3.2.0)
46+
unicode-emoji (~> 4.1)
47+
unicode-emoji (4.1.0)
4848

4949
PLATFORMS
5050
ruby

rubocop.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ Layout/EmptyLineAfterGuardClause:
7979
Layout/EmptyLines:
8080
Enabled: false
8181

82+
<% if rubocop_version >= '1.79' %>
83+
Layout/EmptyLinesAfterModuleInclusion:
84+
Enabled: false
85+
<% end %>
86+
8287
Layout/EndAlignment:
8388
Enabled: false
8489
EnforcedStyleAlignWith: variable
@@ -646,6 +651,11 @@ Style/ArgumentsForwarding:
646651
Style/ArrayIntersect:
647652
Enabled: false
648653

654+
<% if rubocop_version >= '1.81' %>
655+
Style/ArrayIntersectWithSingleElement:
656+
Enabled: false
657+
<% end %>
658+
649659
Style/ArrayJoin:
650660
Enabled: false
651661

@@ -1414,4 +1424,3 @@ Style/YodaCondition:
14141424

14151425
Style/ZeroLengthPredicate:
14161426
Enabled: false
1417-

test/fixtures/full_config.yml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Gemspec/AddRuntimeDependency:
189189
Description: Prefer `add_dependency` over `add_runtime_dependency`.
190190
StyleGuide: "#add_dependency_vs_add_runtime_dependency"
191191
References:
192-
- https://github.com/rubygems/rubygems/issues/7799#issuecomment-2192720316
192+
- https://github.com/ruby/rubygems/issues/7799#issuecomment-2192720316
193193
Enabled: false
194194
VersionAdded: '1.65'
195195
Include:
@@ -282,7 +282,7 @@ Gemspec/RubyVersionGlobalsUsage:
282282
Include:
283283
- "**/*.gemspec"
284284
Layout/AccessModifierIndentation:
285-
Description: Check indentation of private/protected visibility modifiers.
285+
Description: Checks indentation of private/protected visibility modifiers.
286286
StyleGuide: "#indent-public-private-protected"
287287
Enabled: true
288288
VersionAdded: '0.49'
@@ -458,6 +458,11 @@ Layout/EmptyLines:
458458
StyleGuide: "#two-or-more-empty-lines"
459459
Enabled: false
460460
VersionAdded: '0.49'
461+
Layout/EmptyLinesAfterModuleInclusion:
462+
Description: Keeps track of empty lines after module inclusion methods.
463+
StyleGuide: "#empty-lines-after-module-inclusion"
464+
Enabled: false
465+
VersionAdded: '1.79'
461466
Layout/EmptyLinesAroundAccessModifier:
462467
Description: Keep blank lines around access modifiers.
463468
StyleGuide: "#empty-lines-around-access-modifier"
@@ -707,7 +712,7 @@ Layout/LeadingCommentSpace:
707712
AllowRBSInlineAnnotation: true
708713
AllowSteepAnnotation: false
709714
Layout/LeadingEmptyLines:
710-
Description: Check for unnecessary blank lines at the beginning of a file.
715+
Description: Checks for unnecessary blank lines at the beginning of a file.
711716
Enabled: true
712717
VersionAdded: '0.57'
713718
VersionChanged: '0.77'
@@ -774,7 +779,7 @@ Layout/MultilineArrayLineBreaks:
774779
VersionAdded: '0.67'
775780
AllowMultilineFinalElement: true
776781
Layout/MultilineAssignmentLayout:
777-
Description: Check for a newline after the assignment operator in multi-line assignments.
782+
Description: Checks for a newline after the assignment operator in multi-line assignments.
778783
StyleGuide: "#indent-conditional-assignment"
779784
Enabled: false
780785
VersionAdded: '0.49'
@@ -1162,7 +1167,7 @@ Lint/BinaryOperatorWithIdenticalOperands:
11621167
VersionAdded: '0.89'
11631168
VersionChanged: '1.69'
11641169
Lint/BooleanSymbol:
1165-
Description: Check for `:true` and `:false` symbols.
1170+
Description: Checks for `:true` and `:false` symbols.
11661171
Enabled: false
11671172
SafeAutoCorrect: false
11681173
VersionAdded: '0.50'
@@ -1190,7 +1195,7 @@ Lint/ConstantReassignment:
11901195
Enabled: true
11911196
VersionAdded: '1.70'
11921197
Lint/ConstantResolution:
1193-
Description: Check that constants are fully qualified with `::`.
1198+
Description: Checks that constants are fully qualified with `::`.
11941199
Enabled: false
11951200
VersionAdded: '0.86'
11961201
Only: []
@@ -1200,7 +1205,7 @@ Lint/CopDirectiveSyntax:
12001205
Enabled: true
12011206
VersionAdded: '1.72'
12021207
Lint/Debugger:
1203-
Description: Check for debugger calls.
1208+
Description: Checks for debugger calls.
12041209
Enabled: true
12051210
VersionAdded: '0.14'
12061211
VersionChanged: '1.63'
@@ -1248,7 +1253,7 @@ Lint/Debugger:
12481253
- debug/open
12491254
- debug/start
12501255
Lint/DeprecatedClassMethods:
1251-
Description: Check for deprecated class method calls.
1256+
Description: Checks for deprecated class method calls.
12521257
Enabled: true
12531258
VersionAdded: '0.19'
12541259
Lint/DeprecatedConstants:
@@ -1306,28 +1311,28 @@ Lint/DuplicateElsifCondition:
13061311
Enabled: true
13071312
VersionAdded: '0.88'
13081313
Lint/DuplicateHashKey:
1309-
Description: Check for duplicate keys in hash literals.
1314+
Description: Checks for duplicate keys in hash literals.
13101315
Enabled: true
13111316
VersionAdded: '0.34'
13121317
VersionChanged: '0.77'
13131318
Lint/DuplicateMagicComment:
1314-
Description: Check for duplicated magic comments.
1319+
Description: Checks for duplicated magic comments.
13151320
Enabled: true
13161321
VersionAdded: '1.37'
13171322
Lint/DuplicateMatchPattern:
13181323
Description: Do not repeat patterns in `in` keywords.
13191324
Enabled: true
13201325
VersionAdded: '1.50'
13211326
Lint/DuplicateMethods:
1322-
Description: Check for duplicate method definitions.
1327+
Description: Checks for duplicate method definitions.
13231328
Enabled: true
13241329
VersionAdded: '0.29'
13251330
Lint/DuplicateRegexpCharacterClassElement:
13261331
Description: Checks for duplicate elements in Regexp character classes.
13271332
Enabled: true
13281333
VersionAdded: '1.1'
13291334
Lint/DuplicateRequire:
1330-
Description: Check for duplicate `require`s and `require_relative`s.
1335+
Description: Checks for duplicate `require`s and `require_relative`s.
13311336
Enabled: true
13321337
SafeAutoCorrect: false
13331338
VersionAdded: '0.90'
@@ -1341,11 +1346,11 @@ Lint/DuplicateSetElement:
13411346
Enabled: true
13421347
VersionAdded: '1.67'
13431348
Lint/EachWithObjectArgument:
1344-
Description: Check for immutable argument given to each_with_object.
1349+
Description: Checks for immutable argument given to each_with_object.
13451350
Enabled: true
13461351
VersionAdded: '0.31'
13471352
Lint/ElseLayout:
1348-
Description: Check for odd code arrangement in an else block.
1353+
Description: Checks for odd code arrangement in an else block.
13491354
Enabled: true
13501355
VersionAdded: '0.17'
13511356
VersionChanged: '1.2'
@@ -1673,13 +1678,20 @@ Lint/RedundantSafeNavigation:
16731678
Description: Checks for redundant safe navigation calls.
16741679
Enabled: false
16751680
VersionAdded: '0.93'
1681+
VersionChanged: '1.79'
16761682
AllowedMethods:
16771683
- instance_of?
16781684
- kind_of?
16791685
- is_a?
16801686
- eql?
16811687
- respond_to?
16821688
- equal?
1689+
InferNonNilReceiver: false
1690+
AdditionalNilMethods:
1691+
- present?
1692+
- blank?
1693+
- try
1694+
- try!
16831695
Safe: false
16841696
Lint/RedundantSplatExpansion:
16851697
Description: Checks for splat unnecessarily being called on literals.
@@ -2123,7 +2135,7 @@ Migration/DepartmentName:
21232135
Enabled: false
21242136
VersionAdded: '0.75'
21252137
Naming/AccessorMethodName:
2126-
Description: Check the naming of accessor methods for get_/set_.
2138+
Description: Checks the naming of accessor methods for get_/set_.
21272139
StyleGuide: "#accessor_mutator_method_names"
21282140
Enabled: false
21292141
VersionAdded: '0.50'
@@ -2426,6 +2438,7 @@ Security/JSONLoad:
24262438
issues. See reference for more information.
24272439
References:
24282440
- https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load
2441+
- https://bugs.ruby-lang.org/issues/19528
24292442
Enabled: false
24302443
VersionAdded: '0.43'
24312444
VersionChanged: '1.22'
@@ -2538,6 +2551,11 @@ Style/ArrayIntersect:
25382551
Enabled: false
25392552
Safe: false
25402553
VersionAdded: '1.40'
2554+
Style/ArrayIntersectWithSingleElement:
2555+
Description: Use `include?(element)` instead of `intersect?([element])`.
2556+
Enabled: false
2557+
Safe: false
2558+
VersionAdded: '1.81'
25412559
Style/ArrayJoin:
25422560
Description: Use Array#join instead of Array#*.
25432561
StyleGuide: "#array-join"
@@ -3174,7 +3192,7 @@ Style/GlobalVars:
31743192
VersionAdded: '0.13'
31753193
AllowedVariables: []
31763194
Style/GuardClause:
3177-
Description: Check for conditionals that can be replaced with guard clauses.
3195+
Description: Checks for conditionals that can be replaced with guard clauses.
31783196
StyleGuide: "#no-nested-conditionals"
31793197
Enabled: false
31803198
VersionAdded: '0.20'
@@ -3373,7 +3391,7 @@ Style/IpAddresses:
33733391
- "/**/gems.rb"
33743392
- "/**/*.gemspec"
33753393
Style/ItAssignment:
3376-
Description: Checks for assignment to `it` inside a block.
3394+
Description: Checks for local variables and method parameters named `it`.
33773395
Enabled: false
33783396
VersionAdded: '1.70'
33793397
Style/ItBlockParameter:
@@ -3416,8 +3434,9 @@ Style/LambdaCall:
34163434
Description: Use lambda.call(...) instead of lambda.(...).
34173435
StyleGuide: "#proc-call"
34183436
Enabled: false
3437+
AutoCorrect: contextual
34193438
VersionAdded: '0.13'
3420-
VersionChanged: '0.14'
3439+
VersionChanged: "<<next>>"
34213440
EnforcedStyle: call
34223441
SupportedStyles:
34233442
- call
@@ -3942,7 +3961,7 @@ Style/RandomWithOffset:
39423961
Enabled: false
39433962
VersionAdded: '0.52'
39443963
Style/RedundantArgument:
3945-
Description: Check for a redundant argument passed to certain methods.
3964+
Description: Checks for a redundant argument passed to certain methods.
39463965
Enabled: false
39473966
Safe: false
39483967
VersionAdded: '1.4'
@@ -4071,7 +4090,7 @@ Style/RedundantInterpolationUnfreeze:
40714090
Enabled: false
40724091
VersionAdded: '1.66'
40734092
Style/RedundantLineContinuation:
4074-
Description: Check for redundant line continuation.
4093+
Description: Checks for redundant line continuation.
40754094
Enabled: false
40764095
VersionAdded: '1.49'
40774096
Style/RedundantParentheses:
@@ -4316,7 +4335,7 @@ Style/SpecialGlobalVars:
43164335
- use_english_names
43174336
- use_builtin_english_names
43184337
Style/StabbyLambdaParentheses:
4319-
Description: Check for the usage of parentheses around stabby lambda arguments.
4338+
Description: Checks for the usage of parentheses around stabby lambda arguments.
43204339
StyleGuide: "#stabby-lambda-with-args"
43214340
Enabled: false
43224341
VersionAdded: '0.35'
@@ -4475,6 +4494,7 @@ Style/TrailingCommaInArguments:
44754494
SupportedStylesForMultiline:
44764495
- comma
44774496
- consistent_comma
4497+
- diff_comma
44784498
- no_comma
44794499
Style/TrailingCommaInArrayLiteral:
44804500
Description: Checks for trailing comma in array literals.

0 commit comments

Comments
 (0)