simplycop 1.12.21 → 1.12.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68e568f306249b37bfb255cdd58ec03e209b2f1e0d81be18c8ef015dab756c4d
4
- data.tar.gz: 84681f62a6470b474340dc9ab33310721a2caf41ada7245d2ab17c39e37b9038
3
+ metadata.gz: 4300fe0cef92b1860b5f9778f1841ebd1db3341ef2a752dfc2d5033c4d9e4beb
4
+ data.tar.gz: 78b46b78d6f1dce94788fde32a06531c037857547d2b1c6ef98e87b700545c93
5
5
  SHA512:
6
- metadata.gz: f139da031074eb065eb31ecf446da61ce67c4fb33e7286dd601e8a236d44cdf3473e048b20f3936f615236e4a7ac866cfdb614bca263236fc17b33b04072898e
7
- data.tar.gz: 8a02a4aef2f054cec5b66af68d2a922bf6cd0481c6337c51d3aff1de4ca82bbdfb6b0cd978537d639889475aec737e88f2bae86482bbc39b37d05caf7e402a84
6
+ metadata.gz: 4f19dd0c98414a22df7d38285caeb140b92d80618dad5c462e93939d270090dbf623002d18f43088d9f57ce2b68b199b612d8172329e47442efeef104c70e08e
7
+ data.tar.gz: aed4ed02ab4fba9da43e3ae962f2f8b55a327f1af0881f98734eae7d3bd2e4d8bf07e183f15aa300b639438bf5228fa1e1145e4c51464214e0790f19622cafb9
data/.simplycop.yml CHANGED
@@ -21,8 +21,52 @@ AllCops:
21
21
  ExtraDetails: true
22
22
  # Adapted from: https://github.com/simplybusiness/how-we-roll/blob/master/development/RUBYSTYLEGUIDE.markdown
23
23
 
24
+ Bundler/DuplicatedGem:
25
+ Enabled: true
26
+
27
+ Bundler/GemComment:
28
+ Enabled: false
29
+
30
+ Bundler/GemFilename:
31
+ Enabled: true
32
+
33
+ # To discuss: Suggest true but 103 fails on Chopin, 10 on Rater
34
+ # Bundler/GemVersion:
35
+ # Enabled: true
36
+
37
+ Bundler/InsecureProtocolSource:
38
+ Enabled: true
24
39
 
25
- Gemspec/DeprecatedAttributeAssignment: # new in 1.30
40
+ Bundler/OrderedGems:
41
+ Enabled: true
42
+
43
+ # To discuss: Suggest true but 3 fails on Chopin, 21 on Rater
44
+ # Gemspec/DependencyVersion:
45
+ # Enabled: true
46
+
47
+ # TODO: 1 autocorrectable in Rater and it would pass
48
+ # Gemspec/DeprecatedAttributeAssignment:
49
+ # Enabled: true
50
+
51
+ # To discuss: Suggest true but 2 fails on Chopin, 10 on Rater
52
+ # Gemspec/DevelopmentDependencies:
53
+ # Enabled: true
54
+
55
+ Gemspec/DuplicatedAssignment:
56
+ Enabled: true
57
+
58
+ Gemspec/OrderedDependencies:
59
+ Enabled: true
60
+
61
+ # TODO: Suggest true but 4 fails on Chopin, 3 on Rater
62
+ # Gemspec/RequireMFA:
63
+ # Enabled: true
64
+
65
+ # TODO: Suggest true but 3 fails on Chopin
66
+ # Gemspec/RequiredRubyVersion:
67
+ # Enabled: true
68
+
69
+ Gemspec/RubyVersionGlobalsUsage:
26
70
  Enabled: true
27
71
 
28
72
  Layout/AccessModifierIndentation:
@@ -438,18 +482,99 @@ Metrics/ParameterLists:
438
482
  CountKeywordArgs: false
439
483
  Enabled: true
440
484
 
441
- Naming/BlockForwarding: # new in 1.24
485
+ Migration/DepartmentName:
486
+ Enabled: true
487
+
488
+ # Suggest true but causes 17 fails in Chopin, 6 in Rater, 2 in CoCo
489
+ # Naming/AccessorMethodName:
490
+ # Enabled: true
491
+
492
+ Naming/AsciiIdentifiers:
493
+ Enabled: true
494
+
495
+ Naming/BinaryOperatorParameterName:
496
+ Enabled: true
497
+
498
+ Naming/BlockForwarding:
499
+ Enabled: true
500
+
501
+ Naming/BlockParameterName:
502
+ Enabled: true
503
+
504
+ Naming/ClassAndModuleCamelCase:
505
+ Enabled: true
506
+
507
+ Naming/ConstantName:
508
+ Enabled: true
509
+
510
+ Naming/FileName:
511
+ Enabled: true
512
+
513
+ Naming/HeredocDelimiterCase:
514
+ Enabled: true
515
+
516
+ Naming/HeredocDelimiterNaming:
442
517
  Enabled: true
443
518
 
444
519
  Naming/InclusiveLanguage:
445
520
  Enabled: true
446
521
 
522
+ # To discuss: suggest true but 86 fails on Chopin
523
+ # Naming/MemoizedInstanceVariableName:
524
+ # Enabled: true
525
+
526
+ Naming/MethodName:
527
+ Enabled: true
528
+
529
+ # To discuss: suggest true with possible allowed exceptions as below (10 fails on Chopin, exceptions would allow 4)
530
+ # Naming/MethodParameterName:
531
+ # Enabled: true
532
+ # AllowedNames:
533
+ # - e
534
+ # - ex
535
+ # - n
536
+
537
+ # To discuss: suggest true but 52 fails in Chopin, 8 in Coco (consider with Naming/AccessorName)
538
+ # Naming/PredicateName:
539
+ # Enabled: true
540
+
541
+ # To discuss: Should decide on a style. Default e instead of err causes 47 fails on Chopin, none on Rater, CoCo
542
+ # Naming/RescuedExceptionsVariableName:
543
+ # Enabled: true
544
+
545
+ Naming/VariableName:
546
+ Enabled: true
547
+
548
+ # To discuss: suggest enforce snake_case as this seems to be the preferred style
549
+ # Default normalcase causes
550
+ # Naming/VariableNumber:
551
+ # Enabled: true
552
+ # EnforcedStyle: snake_case
553
+
447
554
  Security/CompoundHash:
448
555
  Enabled: true
449
556
 
557
+ # Should probably be set to true but 13 offences in chopin spec
558
+ # Security/Eval:
559
+ # Enabled: true
560
+
450
561
  Security/IoMethods:
451
562
  Enabled: true
452
563
 
564
+ # Should probably be set to true but 18 offences in chopin spec
565
+ # Security/JSONLoad:
566
+ # Enabled: true
567
+
568
+ Security/MarshalLoad:
569
+ Enabled: true
570
+
571
+ Security/Open:
572
+ Enabled: true
573
+
574
+ # Two fails on ContinuousCover, others fine
575
+ # Security/YAMLLoad:
576
+ # Enabled: true
577
+
453
578
  Style/AccessModifierDeclarations:
454
579
  Enabled: false
455
580
 
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.21'
10
+ VERSION = '1.12.22'
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.21
4
+ version: 1.12.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop