Skip to content

Commit 7c851d6

Browse files
committed
Drop support to Rubocop < 1.62
They don't support Ruby 3.4.
1 parent 57fee5e commit 7c851d6

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
rubocop-shopify (2.15.1)
5-
rubocop (~> 1.51)
5+
rubocop (~> 1.62)
66

77
GEM
88
remote: https://rubygems.org/

rubocop-shopify.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
2323

2424
s.required_ruby_version = ">= 3.1.0"
2525

26-
s.add_dependency("rubocop", "~> 1.51")
26+
s.add_dependency("rubocop", "~> 1.62")
2727
end

rubocop.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -219,23 +219,17 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
219219
Lint/InterpolationCheck:
220220
Enabled: false
221221

222-
<% if rubocop_version >= "1.59" %>
223222
Lint/ItWithoutArgumentsInBlock:
224223
Enabled: true
225-
<% end %>
226224

227225
Lint/LambdaWithoutLiteralBlock:
228226
Enabled: false
229227

230-
<% if rubocop_version >= "1.58" %>
231228
Lint/LiteralAssignmentInCondition:
232229
Enabled: true
233-
<% end %>
234230

235-
<% if rubocop_version >= "1.53" %>
236231
Lint/MixedCaseRange:
237232
Enabled: true
238-
<% end %>
239233

240234
Lint/MixedRegexpCaptureTypes:
241235
Enabled: false
@@ -275,10 +269,8 @@ Lint/RaiseException:
275269
Lint/RedundantDirGlobSort:
276270
Enabled: false
277271

278-
<% if rubocop_version >= "1.53" %>
279272
Lint/RedundantRegexpQuantifiers:
280273
Enabled: true
281-
<% end %>
282274

283275
Lint/RedundantRequireStatement:
284276
Enabled: false
@@ -832,10 +824,8 @@ Style/RandomWithOffset:
832824
Style/RedundantArgument:
833825
Enabled: false
834826

835-
<% if rubocop_version >= "1.52" %>
836827
Style/RedundantArrayConstructor:
837828
Enabled: true
838-
<% end %>
839829

840830
Style/RedundantAssignment:
841831
Enabled: false
@@ -849,10 +839,8 @@ Style/RedundantConditional:
849839
Style/RedundantConstantBase:
850840
Enabled: true
851841

852-
<% if rubocop_version >= "1.53" %>
853842
Style/RedundantCurrentDirectoryInPath:
854843
Enabled: true
855-
<% end %>
856844

857845
Style/RedundantDoubleSplatHashBraces:
858846
Enabled: true
@@ -866,10 +854,8 @@ Style/RedundantFetchBlock:
866854
Style/RedundantFileExtensionInRequire:
867855
Enabled: false
868856

869-
<% if rubocop_version >= "1.52" %>
870857
Style/RedundantFilterChain:
871858
Enabled: true
872-
<% end %>
873859

874860
<% if rubocop_version >= "1.72" %>
875861
Style/RedundantFormat:
@@ -890,18 +876,14 @@ Style/RedundantInterpolationUnfreeze:
890876
Style/RedundantLineContinuation:
891877
Enabled: true
892878

893-
<% if rubocop_version >= "1.53" %>
894879
Style/RedundantRegexpArgument:
895880
Enabled: true
896-
<% end %>
897881

898882
Style/RedundantRegexpCharacterClass:
899883
Enabled: false
900884

901-
<% if rubocop_version >= "1.52" %>
902885
Style/RedundantRegexpConstructor:
903886
Enabled: true
904-
<% end %>
905887

906888
Style/RedundantRegexpEscape:
907889
Enabled: false
@@ -927,10 +909,8 @@ Style/RescueStandardError:
927909
Style/ReturnNil:
928910
Enabled: true
929911

930-
<% if rubocop_version >= "1.53" %>
931912
Style/ReturnNilInPredicateMethodDefinition:
932913
Enabled: true
933-
<% end %>
934914

935915
<% if rubocop_version >= "1.68" %>
936916
Style/SafeNavigationChainLength:
@@ -948,10 +928,8 @@ Style/SendWithLiteralMethodName:
948928
Style/SingleArgumentDig:
949929
Enabled: false
950930

951-
<% if rubocop_version >= "1.57" %>
952931
Style/SingleLineDoEndBlock:
953932
Enabled: true
954-
<% end %>
955933

956934
Style/SlicingWithRange:
957935
Enabled: false
@@ -982,10 +960,8 @@ Style/SuperArguments:
982960
Enabled: false
983961
<% end %>
984962

985-
<% if rubocop_version >= "1.58" %>
986963
Style/SuperWithArgsParentheses:
987964
Enabled: true
988-
<% end %>
989965

990966
Style/SwapValues:
991967
Enabled: false
@@ -1017,10 +993,8 @@ Style/UnpackFirst:
1017993
Style/WordArray:
1018994
EnforcedStyle: brackets
1019995

1020-
<% if rubocop_version >= "1.53" %>
1021996
Style/YAMLFileRead:
1022997
Enabled: true
1023-
<% end %>
1024998

1025999
Style/YodaCondition:
10261000
Enabled: false

0 commit comments

Comments
 (0)