rubocop-shopify 2.2.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/rubocop.yml +58 -52
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a87e3f8343d9d32f0b7482426d6548970bdc589eef31d2abf4fd1228e6c4569
4
- data.tar.gz: e96d3300f80f94f977d5e382302b7bc43d6969ac46a5b8586cc129c44c35476b
3
+ metadata.gz: 919bdd1ac16cef2b85d4ca1fbaca5286a3e798082b0bdc05449a9caeee55b773
4
+ data.tar.gz: 1c330205e8c41176286f07d4a1dd889bc29940b746009b9b387d6382a2f3da5b
5
5
  SHA512:
6
- metadata.gz: aabaf004d7948bc7b260dcf4b2c7afd1693071ee2561977cf9f7029aac44c723cf9cb94616b8b82c2ba3c9b753148224d2f5f9c9b6e7d6f74a9e039d184b7be5
7
- data.tar.gz: 7f7a72011223f00573ef664417e63a4055ca1d713049016744fe1eb688d5a71435e25a9b2c8f1a1b074e7b56264b28bbc4a5c39fcd3d978aafd9ad28fb4218b1
6
+ metadata.gz: 567e49decd34e1944f9f96843b68d849bb4bb2a9c8e5cd75402c609a60a1a709c3882f5c7b260ff1b404e32c984a1f129425224a565e2c0d068a120526eeb4c5
7
+ data.tar.gz: 2c013458b013c729069ae805bc5cbc234d9351ea3dcf7dab02231c5b155fe4a1d84477e0311a47ad9a93f305c4c6578bad64918a46975aa7046e5498651bf6bf
data/rubocop.yml CHANGED
@@ -6,28 +6,16 @@ inherit_mode:
6
6
  AllCops:
7
7
  StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/
8
8
 
9
- Bundler/DuplicatedGem:
10
- Enabled: false
11
-
12
- Bundler/InsecureProtocolSource:
13
- Enabled: false
14
-
15
9
  Bundler/OrderedGems:
16
10
  Enabled: false
17
11
 
18
12
  Gemspec/DateAssignment:
19
- Enabled: false
20
-
21
- Gemspec/DuplicatedAssignment:
22
- Enabled: false
23
-
24
- Gemspec/OrderedDependencies:
25
- Enabled: false
13
+ Enabled: true
26
14
 
27
15
  Gemspec/RequiredRubyVersion:
28
16
  Enabled: false
29
17
 
30
- Gemspec/RubyVersionGlobalsUsage:
18
+ Gemspec/RequireMFA:
31
19
  Enabled: false
32
20
 
33
21
  Layout/ArgumentAlignment:
@@ -36,29 +24,8 @@ Layout/ArgumentAlignment:
36
24
  Layout/CaseIndentation:
37
25
  EnforcedStyle: end
38
26
 
39
- Layout/ClosingHeredocIndentation:
40
- Enabled: false
41
-
42
- Layout/EmptyComment:
43
- Enabled: false
44
-
45
27
  Layout/EmptyLineAfterGuardClause:
46
- Enabled: false
47
-
48
- Layout/EmptyLineAfterMagicComment:
49
- Enabled: false
50
-
51
- Layout/EmptyLinesAroundArguments:
52
- Enabled: false
53
-
54
- Layout/EmptyLinesAroundAttributeAccessor:
55
- Enabled: false
56
-
57
- Layout/EmptyLinesAroundBeginBody:
58
- Enabled: false
59
-
60
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
61
- Enabled: false
28
+ Enabled: true
62
29
 
63
30
  Layout/EndAlignment:
64
31
  EnforcedStyleAlignWith: variable
@@ -72,17 +39,12 @@ Layout/FirstArrayElementIndentation:
72
39
  Layout/FirstHashElementIndentation:
73
40
  EnforcedStyle: consistent
74
41
 
75
- Layout/FirstParameterIndentation:
76
- Enabled: false
77
-
78
42
  Layout/HashAlignment:
79
43
  EnforcedLastArgumentHashStyle: ignore_implicit
80
44
 
81
- Layout/LeadingEmptyLines:
82
- Enabled: false
83
-
84
45
  Layout/LineEndStringConcatenationIndentation:
85
- Enabled: false
46
+ Enabled: true
47
+ EnforcedStyle: indented
86
48
 
87
49
  Layout/LineLength:
88
50
  IgnoreCopDirectives: false
@@ -94,24 +56,24 @@ Layout/MultilineMethodCallIndentation:
94
56
  IndentationWidth: 2
95
57
 
96
58
  Layout/MultilineOperationIndentation:
97
- Enabled: false
59
+ EnforcedStyle: indented
98
60
 
99
61
  Layout/ParameterAlignment:
100
62
  EnforcedStyle: with_fixed_indentation
101
63
 
102
- Layout/SpaceAroundMethodCallOperator:
103
- Enabled: false
104
-
105
64
  Layout/SpaceBeforeBrackets:
65
+ Enabled: true
66
+
67
+ Lint/AmbiguousAssignment:
106
68
  Enabled: false
107
69
 
108
- Layout/SpaceInLambdaLiteral:
70
+ Lint/AmbiguousBlockAssociation:
109
71
  Enabled: false
110
72
 
111
- Lint/AmbiguousAssignment:
73
+ Lint/AmbiguousOperatorPrecedence:
112
74
  Enabled: false
113
75
 
114
- Lint/AmbiguousBlockAssociation:
76
+ Lint/AmbiguousRange:
115
77
  Enabled: false
116
78
 
117
79
  Lint/BooleanSymbol:
@@ -177,6 +139,9 @@ Lint/HashCompareByIdentity:
177
139
  Lint/IdentityComparison:
178
140
  Enabled: false
179
141
 
142
+ Lint/IncompatibleIoSelectWithFiberScheduler:
143
+ Enabled: false
144
+
180
145
  Lint/InterpolationCheck:
181
146
  Enabled: false
182
147
 
@@ -231,6 +196,9 @@ Lint/RedundantWithObject:
231
196
  Lint/RegexpAsCondition:
232
197
  Enabled: false
233
198
 
199
+ Lint/RequireRelativeSelfPath:
200
+ Enabled: true
201
+
234
202
  Lint/RescueType:
235
203
  Enabled: false
236
204
 
@@ -300,6 +268,9 @@ Lint/UriRegexp:
300
268
  Lint/UselessMethodDefinition:
301
269
  Enabled: false
302
270
 
271
+ Lint/UselessRuby2Keywords:
272
+ Enabled: true
273
+
303
274
  Lint/UselessTimes:
304
275
  Enabled: false
305
276
 
@@ -330,6 +301,9 @@ Metrics/PerceivedComplexity:
330
301
  Migration/DepartmentName:
331
302
  Enabled: false
332
303
 
304
+ Naming/BlockForwarding:
305
+ Enabled: false
306
+
333
307
  Naming/BlockParameterName:
334
308
  Enabled: false
335
309
 
@@ -351,6 +325,8 @@ Naming/InclusiveLanguage:
351
325
  - !ruby/regexp '/master[_\s\.]key/' # Rails master key
352
326
  - 'blob/master/'
353
327
  - 'origin/master'
328
+ - 'mastercard'
329
+ - 'webmaster'
354
330
 
355
331
  Naming/MemoizedInstanceVariableName:
356
332
  Enabled: false
@@ -373,6 +349,9 @@ Naming/VariableNumber:
373
349
  Security/MarshalLoad:
374
350
  Enabled: false
375
351
 
352
+ Security/IoMethods:
353
+ Enabled: true
354
+
376
355
  Security/YAMLLoad:
377
356
  Enabled: false
378
357
 
@@ -461,11 +440,17 @@ Style/ExpandPathArguments:
461
440
  Enabled: false
462
441
 
463
442
  Style/ExplicitBlockArgument:
464
- Enabled: false
443
+ Enabled: true
465
444
 
466
445
  Style/ExponentialNotation:
467
446
  Enabled: false
468
447
 
448
+ Style/FileRead:
449
+ Enabled: false
450
+
451
+ Style/FileWrite:
452
+ Enabled: false
453
+
469
454
  Style/FloatDivision:
470
455
  Enabled: false
471
456
 
@@ -479,7 +464,7 @@ Style/FrozenStringLiteralComment:
479
464
  sure we''re ready.'
480
465
 
481
466
  Style/GlobalStdStream:
482
- Enabled: false
467
+ Enabled: true
483
468
 
484
469
  Style/GuardClause:
485
470
  Enabled: false
@@ -499,6 +484,9 @@ Style/HashExcept:
499
484
  Style/HashLikeCase:
500
485
  Enabled: false
501
486
 
487
+ Style/HashSyntax:
488
+ EnforcedShorthandSyntax: either
489
+
502
490
  Style/HashTransformKeys:
503
491
  Enabled: false
504
492
 
@@ -523,6 +511,9 @@ Style/KeywordParametersOrder:
523
511
  Style/Lambda:
524
512
  Enabled: false
525
513
 
514
+ Style/MapToHash:
515
+ Enabled: false
516
+
526
517
  Style/MethodCallWithArgsParentheses:
527
518
  Enabled: true
528
519
  IgnoredMethods:
@@ -574,6 +565,12 @@ Style/NegatedUnless:
574
565
  Style/NilLambda:
575
566
  Enabled: false
576
567
 
568
+ Style/NumberedParameters:
569
+ Enabled: false
570
+
571
+ Style/NumberedParametersLimit:
572
+ Enabled: false
573
+
577
574
  Style/NumericLiteralPrefix:
578
575
  EnforcedOctalStyle: zero_only
579
576
 
@@ -583,6 +580,9 @@ Style/NumericLiterals:
583
580
  Style/NumericPredicate:
584
581
  Enabled: false
585
582
 
583
+ Style/OpenStructUse:
584
+ Enabled: true
585
+
586
586
  Style/OptionalBooleanParameter:
587
587
  Enabled: false
588
588
 
@@ -625,6 +625,9 @@ Style/RedundantRegexpEscape:
625
625
  Style/RedundantSelfAssignment:
626
626
  Enabled: false
627
627
 
628
+ Style/RedundantSelfAssignmentBranch:
629
+ Enabled: false
630
+
628
631
  Style/RedundantSort:
629
632
  Enabled: false
630
633
 
@@ -634,6 +637,9 @@ Style/RegexpLiteral:
634
637
  Style/RescueStandardError:
635
638
  Enabled: false
636
639
 
640
+ Style/SelectByRegexp:
641
+ Enabled: false
642
+
637
643
  Style/SingleArgumentDig:
638
644
  Enabled: false
639
645
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-13 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.18'
19
+ version: '1.25'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.18'
26
+ version: '1.25'
27
27
  description: Gem containing the rubocop.yml config that corresponds to the implementation
28
28
  of the Shopify's style guide for Ruby.
29
29
  email: gems@shopify.com
@@ -37,7 +37,7 @@ homepage: https://shopify.github.io/ruby-style-guide/
37
37
  licenses:
38
38
  - MIT
39
39
  metadata:
40
- source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.2.0
40
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.5.0
41
41
  allowed_push_host: https://rubygems.org
42
42
  post_install_message:
43
43
  rdoc_options: []