rubocop-shopify 2.2.0 → 2.3.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 +33 -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: e5dd8eeae8aa515a50a5a33cf43ed820e0c2f8a82e949b8ed1e4b59a164ca620
4
+ data.tar.gz: 38499e9e0a1f6d3a7b95f333308a9c00ad3078d832e87bd75daa99f760a141c1
5
5
  SHA512:
6
- metadata.gz: aabaf004d7948bc7b260dcf4b2c7afd1693071ee2561977cf9f7029aac44c723cf9cb94616b8b82c2ba3c9b753148224d2f5f9c9b6e7d6f74a9e039d184b7be5
7
- data.tar.gz: 7f7a72011223f00573ef664417e63a4055ca1d713049016744fe1eb688d5a71435e25a9b2c8f1a1b074e7b56264b28bbc4a5c39fcd3d978aafd9ad28fb4218b1
6
+ metadata.gz: 700bdf066103cd310d4bf9cab7c97fbda692739930c89cb85f62ece6ed53190145b80cf436d5bac3cd0ca127a10f61ad55c005cc319c04f0c78d5d7602499d89
7
+ data.tar.gz: 6fac0d27169670d7e5c0ee49839a928583e1f6b8ad09464d36f7788bae77b03980d97c8f0b5d12b81dc31e6ac40fafee777a81ad2bb4b02622f169abadc11168
data/rubocop.yml CHANGED
@@ -6,60 +6,24 @@ 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:
31
- Enabled: false
32
-
33
18
  Layout/ArgumentAlignment:
34
19
  EnforcedStyle: with_fixed_indentation
35
20
 
36
21
  Layout/CaseIndentation:
37
22
  EnforcedStyle: end
38
23
 
39
- Layout/ClosingHeredocIndentation:
40
- Enabled: false
41
-
42
- Layout/EmptyComment:
43
- Enabled: false
44
-
45
24
  Layout/EmptyLineAfterGuardClause:
46
25
  Enabled: false
47
26
 
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
62
-
63
27
  Layout/EndAlignment:
64
28
  EnforcedStyleAlignWith: variable
65
29
 
@@ -72,17 +36,12 @@ Layout/FirstArrayElementIndentation:
72
36
  Layout/FirstHashElementIndentation:
73
37
  EnforcedStyle: consistent
74
38
 
75
- Layout/FirstParameterIndentation:
76
- Enabled: false
77
-
78
39
  Layout/HashAlignment:
79
40
  EnforcedLastArgumentHashStyle: ignore_implicit
80
41
 
81
- Layout/LeadingEmptyLines:
82
- Enabled: false
83
-
84
42
  Layout/LineEndStringConcatenationIndentation:
85
- Enabled: false
43
+ Enabled: true
44
+ EnforcedStyle: indented
86
45
 
87
46
  Layout/LineLength:
88
47
  IgnoreCopDirectives: false
@@ -94,24 +53,24 @@ Layout/MultilineMethodCallIndentation:
94
53
  IndentationWidth: 2
95
54
 
96
55
  Layout/MultilineOperationIndentation:
97
- Enabled: false
56
+ EnforcedStyle: indented
98
57
 
99
58
  Layout/ParameterAlignment:
100
59
  EnforcedStyle: with_fixed_indentation
101
60
 
102
- Layout/SpaceAroundMethodCallOperator:
103
- Enabled: false
104
-
105
61
  Layout/SpaceBeforeBrackets:
62
+ Enabled: true
63
+
64
+ Lint/AmbiguousAssignment:
106
65
  Enabled: false
107
66
 
108
- Layout/SpaceInLambdaLiteral:
67
+ Lint/AmbiguousBlockAssociation:
109
68
  Enabled: false
110
69
 
111
- Lint/AmbiguousAssignment:
70
+ Lint/AmbiguousOperatorPrecedence:
112
71
  Enabled: false
113
72
 
114
- Lint/AmbiguousBlockAssociation:
73
+ Lint/AmbiguousRange:
115
74
  Enabled: false
116
75
 
117
76
  Lint/BooleanSymbol:
@@ -177,6 +136,9 @@ Lint/HashCompareByIdentity:
177
136
  Lint/IdentityComparison:
178
137
  Enabled: false
179
138
 
139
+ Lint/IncompatibleIoSelectWithFiberScheduler:
140
+ Enabled: false
141
+
180
142
  Lint/InterpolationCheck:
181
143
  Enabled: false
182
144
 
@@ -231,6 +193,9 @@ Lint/RedundantWithObject:
231
193
  Lint/RegexpAsCondition:
232
194
  Enabled: false
233
195
 
196
+ Lint/RequireRelativeSelfPath:
197
+ Enabled: true
198
+
234
199
  Lint/RescueType:
235
200
  Enabled: false
236
201
 
@@ -351,6 +316,7 @@ Naming/InclusiveLanguage:
351
316
  - !ruby/regexp '/master[_\s\.]key/' # Rails master key
352
317
  - 'blob/master/'
353
318
  - 'origin/master'
319
+ - 'mastercard'
354
320
 
355
321
  Naming/MemoizedInstanceVariableName:
356
322
  Enabled: false
@@ -373,6 +339,9 @@ Naming/VariableNumber:
373
339
  Security/MarshalLoad:
374
340
  Enabled: false
375
341
 
342
+ Security/IoMethods:
343
+ Enabled: true
344
+
376
345
  Security/YAMLLoad:
377
346
  Enabled: false
378
347
 
@@ -461,7 +430,7 @@ Style/ExpandPathArguments:
461
430
  Enabled: false
462
431
 
463
432
  Style/ExplicitBlockArgument:
464
- Enabled: false
433
+ Enabled: true
465
434
 
466
435
  Style/ExponentialNotation:
467
436
  Enabled: false
@@ -574,6 +543,12 @@ Style/NegatedUnless:
574
543
  Style/NilLambda:
575
544
  Enabled: false
576
545
 
546
+ Style/NumberedParameters:
547
+ Enabled: false
548
+
549
+ Style/NumberedParametersLimit:
550
+ Enabled: false
551
+
577
552
  Style/NumericLiteralPrefix:
578
553
  EnforcedOctalStyle: zero_only
579
554
 
@@ -625,6 +600,9 @@ Style/RedundantRegexpEscape:
625
600
  Style/RedundantSelfAssignment:
626
601
  Enabled: false
627
602
 
603
+ Style/RedundantSelfAssignmentBranch:
604
+ Enabled: false
605
+
628
606
  Style/RedundantSort:
629
607
  Enabled: false
630
608
 
@@ -634,6 +612,9 @@ Style/RegexpLiteral:
634
612
  Style/RescueStandardError:
635
613
  Enabled: false
636
614
 
615
+ Style/SelectByRegexp:
616
+ Enabled: false
617
+
637
618
  Style/SingleArgumentDig:
638
619
  Enabled: false
639
620
 
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.3.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: 2021-10-05 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.22'
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.22'
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.3.0
41
41
  allowed_push_host: https://rubygems.org
42
42
  post_install_message:
43
43
  rdoc_options: []