simplycop 1.12.22 → 1.12.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.simplycop.yml +402 -34
  3. data/lib/simplycop/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4300fe0cef92b1860b5f9778f1841ebd1db3341ef2a752dfc2d5033c4d9e4beb
4
- data.tar.gz: 78b46b78d6f1dce94788fde32a06531c037857547d2b1c6ef98e87b700545c93
3
+ metadata.gz: b1e606f65e8473ad122d343ad2a2c233e81c3aaed4d666575fb245a0b2aa761b
4
+ data.tar.gz: 2a6dcee6680252df61da89a9fa43d4bbe1ab77cfbf697ae8339c4e68d43b1a53
5
5
  SHA512:
6
- metadata.gz: 4f19dd0c98414a22df7d38285caeb140b92d80618dad5c462e93939d270090dbf623002d18f43088d9f57ce2b68b199b612d8172329e47442efeef104c70e08e
7
- data.tar.gz: aed4ed02ab4fba9da43e3ae962f2f8b55a327f1af0881f98734eae7d3bd2e4d8bf07e183f15aa300b639438bf5228fa1e1145e4c51464214e0790f19622cafb9
6
+ metadata.gz: 5edbc9322e4f83c7888eb4db682169825d7f530988abb7e5623c829a743b783bedc28ac64f93c0b99c543629de5fd99e7d772feb88e41307abf6d62df4e786ad
7
+ data.tar.gz: 70a6de5c7df05ce6fd4dc66b4191b7aaf5ceda55591d076326e2aacd6c109339d3a808fe2c464d91124d97af14b09cb1bddb0cc8a417e74877888e3afa51eb08
data/.simplycop.yml CHANGED
@@ -58,7 +58,7 @@ Gemspec/DuplicatedAssignment:
58
58
  Gemspec/OrderedDependencies:
59
59
  Enabled: true
60
60
 
61
- # TODO: Suggest true but 4 fails on Chopin, 3 on Rater
61
+ # TODO: Suggest true but 4 fails on Chopin, 3 on Rater, overridden to false on Chopin
62
62
  # Gemspec/RequireMFA:
63
63
  # Enabled: true
64
64
 
@@ -229,12 +229,15 @@ Layout/LeadingCommentSpace:
229
229
  Layout/LeadingEmptyLines:
230
230
  Enabled: true
231
231
 
232
+ # Overridden to false in Chopin
232
233
  Layout/LineContinuationLeadingSpace:
233
234
  Enabled: true
234
235
 
236
+ # Overridden to false in Chopin
235
237
  Layout/LineContinuationSpacing:
236
238
  Enabled: true
237
239
 
240
+ # Overridden to false in Chopin
238
241
  Layout/LineEndStringConcatenationIndentation:
239
242
  Enabled: true
240
243
 
@@ -387,101 +390,454 @@ Lint/AmbiguousBlockAssociation:
387
390
  Exclude:
388
391
  - spec/**/*
389
392
 
393
+ Lint/AmbiguousOperator:
394
+ Enabled: true
395
+
396
+ # Overridden to false in Chopin
390
397
  Lint/AmbiguousOperatorPrecedence:
391
398
  Enabled: true
392
399
 
400
+ # Overridden to false in Chopin
393
401
  Lint/AmbiguousRange:
394
402
  Enabled: true
395
403
 
404
+ # TODO: One fail on rater spec then would pass
405
+ # Lint/AmbiguousRegexpLiteral:
406
+ # Enabled: true
407
+
408
+ Lint/AssignmentInCondition:
409
+ Enabled: true
410
+
411
+ Lint/BigDecimalNew:
412
+ Enabled: true
413
+
414
+ Lint/BinaryOperatorWithIdenticalOperands:
415
+ Enabled: true
416
+
417
+ Lint/BooleanSymbol:
418
+ Enabled: true
419
+
420
+ Lint/CircularArgumentReference:
421
+ Enabled: true
422
+
423
+ # TODO: 6 fails in Rater, otherwise clear
424
+ # Lint/ConstantDefinitionInBlock:
425
+ # Enabled: true
426
+
396
427
  Lint/ConstantOverwrittenInRescue: # new in 1.31
397
428
  Enabled: true
398
429
 
430
+ # Set to false as 10000s of fails on Rater and Chopin if enabled
431
+ # Rubocop docs suggest enabling only for constants that may cause concern
432
+ # so enable and set these if required
433
+ Lint/ConstantResolution:
434
+ Enabled: false
435
+
436
+ Lint/Debugger:
437
+ Enabled: true
438
+
439
+ Lint/DeprecatedClassMethods:
440
+ Enabled: true
441
+
399
442
  Lint/DeprecatedConstants:
400
443
  Enabled: true
401
444
 
445
+ Lint/DeprecatedOpenSSLConstant:
446
+ Enabled: true
447
+
448
+ Lint/DisjunctiveAssignmentInConstructor:
449
+ Enabled: true
450
+
402
451
  Lint/DuplicateBranch:
403
452
  Enabled: true
404
453
 
454
+ Lint/DuplicateCaseCondition:
455
+ Enabled: true
456
+
457
+ Lint/DuplicateElsifCondition:
458
+ Enabled: true
459
+
460
+ Lint/DuplicateHashKey:
461
+ Enabled: true
462
+
405
463
  Lint/DuplicateMagicComment:
406
464
  Enabled: true
407
465
 
466
+ Lint/DuplicateMatchPattern:
467
+ Enabled: true
468
+
408
469
  Lint/DuplicateMethods:
409
470
  Enabled: true
410
471
 
411
472
  Lint/DuplicateRegexpCharacterClassElement:
412
473
  Enabled: true
413
474
 
475
+ Lint/DuplicateRequire:
476
+ Enabled: true
477
+
478
+ Lint/DuplicateRescueException:
479
+ Enabled: true
480
+
481
+ Lint/EachWithObjectArgument:
482
+ Enabled: true
483
+
484
+ # TODO: 19 autocorrectable odd else layouts in Rater
485
+ # Lint/ElseLayout:
486
+ # Enabled: true
487
+
414
488
  Lint/EmptyBlock:
415
489
  Enabled: true
416
490
 
417
491
  Lint/EmptyClass:
418
492
  Enabled: true
419
493
 
494
+ Lint/EmptyConditionalBody:
495
+ Enabled: true
496
+
497
+ Lint/EmptyEnsure:
498
+ Enabled: true
499
+
500
+ Lint/EmptyExpression:
501
+ Enabled: true
502
+
503
+ Lint/EmptyFile:
504
+ Enabled: true
505
+
420
506
  Lint/EmptyInPattern: # new in 1.16
507
+ Enabled: true
508
+
509
+ Lint/EmptyInterpolation:
510
+ Enabled: true
511
+
512
+ Lint/EmptyWhen:
421
513
  Enabled: true
422
514
 
515
+ Lint/ErbNewArguments:
516
+ Enabled: true
517
+
518
+ Lint/FlipFlop:
519
+ Enabled: true
520
+
521
+ Lint/FloatComparison:
522
+ Enabled: true
523
+
524
+ Lint/FloatOutOfRange:
525
+ Enabled: true
526
+
527
+ Lint/FormatParameterMismatch:
528
+ Enabled: true
529
+
530
+ Lint/HashCompareByIdentity:
531
+ Enabled: true
532
+
423
533
  Lint/HeredocMethodCallPosition:
424
534
  Enabled: true
425
535
 
536
+ Lint/IdentityComparison:
537
+ Enabled: true
538
+
539
+ Lint/ImplicitStringConcatenation:
540
+ Enabled: true
541
+
426
542
  Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
427
543
  Enabled: true
428
544
 
545
+ # TODO: two fails on Rater, one on CoCo, otherwise fine to enable
546
+ # Lint/IneffectiveAccessModifier:
547
+ # Enabled: true
548
+
549
+ Lint/InheritException:
550
+ Enabled: true
551
+
552
+ Lint/InterpolationCheck:
553
+ Enabled: true
554
+
429
555
  Lint/LambdaWithoutLiteralBlock:
430
556
  Enabled: true
431
557
 
558
+ Lint/LiteralAsCondition:
559
+ Enabled: true
560
+
561
+ Lint/LiteralInInterpolation:
562
+ Enabled: true
563
+
564
+ Lint/Loop:
565
+ Enabled: true
566
+
567
+ Lint/MissingCopEnableDirective:
568
+ Enabled: true
569
+
570
+ # TODO: Handful of errors on Rater and CoCo
571
+ # Lint/MissingSuper:
572
+ # Enabled: true
573
+
574
+ Lint/MixedRegexpCaptureTypes:
575
+ Enabled: true
576
+
577
+ Lint/MultipleComparison:
578
+ Enabled: true
579
+
580
+ Lint/NestedMethodDefinition:
581
+ Enabled: true
582
+
583
+ Lint/NestedPercentLiteral:
584
+ Enabled: true
585
+
586
+ Lint/NextWithoutAccumulator:
587
+ Enabled: true
588
+
432
589
  Lint/NoReturnInBeginEndBlocks:
433
590
  Enabled: true
434
591
 
592
+ # Overridden to false in Chopin
435
593
  Lint/NonAtomicFileOperation:
436
594
  Enabled: true
437
595
 
596
+ Lint/NonDeterministicRequireOrder:
597
+ Enabled: true
598
+
599
+ Lint/NonLocalExitFromIterator:
600
+ Enabled: true
601
+
602
+ # 100s of fails on Rater and Chopin
603
+ # Lint/NumberConversion:
604
+ # Enabled: true
605
+
438
606
  Lint/NumberedParameterAssignment:
439
607
  Enabled: true
440
608
 
441
609
  Lint/OrAssignmentToConstant:
442
610
  Enabled: true
443
611
 
612
+ Lint/OrderedMagicComments:
613
+ Enabled: true
614
+
615
+ Lint/OutOfRangeRegexpRef:
616
+ Enabled: true
617
+
618
+ Lint/ParenthesesAsGroupedExpression:
619
+ Enabled: true
620
+
621
+ Lint/PercentStringArray:
622
+ Enabled: true
623
+
624
+ Lint/PercentSymbolArray:
625
+ Enabled: true
626
+
627
+ Lint/RaiseException:
628
+ Enabled: true
629
+
630
+ Lint/RandOne:
631
+ Enabled: true
632
+
633
+ # Can't be checked with --only, enable once Rater and Chopin up to date with Simplycop
634
+ # Lint/RedundantCopDisableDirective:
635
+ # Enabled: true
636
+
637
+ # Can't be checked with --only, enable once Rater and Chopin up to date with Simplycop
638
+ # Lint/RedundantCopEnableDirective:
639
+ # Enabled: true
640
+
444
641
  Lint/RedundantDirGlobSort:
445
642
  Enabled: true
446
643
 
644
+ Lint/RedundantRequireStatement:
645
+ Enabled: true
646
+
647
+ Lint/RedundantSafeNavigation:
648
+ Enabled: true
649
+
650
+ Lint/RedundantSplatExpansion:
651
+ Enabled: true
652
+
653
+ Lint/RedundantStringCoercion:
654
+ Enabled: true
655
+
656
+ Lint/RedundantWithIndex:
657
+ Enabled: true
658
+
659
+ Lint/RedundantWithObject:
660
+ Enabled: true
661
+
447
662
  Lint/RefinementImportMethods:
448
663
  Enabled: true
449
664
 
665
+ Lint/RegexpAsCondition:
666
+ Enabled: true
667
+
668
+ Lint/RequireParentheses:
669
+ Enabled: true
670
+
450
671
  Lint/RequireRangeParentheses:
451
672
  Enabled: true
452
673
 
674
+ # Overridden to false in Chopin
453
675
  Lint/RequireRelativeSelfPath:
454
676
  Enabled: true
455
677
 
678
+ Lint/RescueException:
679
+ Enabled: true
680
+
681
+ Lint/RescueType:
682
+ Enabled: true
683
+
684
+ Lint/ReturnInVoidContext:
685
+ Enabled: true
686
+
687
+ Lint/SafeNavigationChain:
688
+ Enabled: true
689
+
690
+ Lint/SafeNavigationConsistency:
691
+ Enabled: true
692
+
693
+ Lint/SafeNavigationWithEmpty:
694
+ Enabled: true
695
+
696
+ Lint/ScriptPermission:
697
+ Enabled: true
698
+
699
+ Lint/SelfAssignment:
700
+ Enabled: true
701
+
702
+ Lint/SendWithMixinArgument:
703
+ Enabled: true
704
+
705
+ Lint/ShadowedArgument:
706
+ Enabled: true
707
+
708
+ Lint/ShadowedException:
709
+ Enabled: true
710
+
711
+ # To discuss: 63 offences on Chopin, none on Rater, CoCo
712
+ # Lint/ShadowingOuterLocalVariable:
713
+ # Enabled: true
714
+
715
+ Lint/StructNewOverride:
716
+ Enabled: true
717
+
718
+ Lint/SuppressedException:
719
+ Enabled: true
720
+
456
721
  Lint/SymbolConversion:
457
722
  Enabled: true
458
723
 
724
+ Lint/Syntax:
725
+ Enabled: true
726
+
459
727
  Lint/ToEnumArguments:
460
728
  Enabled: true
461
729
 
730
+ Lint/ToJSON:
731
+ Enabled: true
732
+
733
+ Lint/TopLevelReturnWithArgument:
734
+ Enabled: true
735
+
736
+ Lint/TrailingCommaInAttributeDeclaration:
737
+ Enabled: true
738
+
462
739
  Lint/TripleQuotes:
463
740
  Enabled: true
464
741
 
742
+ Lint/UnderscorePrefixedVariableName:
743
+ Enabled: true
744
+
465
745
  Lint/UnexpectedBlockArity:
466
746
  Enabled: true
467
747
 
748
+ Lint/UnifiedInteger:
749
+ Enabled: true
750
+
468
751
  Lint/UnmodifiedReduceAccumulator:
469
752
  Enabled: true
470
753
 
754
+ Lint/UnreachableCode:
755
+ Enabled: true
756
+
757
+ Lint/UnreachableLoop:
758
+ Enabled: true
759
+
760
+ Lint/UnusedBlockArgument:
761
+ Enabled: true
762
+
763
+ Lint/UnusedMethodArgument:
764
+ Enabled: true
765
+
766
+ Lint/UriEscapeUnescape:
767
+ Enabled: true
768
+
769
+ Lint/UriRegexp:
770
+ Enabled: true
771
+
772
+ Lint/UselessAccessModifier:
773
+ Enabled: true
774
+
775
+ Lint/UselessAssignment:
776
+ Enabled: true
777
+
778
+ Lint/UselessElseWithoutRescue:
779
+ Enabled: true
780
+
781
+ Lint/UselessMethodDefinition:
782
+ Enabled: true
783
+
784
+ # TODO: Single fail on Chopin
785
+ # Lint/UselessRescue:
786
+ # Enabled: true
787
+
471
788
  Lint/UselessRuby2Keywords:
472
789
  Enabled: true
473
790
 
791
+ Lint/UselessSetterCall:
792
+ Enabled: true
793
+
794
+ Lint/UselessTimes:
795
+ Enabled: true
796
+
797
+ Lint/Void:
798
+ Enabled: true
799
+
800
+ # METRICS COPS
801
+
802
+ # Metrics cops are enabled by default with the expectation that many repos will
803
+ # have to set their own limits or disable. #technical-excellence-community discussion
804
+ # suggested some liked to work from them, and that overriding should be a conscious decision
805
+
806
+ Metrics/AbcSize:
807
+ Enabled: true
808
+
474
809
  Metrics/BlockLength:
810
+ Enabled: true
475
811
  Exclude:
476
812
  - spec/**/*.rb
477
813
 
814
+ Metrics/BlockNesting:
815
+ Enabled: true
816
+
478
817
  Metrics/ClassLength:
479
- Max: 512
818
+ Enabled: true
819
+
820
+ Metrics/CollectionLiteralLength:
821
+ Enabled: true
822
+
823
+ Metrics/CyclomaticComplexity:
824
+ Enabled: true
825
+
826
+ Metrics/MethodLength:
827
+ Enabled: true
828
+ Exclude:
829
+ - spec/**/*.rb
830
+
831
+ Metrics/ModuleLength:
832
+ Enabled: true
480
833
 
481
834
  Metrics/ParameterLists:
482
835
  CountKeywordArgs: false
483
836
  Enabled: true
484
837
 
838
+ Metrics/PerceivedComplexity:
839
+ Enabled: true
840
+
485
841
  Migration/DepartmentName:
486
842
  Enabled: true
487
843
 
@@ -526,13 +882,15 @@ Naming/InclusiveLanguage:
526
882
  Naming/MethodName:
527
883
  Enabled: true
528
884
 
529
- # To discuss: suggest true with possible allowed exceptions as below (10 fails on Chopin, exceptions would allow 4)
885
+ # To discuss: suggest true with possible allowed exceptions as below (10 fails on Chopin, exceptions would allow 4,
886
+ # as and to are already exceptions in Rater so would remove need to configure there)
530
887
  # Naming/MethodParameterName:
531
888
  # Enabled: true
532
889
  # AllowedNames:
533
- # - e
890
+ # - as
534
891
  # - ex
535
892
  # - n
893
+ # - to
536
894
 
537
895
  # To discuss: suggest true but 52 fails in Chopin, 8 in Coco (consider with Naming/AccessorName)
538
896
  # Naming/PredicateName:
@@ -551,6 +909,7 @@ Naming/VariableName:
551
909
  # Enabled: true
552
910
  # EnforcedStyle: snake_case
553
911
 
912
+ # Overridden to false in Chopin
554
913
  Security/CompoundHash:
555
914
  Enabled: true
556
915
 
@@ -558,6 +917,7 @@ Security/CompoundHash:
558
917
  # Security/Eval:
559
918
  # Enabled: true
560
919
 
920
+ # Overridden to false on Chopin
561
921
  Security/IoMethods:
562
922
  Enabled: true
563
923
 
@@ -593,6 +953,7 @@ Style/ArgumentsForwarding:
593
953
  Style/ArrayCoercion:
594
954
  Enabled: true
595
955
 
956
+ # Overridden to false in Chopin
596
957
  Style/ArrayIntersect:
597
958
  Enabled: true
598
959
 
@@ -601,7 +962,9 @@ Style/ArrayJoin:
601
962
 
602
963
  Style/AsciiComments:
603
964
  Enabled: true
604
- AllowedChars: [£, ©]
965
+ AllowedChars:
966
+ - £
967
+ - ©
605
968
 
606
969
  Style/Attr:
607
970
  Enabled: true
@@ -679,8 +1042,8 @@ Style/CommentedKeyword:
679
1042
  Enabled: true
680
1043
 
681
1044
  # TODO: Single fail on Rater
682
- # Style/ComparableClamp:
683
- # Enabled: true
1045
+ Style/ComparableClamp:
1046
+ Enabled: true
684
1047
 
685
1048
  Style/ConcatArrayLiterals:
686
1049
  Enabled: true
@@ -775,9 +1138,8 @@ Style/EvalWithLocation:
775
1138
  Style/EvenOdd:
776
1139
  Enabled: true
777
1140
 
778
- # Added in version 1.51, unable to check v Chopin, CoCo, Rater yet
779
- # Style/ExactRegexpMatch:
780
- # Enabled: true
1141
+ Style/ExactRegexpMatch:
1142
+ Enabled: true
781
1143
 
782
1144
  Style/ExpandPathArguments:
783
1145
  Enabled: true
@@ -788,6 +1150,7 @@ Style/ExplicitBlockArgument:
788
1150
  Style/ExponentialNotation:
789
1151
  Enabled: false
790
1152
 
1153
+ # Overridden to false in Chopin
791
1154
  Style/FetchEnvVar:
792
1155
  Enabled: true
793
1156
 
@@ -797,6 +1160,7 @@ Style/FileEmpty:
797
1160
  Style/FileRead: # new in 1.24
798
1161
  Enabled: true
799
1162
 
1163
+ # Overridden to false in Chopin
800
1164
  Style/FileWrite:
801
1165
  Enabled: true
802
1166
 
@@ -839,9 +1203,10 @@ Style/HashExcept:
839
1203
  Style/HashLikeCase:
840
1204
  Enabled: false
841
1205
 
842
- # For discussion - 11000+ fails on Chopin if true by default
843
- # Style/HashSyntax:
844
- # Enabled: false
1206
+ Style/HashSyntax:
1207
+ Enabled: true
1208
+ EnforcedStyle: no_mixed_keys
1209
+ EnforcedShorthandSyntax: consistent
845
1210
 
846
1211
  Style/HashTransformKeys:
847
1212
  Enabled: true
@@ -911,12 +1276,13 @@ Style/MagicCommentFormat: # new in 1.35
911
1276
  Style/MapCompactWithConditionalBlock: # new in 1.30
912
1277
  Enabled: true
913
1278
 
1279
+ # Overridden to false in Chopin
914
1280
  Style/MapToHash:
915
1281
  Enabled: true
916
1282
 
917
- # TODO: small number of fixes in Chopin
918
- # Style/MapToSet:
919
- # Enabled: true
1283
+ # Overridden to false in Chopin
1284
+ Style/MapToSet:
1285
+ Enabled: true
920
1286
 
921
1287
  # For discussion - 1000s of fails, suggest false
922
1288
  # Style/MethodCallWithArgsParentheses:
@@ -935,9 +1301,9 @@ Style/MethodDefParentheses:
935
1301
  Style/MinMax:
936
1302
  Enabled: true
937
1303
 
938
- # For discussion - multiple fails, suggest true
939
- # Style/MinMaxComparison:
940
- # Enabled: true
1304
+ # Overridden to false in Chopin
1305
+ Style/MinMaxComparison:
1306
+ Enabled: true
941
1307
 
942
1308
  # For discussion - 100s of fails with default true
943
1309
  # Style/MissingElse:
@@ -1046,15 +1412,15 @@ Style/ObjectThen: # new in 1.28
1046
1412
  Style/OneLineConditional:
1047
1413
  Enabled: true
1048
1414
 
1415
+ # Overridden to false in Chopin
1049
1416
  Style/OpenStructUse:
1050
1417
  Enabled: true
1051
1418
 
1052
1419
  Style/OperatorMethodCall:
1053
1420
  Enabled: true
1054
1421
 
1055
- # For discussion - suggest true, but dozens of fails on Chopin and handful on Coco, Rater
1056
- # Style/OptionHash:
1057
- # Enabled: true
1422
+ Style/OptionHash:
1423
+ Enabled: true
1058
1424
 
1059
1425
  Style/OptionalArguments:
1060
1426
  Enabled: true
@@ -1086,6 +1452,7 @@ Style/PreferredHashMethods:
1086
1452
  Style/Proc:
1087
1453
  Enabled: true
1088
1454
 
1455
+ # Overridden to false in Chopin
1089
1456
  Style/QuotedSymbols:
1090
1457
  Enabled: true
1091
1458
 
@@ -1168,6 +1535,7 @@ Style/RedundantSelf:
1168
1535
  Style/RedundantSelfAssignment:
1169
1536
  Enabled: true
1170
1537
 
1538
+ # Overridden to false in Chopin
1171
1539
  Style/RedundantSelfAssignmentBranch:
1172
1540
  Enabled: true
1173
1541
 
@@ -1177,6 +1545,7 @@ Style/RedundantSort:
1177
1545
  Style/RedundantSortBy:
1178
1546
  Enabled: true
1179
1547
 
1548
+ # Overridden to false in Chopin
1180
1549
  Style/RedundantStringEscape:
1181
1550
  Enabled: true
1182
1551
 
@@ -1204,6 +1573,7 @@ Style/SafeNavigation:
1204
1573
  Style/Sample:
1205
1574
  Enabled: true
1206
1575
 
1576
+ # Overridden to false in Chopin
1207
1577
  Style/SelectByRegexp:
1208
1578
  Enabled: true
1209
1579
 
@@ -1223,9 +1593,10 @@ Style/SignalException:
1223
1593
  Style/SingleArgumentDig:
1224
1594
  Enabled: true
1225
1595
 
1226
- # TODO: Small number of autocorrectables on Chopin and Rater
1227
- # Style/SingleLineBlockParams:
1228
- # Enabled: true
1596
+ # If this is to be set true, desired param names need to be set for reduce and inject
1597
+ # (default is |acc, elem|) and current usage suggests domain relevant names are preferred
1598
+ Style/SingleLineBlockParams:
1599
+ Enabled: false
1229
1600
 
1230
1601
  Style/SingleLineMethods:
1231
1602
  Enabled: true
@@ -1331,9 +1702,8 @@ Style/TrivialAccessors:
1331
1702
  Style/UnlessElse:
1332
1703
  Enabled: true
1333
1704
 
1334
- # Single fail on each of Chopin and Rater
1335
- # Style/UnlessLogicalOperators:
1336
- # Enabled: true
1705
+ Style/UnlessLogicalOperators:
1706
+ Enabled: true
1337
1707
 
1338
1708
  Style/UnpackFirst:
1339
1709
  Enabled: true
@@ -1353,13 +1723,11 @@ Style/WhileUntilModifier:
1353
1723
  Style/WordArray:
1354
1724
  EnforcedStyle: brackets
1355
1725
 
1356
- # For discussion - causes no fails but maybe some may like it?
1357
- # Style/YodaCondition:
1358
- # Enabled: true
1726
+ Style/YodaCondition:
1727
+ Enabled: false
1359
1728
 
1360
- # For discussion with above - causes multiple fails
1361
- # Style/YodaExpression:
1362
- # Enabled: true
1729
+ Style/YodaExpression:
1730
+ Enabled: false
1363
1731
 
1364
1732
  Style/ZeroLengthPredicate:
1365
1733
  Enabled: true
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.22'
10
+ VERSION = '1.12.24'
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.22
4
+ version: 1.12.24
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-30 00:00:00.000000000 Z
11
+ date: 2023-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop