rubocop-shopify 2.3.0 → 2.6.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 +47 -13
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5dd8eeae8aa515a50a5a33cf43ed820e0c2f8a82e949b8ed1e4b59a164ca620
4
- data.tar.gz: 38499e9e0a1f6d3a7b95f333308a9c00ad3078d832e87bd75daa99f760a141c1
3
+ metadata.gz: 27e2888826f579c69efbf5df48f4f1f40630ae20f9d962cfde7ab86f08dbdeb7
4
+ data.tar.gz: 90e1f14c3f766ca65058237f9d28d6157017101709177d4bacf9bdc997e39a3c
5
5
  SHA512:
6
- metadata.gz: 700bdf066103cd310d4bf9cab7c97fbda692739930c89cb85f62ece6ed53190145b80cf436d5bac3cd0ca127a10f61ad55c005cc319c04f0c78d5d7602499d89
7
- data.tar.gz: 6fac0d27169670d7e5c0ee49839a928583e1f6b8ad09464d36f7788bae77b03980d97c8f0b5d12b81dc31e6ac40fafee777a81ad2bb4b02622f169abadc11168
6
+ metadata.gz: 357cf572615207e7cc87f3fd47a1c0b58a1027eb017691ff1a05f1a081edbed5f88a5c3e70c5a5af603957eb3b56b9d73521fe1bede2ea89880bcdcc7227b149
7
+ data.tar.gz: 1e6526dd264bd0cfb29b26f7ca1dadf645ca12ff073cdfcb3108791b09e6a28c38d25589c449b65acec6ec6be27edbc9bf83c4a6c3724952aee96c2da3bd7c28
data/rubocop.yml CHANGED
@@ -15,15 +15,15 @@ Gemspec/DateAssignment:
15
15
  Gemspec/RequiredRubyVersion:
16
16
  Enabled: false
17
17
 
18
+ Gemspec/RequireMFA:
19
+ Enabled: false
20
+
18
21
  Layout/ArgumentAlignment:
19
22
  EnforcedStyle: with_fixed_indentation
20
23
 
21
24
  Layout/CaseIndentation:
22
25
  EnforcedStyle: end
23
26
 
24
- Layout/EmptyLineAfterGuardClause:
25
- Enabled: false
26
-
27
27
  Layout/EndAlignment:
28
28
  EnforcedStyleAlignWith: variable
29
29
 
@@ -45,7 +45,7 @@ Layout/LineEndStringConcatenationIndentation:
45
45
 
46
46
  Layout/LineLength:
47
47
  IgnoreCopDirectives: false
48
- IgnoredPatterns:
48
+ AllowedPatterns:
49
49
  - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
50
50
 
51
51
  Layout/MultilineMethodCallIndentation:
@@ -190,6 +190,9 @@ Lint/RedundantWithIndex:
190
190
  Lint/RedundantWithObject:
191
191
  Enabled: false
192
192
 
193
+ Lint/RefinementImportMethods:
194
+ Enabled: false
195
+
193
196
  Lint/RegexpAsCondition:
194
197
  Enabled: false
195
198
 
@@ -265,6 +268,9 @@ Lint/UriRegexp:
265
268
  Lint/UselessMethodDefinition:
266
269
  Enabled: false
267
270
 
271
+ Lint/UselessRuby2Keywords:
272
+ Enabled: true
273
+
268
274
  Lint/UselessTimes:
269
275
  Enabled: false
270
276
 
@@ -295,6 +301,9 @@ Metrics/PerceivedComplexity:
295
301
  Migration/DepartmentName:
296
302
  Enabled: false
297
303
 
304
+ Naming/BlockForwarding:
305
+ Enabled: false
306
+
298
307
  Naming/BlockParameterName:
299
308
  Enabled: false
300
309
 
@@ -317,6 +326,7 @@ Naming/InclusiveLanguage:
317
326
  - 'blob/master/'
318
327
  - 'origin/master'
319
328
  - 'mastercard'
329
+ - 'webmaster'
320
330
 
321
331
  Naming/MemoizedInstanceVariableName:
322
332
  Enabled: false
@@ -336,6 +346,9 @@ Naming/RescuedExceptionsVariableName:
336
346
  Naming/VariableNumber:
337
347
  Enabled: false
338
348
 
349
+ Security/CompoundHash:
350
+ Enabled: false
351
+
339
352
  Security/MarshalLoad:
340
353
  Enabled: false
341
354
 
@@ -360,9 +373,6 @@ Style/AndOr:
360
373
  Style/ArgumentsForwarding:
361
374
  Enabled: false
362
375
 
363
- Style/AsciiComments:
364
- Enabled: false
365
-
366
376
  Style/BisectedAttrAccessor:
367
377
  Enabled: false
368
378
 
@@ -423,18 +433,27 @@ Style/Encoding:
423
433
  Style/EndlessMethod:
424
434
  Enabled: false
425
435
 
436
+ Style/EnvHome:
437
+ Enabled: false
438
+
426
439
  Style/EvalWithLocation:
427
440
  Enabled: false
428
441
 
429
442
  Style/ExpandPathArguments:
430
443
  Enabled: false
431
444
 
432
- Style/ExplicitBlockArgument:
433
- Enabled: true
434
-
435
445
  Style/ExponentialNotation:
436
446
  Enabled: false
437
447
 
448
+ Style/FetchEnvVar:
449
+ Enabled: false
450
+
451
+ Style/FileRead:
452
+ Enabled: false
453
+
454
+ Style/FileWrite:
455
+ Enabled: false
456
+
438
457
  Style/FloatDivision:
439
458
  Enabled: false
440
459
 
@@ -447,9 +466,6 @@ Style/FrozenStringLiteralComment:
447
466
  literals will become the default in a future Ruby version, and we want to make
448
467
  sure we''re ready.'
449
468
 
450
- Style/GlobalStdStream:
451
- Enabled: false
452
-
453
469
  Style/GuardClause:
454
470
  Enabled: false
455
471
 
@@ -468,6 +484,9 @@ Style/HashExcept:
468
484
  Style/HashLikeCase:
469
485
  Enabled: false
470
486
 
487
+ Style/HashSyntax:
488
+ EnforcedShorthandSyntax: either
489
+
471
490
  Style/HashTransformKeys:
472
491
  Enabled: false
473
492
 
@@ -492,6 +511,9 @@ Style/KeywordParametersOrder:
492
511
  Style/Lambda:
493
512
  Enabled: false
494
513
 
514
+ Style/MapToHash:
515
+ Enabled: false
516
+
495
517
  Style/MethodCallWithArgsParentheses:
496
518
  Enabled: true
497
519
  IgnoredMethods:
@@ -540,6 +562,9 @@ Style/NegatedIfElseCondition:
540
562
  Style/NegatedUnless:
541
563
  Enabled: false
542
564
 
565
+ Style/NestedFileDirname:
566
+ Enabled: true
567
+
543
568
  Style/NilLambda:
544
569
  Enabled: false
545
570
 
@@ -558,6 +583,12 @@ Style/NumericLiterals:
558
583
  Style/NumericPredicate:
559
584
  Enabled: false
560
585
 
586
+ Style/ObjectThen:
587
+ Enabled: false
588
+
589
+ Style/OpenStructUse:
590
+ Enabled: true
591
+
561
592
  Style/OptionalBooleanParameter:
562
593
  Enabled: false
563
594
 
@@ -591,6 +622,9 @@ Style/RedundantFetchBlock:
591
622
  Style/RedundantFileExtensionInRequire:
592
623
  Enabled: false
593
624
 
625
+ Style/RedundantInitialize:
626
+ Enabled: false
627
+
594
628
  Style/RedundantRegexpCharacterClass:
595
629
  Enabled: false
596
630
 
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.3.0
4
+ version: 2.6.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-10-05 00:00:00.000000000 Z
11
+ date: 2022-05-13 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.22'
19
+ version: '1.29'
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.22'
26
+ version: '1.29'
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.3.0
40
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.6.0
41
41
  allowed_push_host: https://rubygems.org
42
42
  post_install_message:
43
43
  rdoc_options: []
@@ -47,7 +47,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: '0'
50
+ version: 2.7.0
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="