simplycop 1.12.22 → 1.12.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplycop.yml +358 -0
- data/lib/simplycop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc8fea3a5b127fa08a9d250016fd102b9a846290fef76953b2bf15b980f69f2
|
4
|
+
data.tar.gz: ed171ab56435846964f89828447bf366e3a69254b25a85ed973e993e71bda264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43943e46ce61242743dd098df0382c8a19478b85f44bb5508bd6bafe3b9095fbd6479f94c8017f066ea709c657f7aef3031c9ee76e159a5c372df7ee3d3b1e29
|
7
|
+
data.tar.gz: f64ea04d619da3c8bedb46d2496bc4c086ea7e8be55ff2a47f497ec2a7c4bae8f49bb7425842d1c9464f3c091c5037656b4fc5369cfecfd0a65c6649edd5a52e
|
data/.simplycop.yml
CHANGED
@@ -387,101 +387,459 @@ Lint/AmbiguousBlockAssociation:
|
|
387
387
|
Exclude:
|
388
388
|
- spec/**/*
|
389
389
|
|
390
|
+
Lint/AmbiguousOperator:
|
391
|
+
Enabled: true
|
392
|
+
|
390
393
|
Lint/AmbiguousOperatorPrecedence:
|
391
394
|
Enabled: true
|
392
395
|
|
393
396
|
Lint/AmbiguousRange:
|
394
397
|
Enabled: true
|
395
398
|
|
399
|
+
# TODO: One fail on rater spec then would pass
|
400
|
+
# Lint/AmbiguousRegexpLiteral:
|
401
|
+
# Enabled: true
|
402
|
+
|
403
|
+
Lint/AssignmentInCondition:
|
404
|
+
Enabled: true
|
405
|
+
|
406
|
+
Lint/BigDecimalNew:
|
407
|
+
Enabled: true
|
408
|
+
|
409
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
410
|
+
Enabled: true
|
411
|
+
|
412
|
+
Lint/BooleanSymbol:
|
413
|
+
Enabled: true
|
414
|
+
|
415
|
+
Lint/CircularArgumentReference:
|
416
|
+
Enabled: true
|
417
|
+
|
418
|
+
# TODO: 6 fails in Rater, otherwise clear
|
419
|
+
# Lint/ConstantDefinitionInBlock:
|
420
|
+
# Enabled: true
|
421
|
+
|
396
422
|
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
397
423
|
Enabled: true
|
398
424
|
|
425
|
+
# Set to false as 10000s of fails on Rater and Chopin if enabled
|
426
|
+
# Rubocop docs suggest enabling only for constants that may cause concern
|
427
|
+
# so enable and set these if required
|
428
|
+
Lint/ConstantResolution:
|
429
|
+
Enabled: false
|
430
|
+
|
431
|
+
Lint/Debugger:
|
432
|
+
Enabled: true
|
433
|
+
|
434
|
+
Lint/DeprecatedClassMethods:
|
435
|
+
Enabled: true
|
436
|
+
|
399
437
|
Lint/DeprecatedConstants:
|
400
438
|
Enabled: true
|
401
439
|
|
440
|
+
Lint/DeprecatedOpenSSLConstant:
|
441
|
+
Enabled: true
|
442
|
+
|
443
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
444
|
+
Enabled: true
|
445
|
+
|
402
446
|
Lint/DuplicateBranch:
|
403
447
|
Enabled: true
|
404
448
|
|
449
|
+
Lint/DuplicateCaseCondition:
|
450
|
+
Enabled: true
|
451
|
+
|
452
|
+
Lint/DuplicateElsifCondition:
|
453
|
+
Enabled: true
|
454
|
+
|
455
|
+
Lint/DuplicateHashKey:
|
456
|
+
Enabled: true
|
457
|
+
|
405
458
|
Lint/DuplicateMagicComment:
|
406
459
|
Enabled: true
|
407
460
|
|
461
|
+
Lint/DuplicateMatchPattern:
|
462
|
+
Enabled: true
|
463
|
+
|
408
464
|
Lint/DuplicateMethods:
|
409
465
|
Enabled: true
|
410
466
|
|
411
467
|
Lint/DuplicateRegexpCharacterClassElement:
|
412
468
|
Enabled: true
|
413
469
|
|
470
|
+
Lint/DuplicateRequire:
|
471
|
+
Enabled: true
|
472
|
+
|
473
|
+
Lint/DuplicateRescueException:
|
474
|
+
Enabled: true
|
475
|
+
|
476
|
+
Lint/EachWithObjectArgument:
|
477
|
+
Enabled: true
|
478
|
+
|
479
|
+
# TODO: 19 autocorrectable odd else layouts in Rater
|
480
|
+
# Lint/ElseLayout:
|
481
|
+
# Enabled: true
|
482
|
+
|
414
483
|
Lint/EmptyBlock:
|
415
484
|
Enabled: true
|
416
485
|
|
417
486
|
Lint/EmptyClass:
|
418
487
|
Enabled: true
|
419
488
|
|
489
|
+
Lint/EmptyConditionalBody:
|
490
|
+
Enabled: true
|
491
|
+
|
492
|
+
Lint/EmptyEnsure:
|
493
|
+
Enabled: true
|
494
|
+
|
495
|
+
Lint/EmptyExpression:
|
496
|
+
Enabled: true
|
497
|
+
|
498
|
+
Lint/EmptyFile:
|
499
|
+
Enabled: true
|
500
|
+
|
420
501
|
Lint/EmptyInPattern: # new in 1.16
|
502
|
+
Enabled: true
|
503
|
+
|
504
|
+
Lint/EmptyInterpolation:
|
505
|
+
Enabled: true
|
506
|
+
|
507
|
+
Lint/EmptyWhen:
|
421
508
|
Enabled: true
|
422
509
|
|
510
|
+
Lint/ErbNewArguments:
|
511
|
+
Enabled: true
|
512
|
+
|
513
|
+
Lint/FlipFlop:
|
514
|
+
Enabled: true
|
515
|
+
|
516
|
+
Lint/FloatComparison:
|
517
|
+
Enabled: true
|
518
|
+
|
519
|
+
Lint/FloatOutOfRange:
|
520
|
+
Enabled: true
|
521
|
+
|
522
|
+
Lint/FormatParameterMismatch:
|
523
|
+
Enabled: true
|
524
|
+
|
525
|
+
Lint/HashCompareByIdentity:
|
526
|
+
Enabled: true
|
527
|
+
|
423
528
|
Lint/HeredocMethodCallPosition:
|
424
529
|
Enabled: true
|
425
530
|
|
531
|
+
Lint/IdentityComparison:
|
532
|
+
Enabled: true
|
533
|
+
|
534
|
+
Lint/ImplicitStringConcatenation:
|
535
|
+
Enabled: true
|
536
|
+
|
426
537
|
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
427
538
|
Enabled: true
|
428
539
|
|
540
|
+
# TODO: two fails on Rater, one on CoCo, otherwise fine to enable
|
541
|
+
# Lint/IneffectiveAccessModifier:
|
542
|
+
# Enabled: true
|
543
|
+
|
544
|
+
Lint/InheritException:
|
545
|
+
Enabled: true
|
546
|
+
|
547
|
+
Lint/InterpolationCheck:
|
548
|
+
Enabled: true
|
549
|
+
|
429
550
|
Lint/LambdaWithoutLiteralBlock:
|
430
551
|
Enabled: true
|
431
552
|
|
553
|
+
Lint/LiteralAsCondition:
|
554
|
+
Enabled: true
|
555
|
+
|
556
|
+
Lint/LiteralInInterpolation:
|
557
|
+
Enabled: true
|
558
|
+
|
559
|
+
Lint/Loop:
|
560
|
+
Enabled: true
|
561
|
+
|
562
|
+
Lint/MissingCopEnableDirective:
|
563
|
+
Enabled: true
|
564
|
+
|
565
|
+
# TODO: Handful of errors on Rater and CoCo
|
566
|
+
# Lint/MissingSuper:
|
567
|
+
# Enabled: true
|
568
|
+
|
569
|
+
Lint/MixedRegexpCaptureTypes:
|
570
|
+
Enabled: true
|
571
|
+
|
572
|
+
Lint/MultipleComparison:
|
573
|
+
Enabled: true
|
574
|
+
|
575
|
+
Lint/NestedMethodDefinition:
|
576
|
+
Enabled: true
|
577
|
+
|
578
|
+
Lint/NestedPercentLiteral:
|
579
|
+
Enabled: true
|
580
|
+
|
581
|
+
Lint/NextWithoutAccumulator:
|
582
|
+
Enabled: true
|
583
|
+
|
432
584
|
Lint/NoReturnInBeginEndBlocks:
|
433
585
|
Enabled: true
|
434
586
|
|
435
587
|
Lint/NonAtomicFileOperation:
|
436
588
|
Enabled: true
|
437
589
|
|
590
|
+
Lint/NonDeterministicRequireOrder:
|
591
|
+
Enabled: true
|
592
|
+
|
593
|
+
Lint/NonLocalExitFromIterator:
|
594
|
+
Enabled: true
|
595
|
+
|
596
|
+
# 100s of fails on Rater and Chopin
|
597
|
+
# Lint/NumberConversion:
|
598
|
+
# Enabled: true
|
599
|
+
|
438
600
|
Lint/NumberedParameterAssignment:
|
439
601
|
Enabled: true
|
440
602
|
|
441
603
|
Lint/OrAssignmentToConstant:
|
442
604
|
Enabled: true
|
443
605
|
|
606
|
+
Lint/OrderedMagicComments:
|
607
|
+
Enabled: true
|
608
|
+
|
609
|
+
Lint/OutOfRangeRegexpRef:
|
610
|
+
Enabled: true
|
611
|
+
|
612
|
+
Lint/ParenthesesAsGroupedExpression:
|
613
|
+
Enabled: true
|
614
|
+
|
615
|
+
Lint/PercentStringArray:
|
616
|
+
Enabled: true
|
617
|
+
|
618
|
+
Lint/PercentSymbolArray:
|
619
|
+
Enabled: true
|
620
|
+
|
621
|
+
Lint/RaiseException:
|
622
|
+
Enabled: true
|
623
|
+
|
624
|
+
Lint/RandOne:
|
625
|
+
Enabled: true
|
626
|
+
|
627
|
+
# Can't be checked with --only, enable once Rater and Chopin up to date with Simplycop
|
628
|
+
# Lint/RedundantCopDisableDirective:
|
629
|
+
# Enabled: true
|
630
|
+
|
631
|
+
# Can't be checked with --only, enable once Rater and Chopin up to date with Simplycop
|
632
|
+
# Lint/RedundantCopEnableDirective:
|
633
|
+
# Enabled: true
|
634
|
+
|
444
635
|
Lint/RedundantDirGlobSort:
|
445
636
|
Enabled: true
|
446
637
|
|
638
|
+
Lint/RedundantRequireStatement:
|
639
|
+
Enabled: true
|
640
|
+
|
641
|
+
Lint/RedundantSafeNavigation:
|
642
|
+
Enabled: true
|
643
|
+
|
644
|
+
Lint/RedundantSplatExpansion:
|
645
|
+
Enabled: true
|
646
|
+
|
647
|
+
Lint/RedundantStringCoercion:
|
648
|
+
Enabled: true
|
649
|
+
|
650
|
+
Lint/RedundantWithIndex:
|
651
|
+
Enabled: true
|
652
|
+
|
653
|
+
Lint/RedundantWithObject:
|
654
|
+
Enabled: true
|
655
|
+
|
447
656
|
Lint/RefinementImportMethods:
|
448
657
|
Enabled: true
|
449
658
|
|
659
|
+
Lint/RegexpAsCondition:
|
660
|
+
Enabled: true
|
661
|
+
|
662
|
+
Lint/RequireParentheses:
|
663
|
+
Enabled: true
|
664
|
+
|
450
665
|
Lint/RequireRangeParentheses:
|
451
666
|
Enabled: true
|
452
667
|
|
453
668
|
Lint/RequireRelativeSelfPath:
|
454
669
|
Enabled: true
|
455
670
|
|
671
|
+
Lint/RescueException:
|
672
|
+
Enabled: true
|
673
|
+
|
674
|
+
Lint/RescueType:
|
675
|
+
Enabled: true
|
676
|
+
|
677
|
+
Lint/ReturnInVoidContext:
|
678
|
+
Enabled: true
|
679
|
+
|
680
|
+
Lint/SafeNavigationChain:
|
681
|
+
Enabled: true
|
682
|
+
|
683
|
+
Lint/SafeNavigationConsistency:
|
684
|
+
Enabled: true
|
685
|
+
|
686
|
+
Lint/SafeNavigationWithEmpty:
|
687
|
+
Enabled: true
|
688
|
+
|
689
|
+
Lint/ScriptPermission:
|
690
|
+
Enabled: true
|
691
|
+
|
692
|
+
Lint/SelfAssignment:
|
693
|
+
Enabled: true
|
694
|
+
|
695
|
+
Lint/SendWithMixinArgument:
|
696
|
+
Enabled: true
|
697
|
+
|
698
|
+
Lint/ShadowedArgument:
|
699
|
+
Enabled: true
|
700
|
+
|
701
|
+
Lint/ShadowedException:
|
702
|
+
Enabled: true
|
703
|
+
|
704
|
+
# To discuss: 63 offences on Chopin, none on Rater, CoCo
|
705
|
+
# Lint/ShadowingOuterLocalVariable:
|
706
|
+
# Enabled: true
|
707
|
+
|
708
|
+
Lint/StructNewOverride:
|
709
|
+
Enabled: true
|
710
|
+
|
711
|
+
Lint/SuppressedException:
|
712
|
+
Enabled: true
|
713
|
+
|
456
714
|
Lint/SymbolConversion:
|
457
715
|
Enabled: true
|
458
716
|
|
717
|
+
Lint/Syntax:
|
718
|
+
Enabled: true
|
719
|
+
|
459
720
|
Lint/ToEnumArguments:
|
460
721
|
Enabled: true
|
461
722
|
|
723
|
+
Lint/ToJSON:
|
724
|
+
Enabled: true
|
725
|
+
|
726
|
+
Lint/TopLevelReturnWithArgument:
|
727
|
+
Enabled: true
|
728
|
+
|
729
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
730
|
+
Enabled: true
|
731
|
+
|
462
732
|
Lint/TripleQuotes:
|
463
733
|
Enabled: true
|
464
734
|
|
735
|
+
Lint/UnderscorePrefixedVariableName:
|
736
|
+
Enabled: true
|
737
|
+
|
465
738
|
Lint/UnexpectedBlockArity:
|
466
739
|
Enabled: true
|
467
740
|
|
741
|
+
Lint/UnifiedInteger:
|
742
|
+
Enabled: true
|
743
|
+
|
468
744
|
Lint/UnmodifiedReduceAccumulator:
|
469
745
|
Enabled: true
|
470
746
|
|
747
|
+
Lint/UnreachableCode:
|
748
|
+
Enabled: true
|
749
|
+
|
750
|
+
Lint/UnreachableLoop:
|
751
|
+
Enabled: true
|
752
|
+
|
753
|
+
Lint/UnusedBlockArgument:
|
754
|
+
Enabled: true
|
755
|
+
|
756
|
+
Lint/UnusedMethodArgument:
|
757
|
+
Enabled: true
|
758
|
+
|
759
|
+
Lint/UriEscapeUnescape:
|
760
|
+
Enabled: true
|
761
|
+
|
762
|
+
Lint/UriRegexp:
|
763
|
+
Enabled: true
|
764
|
+
|
765
|
+
Lint/UselessAccessModifier:
|
766
|
+
Enabled: true
|
767
|
+
|
768
|
+
Lint/UselessAssignment:
|
769
|
+
Enabled: true
|
770
|
+
|
771
|
+
Lint/UselessElseWithoutRescue:
|
772
|
+
Enabled: true
|
773
|
+
|
774
|
+
Lint/UselessMethodDefinition:
|
775
|
+
Enabled: true
|
776
|
+
|
777
|
+
# TODO: Single fail on Chopin
|
778
|
+
# Lint/UselessRescue:
|
779
|
+
# Enabled: true
|
780
|
+
|
471
781
|
Lint/UselessRuby2Keywords:
|
472
782
|
Enabled: true
|
473
783
|
|
784
|
+
Lint/UselessSetterCall:
|
785
|
+
Enabled: true
|
786
|
+
|
787
|
+
Lint/UselessTimes:
|
788
|
+
Enabled: true
|
789
|
+
|
790
|
+
Lint/Void:
|
791
|
+
Enabled: true
|
792
|
+
|
793
|
+
# To discuss. Suggest enabling with suitable max and progressively lower.
|
794
|
+
# Chopin currently set at 91. Couldn't be lowered much. 671 fails at default of 17.
|
795
|
+
# Rater currently set at 83. Looks like it could be lowered to c. 40. 111 fails at default of 17.
|
796
|
+
# 54 fails in CoCo
|
797
|
+
# Metrics/AbcSize:
|
798
|
+
# Max: tbc
|
799
|
+
|
800
|
+
# To discuss. Keep current exclusion as below but decide on suitable max. Still currently needs many overrides.
|
801
|
+
# At default of 25, 269 fails on Chopin, 10584 on Rater, 18 on CoCo.
|
474
802
|
Metrics/BlockLength:
|
475
803
|
Exclude:
|
476
804
|
- spec/**/*.rb
|
477
805
|
|
806
|
+
Metrics/BlockNesting:
|
807
|
+
Enabled: true
|
808
|
+
|
809
|
+
# To discuss: set new max? Chopin has one class - rfq - at 554. Exclude and set lower max for elsewhere?
|
810
|
+
# CoCo 8 fails at > 100. Max 225. Rater OK
|
478
811
|
Metrics/ClassLength:
|
479
812
|
Max: 512
|
480
813
|
|
814
|
+
Metrics/CollectionLiteralLength:
|
815
|
+
Enabled: true
|
816
|
+
|
817
|
+
# Chopin 31 fails at > 7. Max 18.
|
818
|
+
# Rater 11 at > 7. Max 21
|
819
|
+
# CoCo 9 at > 7. Max 13
|
820
|
+
# Set at 21 to prevent further growth. Discuss setting lower.
|
821
|
+
Metrics/CyclomaticComplexity:
|
822
|
+
Max: 21
|
823
|
+
|
824
|
+
# To discuss. Chopin 1541 fails at > 10, max 118; Rater 330, max 25 with exclusions; CoCo 87, max 51
|
825
|
+
# Metrics/MethodLength:
|
826
|
+
# Max: tbc
|
827
|
+
|
828
|
+
# To discuss. Chopin 22 fails at > 100, max 1521; Rater 31, max 370; CoCo 2, max 160
|
829
|
+
# Metrics/ModuleLength:
|
830
|
+
# Max: tbc
|
831
|
+
|
481
832
|
Metrics/ParameterLists:
|
482
833
|
CountKeywordArgs: false
|
483
834
|
Enabled: true
|
484
835
|
|
836
|
+
# Chopin 15 fails at > 8. Max 19.
|
837
|
+
# Rater 9 at > 8. Max 21
|
838
|
+
# CoCo 5 at > 8. Max 13
|
839
|
+
# Set at 21 to prevent further growth. Discuss setting lower.
|
840
|
+
Metrics/PerceivedComplexity:
|
841
|
+
Max: 21
|
842
|
+
|
485
843
|
Migration/DepartmentName:
|
486
844
|
Enabled: true
|
487
845
|
|
data/lib/simplycop/version.rb
CHANGED
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.
|
4
|
+
version: 1.12.23
|
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-
|
11
|
+
date: 2023-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|