docquet 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/config/cops/style.yml +1 -1
- data/config/defaults/bundler.yml +2 -2
- data/config/defaults/capybara.yml +74 -18
- data/config/defaults/capybara_rspec.yml +42 -17
- data/config/defaults/layout.yml +17 -9
- data/config/defaults/lint.yml +93 -20
- data/config/defaults/metrics.yml +9 -7
- data/config/defaults/migration.yml +2 -2
- data/config/defaults/naming.yml +5 -3
- data/config/defaults/rspec.yml +23 -2
- data/config/defaults/security.yml +4 -5
- data/config/defaults/style.yml +79 -40
- data/config/defaults/thread_safety.yml +27 -1
- data/lib/docquet/version.rb +1 -1
- metadata +2 -2
data/config/defaults/lint.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'Lint' (
|
|
1
|
+
# Department 'Lint' (160):
|
|
2
2
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintambiguousassignment
|
|
3
3
|
Lint/AmbiguousAssignment:
|
|
4
4
|
Description: Checks for mistyped shorthand assignments.
|
|
@@ -12,7 +12,7 @@ Lint/AmbiguousBlockAssociation:
|
|
|
12
12
|
without parentheses.
|
|
13
13
|
Enabled: true
|
|
14
14
|
VersionAdded: '0.48'
|
|
15
|
-
VersionChanged: '1.
|
|
15
|
+
VersionChanged: '1.89'
|
|
16
16
|
AllowedMethods: []
|
|
17
17
|
AllowedPatterns: []
|
|
18
18
|
|
|
@@ -52,6 +52,13 @@ Lint/AmbiguousRegexpLiteral:
|
|
|
52
52
|
VersionAdded: '0.17'
|
|
53
53
|
VersionChanged: '0.83'
|
|
54
54
|
|
|
55
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintargumentmismatch
|
|
56
|
+
Lint/ArgumentMismatch:
|
|
57
|
+
Description: Checks for calls that pass the wrong number of positional arguments to
|
|
58
|
+
a method, using the project index.
|
|
59
|
+
Enabled: true # was pending
|
|
60
|
+
VersionAdded: '1.90'
|
|
61
|
+
|
|
55
62
|
# Supports --autocorrect
|
|
56
63
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintarrayliteralinregexp
|
|
57
64
|
Lint/ArrayLiteralInRegexp:
|
|
@@ -125,20 +132,24 @@ Lint/ConstantReassignment:
|
|
|
125
132
|
Description: Checks for constant reassignments.
|
|
126
133
|
Enabled: true # was pending
|
|
127
134
|
VersionAdded: '1.70'
|
|
135
|
+
VersionChanged: '1.87'
|
|
128
136
|
|
|
129
137
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintconstantresolution
|
|
130
138
|
Lint/ConstantResolution:
|
|
131
139
|
Description: Checks that constants are fully qualified with `::`.
|
|
140
|
+
VersionChanged: '1.89'
|
|
132
141
|
Enabled: true # was false
|
|
133
142
|
VersionAdded: '0.86'
|
|
134
143
|
Only: []
|
|
135
144
|
Ignore: []
|
|
136
145
|
|
|
146
|
+
# Supports --autocorrect
|
|
137
147
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintcopdirectivesyntax
|
|
138
148
|
Lint/CopDirectiveSyntax:
|
|
139
149
|
Description: Checks that `# rubocop:` directives are strictly formatted.
|
|
140
|
-
Enabled: true
|
|
150
|
+
Enabled: true
|
|
141
151
|
VersionAdded: '1.72'
|
|
152
|
+
VersionChanged: '1.91'
|
|
142
153
|
|
|
143
154
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdatadefineoverride
|
|
144
155
|
Lint/DataDefineOverride:
|
|
@@ -240,10 +251,18 @@ Lint/DeprecatedOpenSSLConstant:
|
|
|
240
251
|
Enabled: true
|
|
241
252
|
VersionAdded: '0.84'
|
|
242
253
|
|
|
254
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdeprecatedreference
|
|
255
|
+
Lint/DeprecatedReference:
|
|
256
|
+
Description: Checks for references to methods and constants documented as deprecated
|
|
257
|
+
with a YARD `@deprecated` tag. Requires `AllCops/UseProjectIndex` to be enabled.
|
|
258
|
+
Enabled: true # was pending
|
|
259
|
+
VersionAdded: '1.89'
|
|
260
|
+
|
|
243
261
|
# Supports --autocorrect
|
|
244
262
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdisjunctiveassignmentinconstructor
|
|
245
263
|
Lint/DisjunctiveAssignmentInConstructor:
|
|
246
264
|
Description: In constructor, plain assignment is preferred over disjunctive.
|
|
265
|
+
StyleGuide: "#disjunctive-assignment-in-constructor"
|
|
247
266
|
Enabled: true
|
|
248
267
|
Safe: false
|
|
249
268
|
VersionAdded: '0.62'
|
|
@@ -297,6 +316,10 @@ Lint/DuplicateMethods:
|
|
|
297
316
|
Description: Checks for duplicate method definitions.
|
|
298
317
|
Enabled: true
|
|
299
318
|
VersionAdded: '0.29'
|
|
319
|
+
VersionChanged: '1.90'
|
|
320
|
+
DelegatingMethods:
|
|
321
|
+
- delegate
|
|
322
|
+
AllowedCrossFilePaths: []
|
|
300
323
|
|
|
301
324
|
# Supports --autocorrect
|
|
302
325
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateregexpcharacterclasselement
|
|
@@ -364,9 +387,9 @@ Lint/EmptyConditionalBody:
|
|
|
364
387
|
a body.
|
|
365
388
|
Enabled: true
|
|
366
389
|
AutoCorrect: contextual
|
|
367
|
-
AllowComments: true
|
|
368
390
|
VersionAdded: '0.89'
|
|
369
391
|
VersionChanged: '1.73'
|
|
392
|
+
AllowComments: true
|
|
370
393
|
|
|
371
394
|
# Supports --autocorrect
|
|
372
395
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyensure
|
|
@@ -410,9 +433,9 @@ Lint/EmptyInterpolation:
|
|
|
410
433
|
Lint/EmptyWhen:
|
|
411
434
|
Description: Checks for `when` branches with empty bodies.
|
|
412
435
|
Enabled: true
|
|
413
|
-
AllowComments: true
|
|
414
436
|
VersionAdded: '0.45'
|
|
415
437
|
VersionChanged: '0.83'
|
|
438
|
+
AllowComments: true
|
|
416
439
|
|
|
417
440
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintensurereturn
|
|
418
441
|
Lint/EnsureReturn:
|
|
@@ -451,7 +474,8 @@ Lint/FloatOutOfRange:
|
|
|
451
474
|
|
|
452
475
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintformatparametermismatch
|
|
453
476
|
Lint/FormatParameterMismatch:
|
|
454
|
-
Description:
|
|
477
|
+
Description: Checks for a mismatch between the format fields and the arguments to
|
|
478
|
+
`format`/`sprintf`/`%`.
|
|
455
479
|
Enabled: true
|
|
456
480
|
VersionAdded: '0.33'
|
|
457
481
|
|
|
@@ -476,16 +500,16 @@ Lint/HashNewWithKeywordArgumentsAsDefault:
|
|
|
476
500
|
Lint/HeredocMethodCallPosition:
|
|
477
501
|
Description: Checks for the ordering of a method call where the receiver of the call
|
|
478
502
|
is a HEREDOC.
|
|
479
|
-
Enabled: true # was false
|
|
480
503
|
StyleGuide: "#heredoc-method-calls"
|
|
504
|
+
Enabled: true # was false
|
|
481
505
|
VersionAdded: '0.68'
|
|
482
506
|
|
|
483
507
|
# Supports --autocorrect
|
|
484
508
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintidentitycomparison
|
|
485
509
|
Lint/IdentityComparison:
|
|
486
510
|
Description: Prefer `equal?` over `==` when comparing `object_id`.
|
|
487
|
-
Enabled: true
|
|
488
511
|
StyleGuide: "#identity-comparison"
|
|
512
|
+
Enabled: true
|
|
489
513
|
VersionAdded: '0.91'
|
|
490
514
|
|
|
491
515
|
# Supports --autocorrect
|
|
@@ -519,7 +543,7 @@ Lint/InheritException:
|
|
|
519
543
|
Enabled: true
|
|
520
544
|
SafeAutoCorrect: false
|
|
521
545
|
VersionAdded: '0.41'
|
|
522
|
-
VersionChanged: '1.
|
|
546
|
+
VersionChanged: '1.89'
|
|
523
547
|
EnforcedStyle: standard_error
|
|
524
548
|
SupportedStyles:
|
|
525
549
|
- standard_error
|
|
@@ -582,21 +606,31 @@ Lint/Loop:
|
|
|
582
606
|
VersionChanged: '1.3'
|
|
583
607
|
Safe: false
|
|
584
608
|
|
|
609
|
+
# Supports --autocorrect
|
|
610
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintmisplacedmagiccomment
|
|
611
|
+
Lint/MisplacedMagicComment:
|
|
612
|
+
Description: Checks for magic comments placed where Ruby silently ignores them.
|
|
613
|
+
StyleGuide: "#magic-comments-first"
|
|
614
|
+
Enabled: true # was pending
|
|
615
|
+
SafeAutoCorrect: false
|
|
616
|
+
VersionAdded: '1.91'
|
|
617
|
+
|
|
585
618
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingcopenabledirective
|
|
586
619
|
Lint/MissingCopEnableDirective:
|
|
587
620
|
Description: Checks for a `# rubocop:enable` after `# rubocop:disable`.
|
|
588
621
|
Enabled: true
|
|
589
622
|
VersionAdded: '0.52'
|
|
590
|
-
|
|
623
|
+
VersionChanged: '1.90'
|
|
624
|
+
MaxRangeSize: .inf
|
|
591
625
|
|
|
592
626
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingsuper
|
|
593
627
|
Lint/MissingSuper:
|
|
594
628
|
Description: Checks for the presence of constructors and lifecycle callbacks without
|
|
595
629
|
calls to `super`.
|
|
596
630
|
Enabled: true
|
|
597
|
-
AllowedParentClasses: []
|
|
598
631
|
VersionAdded: '0.89'
|
|
599
|
-
VersionChanged: '1.
|
|
632
|
+
VersionChanged: '1.89'
|
|
633
|
+
AllowedParentClasses: []
|
|
600
634
|
|
|
601
635
|
# Supports --autocorrect
|
|
602
636
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedcaserange
|
|
@@ -610,6 +644,7 @@ Lint/MixedCaseRange:
|
|
|
610
644
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedregexpcapturetypes
|
|
611
645
|
Lint/MixedRegexpCaptureTypes:
|
|
612
646
|
Description: Do not mix named captures and numbered captures in a Regexp literal.
|
|
647
|
+
StyleGuide: "#do-not-mix-named-and-numbered-captures"
|
|
613
648
|
Enabled: true
|
|
614
649
|
VersionAdded: '0.85'
|
|
615
650
|
|
|
@@ -621,6 +656,16 @@ Lint/MultipleComparison:
|
|
|
621
656
|
VersionAdded: '0.47'
|
|
622
657
|
VersionChanged: '1.1'
|
|
623
658
|
|
|
659
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintnametypo
|
|
660
|
+
Lint/NameTypo:
|
|
661
|
+
Description: Checks for probable typos in constant and method names, using the project
|
|
662
|
+
index.
|
|
663
|
+
Enabled: true # was pending
|
|
664
|
+
CheckConstants: true
|
|
665
|
+
CheckMethods: true
|
|
666
|
+
AllowedNames: []
|
|
667
|
+
VersionAdded: '1.89'
|
|
668
|
+
|
|
624
669
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintnestedmethoddefinition
|
|
625
670
|
Lint/NestedMethodDefinition:
|
|
626
671
|
Description: Do not use nested method definitions.
|
|
@@ -678,11 +723,11 @@ Lint/NumberConversion:
|
|
|
678
723
|
Description: Checks unsafe usage of number conversion methods.
|
|
679
724
|
Enabled: true # was false
|
|
680
725
|
VersionAdded: '0.53'
|
|
681
|
-
VersionChanged: '1.
|
|
726
|
+
VersionChanged: '1.88'
|
|
682
727
|
SafeAutoCorrect: false
|
|
683
728
|
AllowedMethods: []
|
|
684
729
|
AllowedPatterns: []
|
|
685
|
-
|
|
730
|
+
AllowedClasses:
|
|
686
731
|
- Time
|
|
687
732
|
- DateTime
|
|
688
733
|
|
|
@@ -697,7 +742,9 @@ Lint/NumberedParameterAssignment:
|
|
|
697
742
|
Lint/NumericOperationWithConstantResult:
|
|
698
743
|
Description: Checks for numeric operations with constant results.
|
|
699
744
|
Enabled: true # was pending
|
|
745
|
+
SafeAutoCorrect: false
|
|
700
746
|
VersionAdded: '1.69'
|
|
747
|
+
VersionChanged: '1.88'
|
|
701
748
|
|
|
702
749
|
# Supports --autocorrect
|
|
703
750
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintorassignmenttoconstant
|
|
@@ -715,7 +762,7 @@ Lint/OrderedMagicComments:
|
|
|
715
762
|
Enabled: true
|
|
716
763
|
SafeAutoCorrect: false
|
|
717
764
|
VersionAdded: '0.53'
|
|
718
|
-
VersionChanged: '1.
|
|
765
|
+
VersionChanged: '1.91'
|
|
719
766
|
|
|
720
767
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintoutofrangeregexpref
|
|
721
768
|
Lint/OutOfRangeRegexpRef:
|
|
@@ -783,6 +830,7 @@ Lint/RedundantCopEnableDirective:
|
|
|
783
830
|
Description: Checks for rubocop:enable comments that can be removed.
|
|
784
831
|
Enabled: true
|
|
785
832
|
VersionAdded: '0.76'
|
|
833
|
+
VersionChanged: '1.90'
|
|
786
834
|
|
|
787
835
|
# Supports --autocorrect
|
|
788
836
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintredundantdirglobsort
|
|
@@ -867,8 +915,11 @@ Lint/RedundantWithIndex:
|
|
|
867
915
|
Lint/RedundantWithObject:
|
|
868
916
|
Description: Checks for redundant `with_object`.
|
|
869
917
|
Enabled: true
|
|
918
|
+
SafeAutoCorrect: false
|
|
870
919
|
VersionAdded: '0.51'
|
|
920
|
+
VersionChanged: '1.88'
|
|
871
921
|
|
|
922
|
+
# Supports --autocorrect
|
|
872
923
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintrefinementimportmethods
|
|
873
924
|
Lint/RefinementImportMethods:
|
|
874
925
|
Description: Use `Refinement#import_methods` when using `include` or `prepend` in
|
|
@@ -876,6 +927,7 @@ Lint/RefinementImportMethods:
|
|
|
876
927
|
Enabled: true # was pending
|
|
877
928
|
SafeAutoCorrect: false
|
|
878
929
|
VersionAdded: '1.27'
|
|
930
|
+
VersionChanged: '1.88'
|
|
879
931
|
|
|
880
932
|
# Supports --autocorrect
|
|
881
933
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintregexpascondition
|
|
@@ -932,8 +984,9 @@ Lint/ReturnInVoidContext:
|
|
|
932
984
|
Lint/SafeNavigationChain:
|
|
933
985
|
Description: Do not chain ordinary method call after safe navigation operator.
|
|
934
986
|
Enabled: true
|
|
987
|
+
SafeAutoCorrect: false
|
|
935
988
|
VersionAdded: '0.47'
|
|
936
|
-
VersionChanged: '
|
|
989
|
+
VersionChanged: '1.89'
|
|
937
990
|
AllowedMethods:
|
|
938
991
|
- present?
|
|
939
992
|
- blank?
|
|
@@ -999,6 +1052,7 @@ Lint/ShadowedArgument:
|
|
|
999
1052
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintshadowedexception
|
|
1000
1053
|
Lint/ShadowedException:
|
|
1001
1054
|
Description: Avoid rescuing a higher level exception before a lower level exception.
|
|
1055
|
+
StyleGuide: "#exception-ordering"
|
|
1002
1056
|
Enabled: true
|
|
1003
1057
|
VersionAdded: '0.41'
|
|
1004
1058
|
|
|
@@ -1023,15 +1077,22 @@ Lint/StructNewOverride:
|
|
|
1023
1077
|
Enabled: true
|
|
1024
1078
|
VersionAdded: '0.81'
|
|
1025
1079
|
|
|
1080
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintsuperargumentmismatch
|
|
1081
|
+
Lint/SuperArgumentMismatch:
|
|
1082
|
+
Description: Checks for `super` calls that pass the wrong number of positional arguments
|
|
1083
|
+
to the overridden implementation, using the project index.
|
|
1084
|
+
Enabled: true # was pending
|
|
1085
|
+
VersionAdded: '1.90'
|
|
1086
|
+
|
|
1026
1087
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintsuppressedexception
|
|
1027
1088
|
Lint/SuppressedException:
|
|
1028
1089
|
Description: Don't suppress exceptions.
|
|
1029
1090
|
StyleGuide: "#dont-hide-exceptions"
|
|
1030
1091
|
Enabled: true
|
|
1031
|
-
AllowComments: true
|
|
1032
|
-
AllowNil: true
|
|
1033
1092
|
VersionAdded: '0.9'
|
|
1034
1093
|
VersionChanged: '1.12'
|
|
1094
|
+
AllowComments: true
|
|
1095
|
+
AllowNil: true
|
|
1035
1096
|
|
|
1036
1097
|
# Supports --autocorrect
|
|
1037
1098
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintsuppressedexceptioninnumberconversion
|
|
@@ -1135,6 +1196,7 @@ Lint/UnexpectedBlockArity:
|
|
|
1135
1196
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunifiedinteger
|
|
1136
1197
|
Lint/UnifiedInteger:
|
|
1137
1198
|
Description: Use Integer instead of Fixnum or Bignum.
|
|
1199
|
+
StyleGuide: "#integer-type-checking"
|
|
1138
1200
|
Enabled: true
|
|
1139
1201
|
VersionAdded: '0.43'
|
|
1140
1202
|
|
|
@@ -1148,7 +1210,7 @@ Lint/UnmodifiedReduceAccumulator:
|
|
|
1148
1210
|
|
|
1149
1211
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachablecode
|
|
1150
1212
|
Lint/UnreachableCode:
|
|
1151
|
-
Description:
|
|
1213
|
+
Description: Checks for unreachable code.
|
|
1152
1214
|
Enabled: true
|
|
1153
1215
|
VersionAdded: '0.9'
|
|
1154
1216
|
|
|
@@ -1195,6 +1257,16 @@ Lint/UnusedMethodArgument:
|
|
|
1195
1257
|
NotImplementedExceptions:
|
|
1196
1258
|
- NotImplementedError
|
|
1197
1259
|
|
|
1260
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunusedprivatemethod
|
|
1261
|
+
Lint/UnusedPrivateMethod:
|
|
1262
|
+
Description: Checks for private instance methods that are not referenced anywhere
|
|
1263
|
+
in the project. Requires `AllCops/UseProjectIndex` to be enabled.
|
|
1264
|
+
Enabled: true # was false
|
|
1265
|
+
AllowedNames: []
|
|
1266
|
+
AllowedPatterns: []
|
|
1267
|
+
VersionAdded: '1.89'
|
|
1268
|
+
VersionChanged: '1.90'
|
|
1269
|
+
|
|
1198
1270
|
# https://docs.rubocop.org/rubocop/cops_lint.html#linturiescapeunescape
|
|
1199
1271
|
Lint/UriEscapeUnescape:
|
|
1200
1272
|
Description: "`URI.escape` method is obsolete and should not be used. Instead, use
|
|
@@ -1238,6 +1310,7 @@ Lint/UselessConstantScoping:
|
|
|
1238
1310
|
Description: Checks for useless constant scoping.
|
|
1239
1311
|
Enabled: true # was pending
|
|
1240
1312
|
VersionAdded: '1.72'
|
|
1313
|
+
VersionChanged: '1.90'
|
|
1241
1314
|
|
|
1242
1315
|
# Supports --autocorrect
|
|
1243
1316
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessdefaultvalueargument
|
|
@@ -1324,7 +1397,7 @@ Lint/UselessTimes:
|
|
|
1324
1397
|
# Supports --autocorrect
|
|
1325
1398
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintvoid
|
|
1326
1399
|
Lint/Void:
|
|
1327
|
-
Description:
|
|
1400
|
+
Description: Checks for operators, literals, lambdas, and procs used in void context.
|
|
1328
1401
|
Enabled: true
|
|
1329
1402
|
AutoCorrect: contextual
|
|
1330
1403
|
VersionAdded: '0.9'
|
data/config/defaults/metrics.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Department 'Metrics' (10):
|
|
2
2
|
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsabcsize
|
|
3
3
|
Metrics/AbcSize:
|
|
4
|
-
Description:
|
|
5
|
-
|
|
4
|
+
Description: Checks that the ABC size of methods is not higher than the configured
|
|
5
|
+
maximum.
|
|
6
6
|
References:
|
|
7
7
|
- https://wiki.c2.com/?AbcMetric
|
|
8
8
|
- https://en.wikipedia.org/wiki/ABC_Software_Metric
|
|
@@ -60,12 +60,13 @@ Metrics/CollectionLiteralLength:
|
|
|
60
60
|
Description: Checks for `Array` or `Hash` literals with many entries.
|
|
61
61
|
Enabled: true # was pending
|
|
62
62
|
VersionAdded: '1.47'
|
|
63
|
-
|
|
63
|
+
VersionChanged: '1.88'
|
|
64
|
+
Max: 250
|
|
64
65
|
|
|
65
66
|
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricscyclomaticcomplexity
|
|
66
67
|
Metrics/CyclomaticComplexity:
|
|
67
|
-
Description:
|
|
68
|
-
|
|
68
|
+
Description: Checks that the cyclomatic complexity of methods is not higher than the
|
|
69
|
+
configured maximum.
|
|
69
70
|
Enabled: true
|
|
70
71
|
VersionAdded: '0.25'
|
|
71
72
|
VersionChanged: '0.81'
|
|
@@ -109,10 +110,11 @@ Metrics/ParameterLists:
|
|
|
109
110
|
|
|
110
111
|
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsperceivedcomplexity
|
|
111
112
|
Metrics/PerceivedComplexity:
|
|
112
|
-
Description:
|
|
113
|
+
Description: Checks that the perceived complexity of methods is not higher than the
|
|
114
|
+
configured maximum.
|
|
113
115
|
Enabled: true
|
|
114
116
|
VersionAdded: '0.25'
|
|
115
|
-
VersionChanged: '
|
|
117
|
+
VersionChanged: '1.88'
|
|
116
118
|
AllowedMethods: []
|
|
117
119
|
AllowedPatterns: []
|
|
118
120
|
Max: 8
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
# Supports --autocorrect
|
|
3
3
|
# https://docs.rubocop.org/rubocop/cops_migration.html#migrationdepartmentname
|
|
4
4
|
Migration/DepartmentName:
|
|
5
|
-
Description:
|
|
6
|
-
department name.
|
|
5
|
+
Description: Checks that cop names in `rubocop:disable` (etc.) comments are given
|
|
6
|
+
with a department name.
|
|
7
7
|
Enabled: true
|
|
8
8
|
VersionAdded: '0.75'
|
|
9
9
|
|
data/config/defaults/naming.yml
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Naming/AccessorMethodName:
|
|
4
4
|
Description: Checks the naming of accessor methods for get_/set_.
|
|
5
5
|
StyleGuide: "#accessor_mutator_method_names"
|
|
6
|
+
VersionChanged: '1.89'
|
|
6
7
|
Enabled: true
|
|
7
8
|
VersionAdded: '0.50'
|
|
8
9
|
|
|
@@ -18,7 +19,7 @@ Naming/AsciiIdentifiers:
|
|
|
18
19
|
# Supports --autocorrect
|
|
19
20
|
# https://docs.rubocop.org/rubocop/cops_naming.html#namingbinaryoperatorparametername
|
|
20
21
|
Naming/BinaryOperatorParameterName:
|
|
21
|
-
Description:
|
|
22
|
+
Description: Checks that the sole parameter of binary operator methods is named `other`.
|
|
22
23
|
StyleGuide: "#other-arg"
|
|
23
24
|
Enabled: true
|
|
24
25
|
VersionAdded: '0.50'
|
|
@@ -256,11 +257,12 @@ Naming/PredicateMethod:
|
|
|
256
257
|
|
|
257
258
|
# https://docs.rubocop.org/rubocop/cops_naming.html#namingpredicateprefix
|
|
258
259
|
Naming/PredicatePrefix:
|
|
259
|
-
Description:
|
|
260
|
+
Description: Checks that predicate method names end with a question mark and do not
|
|
261
|
+
start with a forbidden prefix.
|
|
260
262
|
StyleGuide: "#bool-methods-qmark"
|
|
261
263
|
Enabled: true
|
|
262
264
|
VersionAdded: '0.50'
|
|
263
|
-
VersionChanged: '1.
|
|
265
|
+
VersionChanged: '1.89'
|
|
264
266
|
NamePrefix:
|
|
265
267
|
- is_
|
|
266
268
|
- has_
|
data/config/defaults/rspec.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'RSpec' (
|
|
1
|
+
# Department 'RSpec' (115):
|
|
2
2
|
# Supports --autocorrect
|
|
3
3
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecalignleftletbrace
|
|
4
4
|
RSpec/AlignLeftLetBrace:
|
|
@@ -224,6 +224,14 @@ RSpec/Dialect:
|
|
|
224
224
|
VersionAdded: '1.33'
|
|
225
225
|
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Dialect
|
|
226
226
|
|
|
227
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecdiscardedmatcher
|
|
228
|
+
RSpec/DiscardedMatcher:
|
|
229
|
+
Description: Checks for matchers that are used in void context.
|
|
230
|
+
Enabled: true # was pending
|
|
231
|
+
VersionAdded: '3.10'
|
|
232
|
+
CustomMatcherMethods: []
|
|
233
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DiscardedMatcher
|
|
234
|
+
|
|
227
235
|
# Supports --autocorrect
|
|
228
236
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecduplicatedmetadata
|
|
229
237
|
RSpec/DuplicatedMetadata:
|
|
@@ -398,7 +406,8 @@ RSpec/ExpectChange:
|
|
|
398
406
|
- block
|
|
399
407
|
SafeAutoCorrect: false
|
|
400
408
|
VersionAdded: '1.22'
|
|
401
|
-
VersionChanged: '
|
|
409
|
+
VersionChanged: '3.10'
|
|
410
|
+
NegatedMatcher:
|
|
402
411
|
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectChange
|
|
403
412
|
|
|
404
413
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecexpectinhook
|
|
@@ -617,6 +626,15 @@ RSpec/MatchArray:
|
|
|
617
626
|
VersionAdded: '2.19'
|
|
618
627
|
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MatchArray
|
|
619
628
|
|
|
629
|
+
# Supports --autocorrect
|
|
630
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmatchwithsimpleregex
|
|
631
|
+
RSpec/MatchWithSimpleRegex:
|
|
632
|
+
Description: Enforces the use of `include` matcher instead of `match` when the matcher
|
|
633
|
+
is a simple string literal without regex-specific features.
|
|
634
|
+
Enabled: true # was pending
|
|
635
|
+
VersionAdded: '3.10'
|
|
636
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MatchWithSimpleRegex
|
|
637
|
+
|
|
620
638
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmessagechain
|
|
621
639
|
RSpec/MessageChain:
|
|
622
640
|
Description: Check that chains of messages are not being stubbed.
|
|
@@ -931,7 +949,9 @@ RSpec/ScatteredSetup:
|
|
|
931
949
|
RSpec/SharedContext:
|
|
932
950
|
Description: Checks for proper shared_context and shared_examples usage.
|
|
933
951
|
Enabled: true
|
|
952
|
+
Strict: false
|
|
934
953
|
VersionAdded: '1.13'
|
|
954
|
+
VersionChanged: '3.10'
|
|
935
955
|
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedContext
|
|
936
956
|
|
|
937
957
|
# Supports --autocorrect
|
|
@@ -1011,6 +1031,7 @@ RSpec/StubbedMock:
|
|
|
1011
1031
|
VersionAdded: '1.44'
|
|
1012
1032
|
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/StubbedMock
|
|
1013
1033
|
|
|
1034
|
+
# Supports --autocorrect
|
|
1014
1035
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecsubjectdeclaration
|
|
1015
1036
|
RSpec/SubjectDeclaration:
|
|
1016
1037
|
Description: Ensure that subject is defined using subject helper.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Department 'Security' (7):
|
|
2
2
|
# https://docs.rubocop.org/rubocop/cops_security.html#securitycompoundhash
|
|
3
3
|
Security/CompoundHash:
|
|
4
|
-
Description:
|
|
5
|
-
Array#hash
|
|
4
|
+
Description: Checks for `hash` implementations that combine values manually instead
|
|
5
|
+
of delegating to `Array#hash`.
|
|
6
6
|
Enabled: true # was pending
|
|
7
7
|
Safe: false
|
|
8
8
|
VersionAdded: '1.28'
|
|
@@ -10,7 +10,7 @@ Security/CompoundHash:
|
|
|
10
10
|
|
|
11
11
|
# https://docs.rubocop.org/rubocop/cops_security.html#securityeval
|
|
12
12
|
Security/Eval:
|
|
13
|
-
Description:
|
|
13
|
+
Description: Checks for the use of `Kernel#eval` and `Binding#eval` with dynamic arguments.
|
|
14
14
|
Enabled: true
|
|
15
15
|
VersionAdded: '0.47'
|
|
16
16
|
|
|
@@ -47,8 +47,7 @@ Security/MarshalLoad:
|
|
|
47
47
|
|
|
48
48
|
# https://docs.rubocop.org/rubocop/cops_security.html#securityopen
|
|
49
49
|
Security/Open:
|
|
50
|
-
Description:
|
|
51
|
-
risk.
|
|
50
|
+
Description: Checks for the use of `Kernel#open` and `URI.open` with dynamic data.
|
|
52
51
|
Enabled: true
|
|
53
52
|
VersionAdded: '0.53'
|
|
54
53
|
VersionChanged: '1.0'
|