docquet 1.2.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.
@@ -1,4 +1,4 @@
1
- # Department 'Lint' (152):
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.13'
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,30 @@ 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 # was pending
150
+ Enabled: true
141
151
  VersionAdded: '1.72'
152
+ VersionChanged: '1.91'
153
+
154
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintdatadefineoverride
155
+ Lint/DataDefineOverride:
156
+ Description: Disallow overriding the `Data` built-in methods via `Data.define`.
157
+ Enabled: true # was pending
158
+ VersionAdded: '1.85'
142
159
 
143
160
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintdebugger
144
161
  Lint/Debugger:
@@ -234,10 +251,18 @@ Lint/DeprecatedOpenSSLConstant:
234
251
  Enabled: true
235
252
  VersionAdded: '0.84'
236
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
+
237
261
  # Supports --autocorrect
238
262
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintdisjunctiveassignmentinconstructor
239
263
  Lint/DisjunctiveAssignmentInConstructor:
240
264
  Description: In constructor, plain assignment is preferred over disjunctive.
265
+ StyleGuide: "#disjunctive-assignment-in-constructor"
241
266
  Enabled: true
242
267
  Safe: false
243
268
  VersionAdded: '0.62'
@@ -291,6 +316,10 @@ Lint/DuplicateMethods:
291
316
  Description: Checks for duplicate method definitions.
292
317
  Enabled: true
293
318
  VersionAdded: '0.29'
319
+ VersionChanged: '1.90'
320
+ DelegatingMethods:
321
+ - delegate
322
+ AllowedCrossFilePaths: []
294
323
 
295
324
  # Supports --autocorrect
296
325
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateregexpcharacterclasselement
@@ -358,9 +387,9 @@ Lint/EmptyConditionalBody:
358
387
  a body.
359
388
  Enabled: true
360
389
  AutoCorrect: contextual
361
- AllowComments: true
362
390
  VersionAdded: '0.89'
363
391
  VersionChanged: '1.73'
392
+ AllowComments: true
364
393
 
365
394
  # Supports --autocorrect
366
395
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyensure
@@ -404,9 +433,9 @@ Lint/EmptyInterpolation:
404
433
  Lint/EmptyWhen:
405
434
  Description: Checks for `when` branches with empty bodies.
406
435
  Enabled: true
407
- AllowComments: true
408
436
  VersionAdded: '0.45'
409
437
  VersionChanged: '0.83'
438
+ AllowComments: true
410
439
 
411
440
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintensurereturn
412
441
  Lint/EnsureReturn:
@@ -445,7 +474,8 @@ Lint/FloatOutOfRange:
445
474
 
446
475
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintformatparametermismatch
447
476
  Lint/FormatParameterMismatch:
448
- Description: The number of parameters to format/sprint must match the fields.
477
+ Description: Checks for a mismatch between the format fields and the arguments to
478
+ `format`/`sprintf`/`%`.
449
479
  Enabled: true
450
480
  VersionAdded: '0.33'
451
481
 
@@ -470,16 +500,16 @@ Lint/HashNewWithKeywordArgumentsAsDefault:
470
500
  Lint/HeredocMethodCallPosition:
471
501
  Description: Checks for the ordering of a method call where the receiver of the call
472
502
  is a HEREDOC.
473
- Enabled: true # was false
474
503
  StyleGuide: "#heredoc-method-calls"
504
+ Enabled: true # was false
475
505
  VersionAdded: '0.68'
476
506
 
477
507
  # Supports --autocorrect
478
508
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintidentitycomparison
479
509
  Lint/IdentityComparison:
480
510
  Description: Prefer `equal?` over `==` when comparing `object_id`.
481
- Enabled: true
482
511
  StyleGuide: "#identity-comparison"
512
+ Enabled: true
483
513
  VersionAdded: '0.91'
484
514
 
485
515
  # Supports --autocorrect
@@ -513,7 +543,7 @@ Lint/InheritException:
513
543
  Enabled: true
514
544
  SafeAutoCorrect: false
515
545
  VersionAdded: '0.41'
516
- VersionChanged: '1.26'
546
+ VersionChanged: '1.89'
517
547
  EnforcedStyle: standard_error
518
548
  SupportedStyles:
519
549
  - standard_error
@@ -576,21 +606,31 @@ Lint/Loop:
576
606
  VersionChanged: '1.3'
577
607
  Safe: false
578
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
+
579
618
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingcopenabledirective
580
619
  Lint/MissingCopEnableDirective:
581
620
  Description: Checks for a `# rubocop:enable` after `# rubocop:disable`.
582
621
  Enabled: true
583
622
  VersionAdded: '0.52'
584
- MaximumRangeSize: .inf
623
+ VersionChanged: '1.90'
624
+ MaxRangeSize: .inf
585
625
 
586
626
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingsuper
587
627
  Lint/MissingSuper:
588
628
  Description: Checks for the presence of constructors and lifecycle callbacks without
589
629
  calls to `super`.
590
630
  Enabled: true
591
- AllowedParentClasses: []
592
631
  VersionAdded: '0.89'
593
- VersionChanged: '1.4'
632
+ VersionChanged: '1.89'
633
+ AllowedParentClasses: []
594
634
 
595
635
  # Supports --autocorrect
596
636
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedcaserange
@@ -604,6 +644,7 @@ Lint/MixedCaseRange:
604
644
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedregexpcapturetypes
605
645
  Lint/MixedRegexpCaptureTypes:
606
646
  Description: Do not mix named captures and numbered captures in a Regexp literal.
647
+ StyleGuide: "#do-not-mix-named-and-numbered-captures"
607
648
  Enabled: true
608
649
  VersionAdded: '0.85'
609
650
 
@@ -615,6 +656,16 @@ Lint/MultipleComparison:
615
656
  VersionAdded: '0.47'
616
657
  VersionChanged: '1.1'
617
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
+
618
669
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintnestedmethoddefinition
619
670
  Lint/NestedMethodDefinition:
620
671
  Description: Do not use nested method definitions.
@@ -672,11 +723,11 @@ Lint/NumberConversion:
672
723
  Description: Checks unsafe usage of number conversion methods.
673
724
  Enabled: true # was false
674
725
  VersionAdded: '0.53'
675
- VersionChanged: '1.1'
726
+ VersionChanged: '1.88'
676
727
  SafeAutoCorrect: false
677
728
  AllowedMethods: []
678
729
  AllowedPatterns: []
679
- IgnoredClasses:
730
+ AllowedClasses:
680
731
  - Time
681
732
  - DateTime
682
733
 
@@ -691,7 +742,9 @@ Lint/NumberedParameterAssignment:
691
742
  Lint/NumericOperationWithConstantResult:
692
743
  Description: Checks for numeric operations with constant results.
693
744
  Enabled: true # was pending
745
+ SafeAutoCorrect: false
694
746
  VersionAdded: '1.69'
747
+ VersionChanged: '1.88'
695
748
 
696
749
  # Supports --autocorrect
697
750
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintorassignmenttoconstant
@@ -709,7 +762,7 @@ Lint/OrderedMagicComments:
709
762
  Enabled: true
710
763
  SafeAutoCorrect: false
711
764
  VersionAdded: '0.53'
712
- VersionChanged: '1.37'
765
+ VersionChanged: '1.91'
713
766
 
714
767
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintoutofrangeregexpref
715
768
  Lint/OutOfRangeRegexpRef:
@@ -777,6 +830,7 @@ Lint/RedundantCopEnableDirective:
777
830
  Description: Checks for rubocop:enable comments that can be removed.
778
831
  Enabled: true
779
832
  VersionAdded: '0.76'
833
+ VersionChanged: '1.90'
780
834
 
781
835
  # Supports --autocorrect
782
836
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintredundantdirglobsort
@@ -861,8 +915,11 @@ Lint/RedundantWithIndex:
861
915
  Lint/RedundantWithObject:
862
916
  Description: Checks for redundant `with_object`.
863
917
  Enabled: true
918
+ SafeAutoCorrect: false
864
919
  VersionAdded: '0.51'
920
+ VersionChanged: '1.88'
865
921
 
922
+ # Supports --autocorrect
866
923
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintrefinementimportmethods
867
924
  Lint/RefinementImportMethods:
868
925
  Description: Use `Refinement#import_methods` when using `include` or `prepend` in
@@ -870,6 +927,7 @@ Lint/RefinementImportMethods:
870
927
  Enabled: true # was pending
871
928
  SafeAutoCorrect: false
872
929
  VersionAdded: '1.27'
930
+ VersionChanged: '1.88'
873
931
 
874
932
  # Supports --autocorrect
875
933
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintregexpascondition
@@ -926,8 +984,9 @@ Lint/ReturnInVoidContext:
926
984
  Lint/SafeNavigationChain:
927
985
  Description: Do not chain ordinary method call after safe navigation operator.
928
986
  Enabled: true
987
+ SafeAutoCorrect: false
929
988
  VersionAdded: '0.47'
930
- VersionChanged: '0.77'
989
+ VersionChanged: '1.89'
931
990
  AllowedMethods:
932
991
  - present?
933
992
  - blank?
@@ -943,8 +1002,9 @@ Lint/SafeNavigationConsistency:
943
1002
  condition, consistent and appropriate safe navigation, without excess or deficiency,
944
1003
  is used for all method calls on the same object.
945
1004
  Enabled: true
1005
+ SafeAutoCorrect: false
946
1006
  VersionAdded: '0.55'
947
- VersionChanged: '0.77'
1007
+ VersionChanged: '1.85'
948
1008
  AllowedMethods:
949
1009
  - present?
950
1010
  - blank?
@@ -992,6 +1052,7 @@ Lint/ShadowedArgument:
992
1052
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintshadowedexception
993
1053
  Lint/ShadowedException:
994
1054
  Description: Avoid rescuing a higher level exception before a lower level exception.
1055
+ StyleGuide: "#exception-ordering"
995
1056
  Enabled: true
996
1057
  VersionAdded: '0.41'
997
1058
 
@@ -1016,15 +1077,22 @@ Lint/StructNewOverride:
1016
1077
  Enabled: true
1017
1078
  VersionAdded: '0.81'
1018
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
+
1019
1087
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintsuppressedexception
1020
1088
  Lint/SuppressedException:
1021
1089
  Description: Don't suppress exceptions.
1022
1090
  StyleGuide: "#dont-hide-exceptions"
1023
1091
  Enabled: true
1024
- AllowComments: true
1025
- AllowNil: true
1026
1092
  VersionAdded: '0.9'
1027
1093
  VersionChanged: '1.12'
1094
+ AllowComments: true
1095
+ AllowNil: true
1028
1096
 
1029
1097
  # Supports --autocorrect
1030
1098
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintsuppressedexceptioninnumberconversion
@@ -1128,6 +1196,7 @@ Lint/UnexpectedBlockArity:
1128
1196
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintunifiedinteger
1129
1197
  Lint/UnifiedInteger:
1130
1198
  Description: Use Integer instead of Fixnum or Bignum.
1199
+ StyleGuide: "#integer-type-checking"
1131
1200
  Enabled: true
1132
1201
  VersionAdded: '0.43'
1133
1202
 
@@ -1141,7 +1210,7 @@ Lint/UnmodifiedReduceAccumulator:
1141
1210
 
1142
1211
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachablecode
1143
1212
  Lint/UnreachableCode:
1144
- Description: Unreachable code.
1213
+ Description: Checks for unreachable code.
1145
1214
  Enabled: true
1146
1215
  VersionAdded: '0.9'
1147
1216
 
@@ -1154,6 +1223,13 @@ Lint/UnreachableLoop:
1154
1223
  AllowedPatterns:
1155
1224
  - !ruby/regexp /(exactly|at_least|at_most)\(\d+\)\.times/
1156
1225
 
1226
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachablepatternbranch
1227
+ Lint/UnreachablePatternBranch:
1228
+ Description: Checks for unreachable `in` pattern branches after an unconditional catch-all
1229
+ pattern.
1230
+ Enabled: true # was pending
1231
+ VersionAdded: '1.85'
1232
+
1157
1233
  # Supports --autocorrect
1158
1234
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintunusedblockargument
1159
1235
  Lint/UnusedBlockArgument:
@@ -1181,6 +1257,16 @@ Lint/UnusedMethodArgument:
1181
1257
  NotImplementedExceptions:
1182
1258
  - NotImplementedError
1183
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
+
1184
1270
  # https://docs.rubocop.org/rubocop/cops_lint.html#linturiescapeunescape
1185
1271
  Lint/UriEscapeUnescape:
1186
1272
  Description: "`URI.escape` method is obsolete and should not be used. Instead, use
@@ -1224,6 +1310,7 @@ Lint/UselessConstantScoping:
1224
1310
  Description: Checks for useless constant scoping.
1225
1311
  Enabled: true # was pending
1226
1312
  VersionAdded: '1.72'
1313
+ VersionChanged: '1.90'
1227
1314
 
1228
1315
  # Supports --autocorrect
1229
1316
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessdefaultvalueargument
@@ -1310,7 +1397,7 @@ Lint/UselessTimes:
1310
1397
  # Supports --autocorrect
1311
1398
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintvoid
1312
1399
  Lint/Void:
1313
- Description: Possible use of operator/literal/variable in void context.
1400
+ Description: Checks for operators, literals, lambdas, and procs used in void context.
1314
1401
  Enabled: true
1315
1402
  AutoCorrect: contextual
1316
1403
  VersionAdded: '0.9'
@@ -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: A calculated magnitude based on number of assignments, branches, and
5
- conditions.
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
- LengthThreshold: 250
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: A complexity metric that is strongly correlated to the number of test
68
- cases needed to validate a method.
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: A complexity metric geared towards measuring complexity for a human reader.
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: '0.81'
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: Check that cop names in rubocop:disable (etc) comments are given with
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
 
@@ -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: When defining binary operators, name the argument other.
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'
@@ -251,15 +252,17 @@ Naming/PredicateMethod:
251
252
  AllowedPatterns: []
252
253
  AllowBangMethods: false
253
254
  WaywardPredicates:
255
+ - infinite?
254
256
  - nonzero?
255
257
 
256
258
  # https://docs.rubocop.org/rubocop/cops_naming.html#namingpredicateprefix
257
259
  Naming/PredicatePrefix:
258
- Description: Predicate method names should not be prefixed and end with a `?`.
260
+ Description: Checks that predicate method names end with a question mark and do not
261
+ start with a forbidden prefix.
259
262
  StyleGuide: "#bool-methods-qmark"
260
263
  Enabled: true
261
264
  VersionAdded: '0.50'
262
- VersionChanged: '1.75'
265
+ VersionChanged: '1.89'
263
266
  NamePrefix:
264
267
  - is_
265
268
  - has_
@@ -1,4 +1,4 @@
1
- # Department 'RSpec' (112):
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: '2.5'
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.
@@ -756,6 +774,16 @@ RSpec/NotToNot:
756
774
  VersionAdded: '1.4'
757
775
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
758
776
 
777
+ # Supports --autocorrect
778
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecoutput
779
+ RSpec/Output:
780
+ Description: Checks for the use of output calls like puts and print in specs.
781
+ Enabled: true # was pending
782
+ AutoCorrect: contextual
783
+ SafeAutoCorrect: false
784
+ VersionAdded: '3.9'
785
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Output
786
+
759
787
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecoverwritingsetup
760
788
  RSpec/OverwritingSetup:
761
789
  Description: Checks if there is a let/subject that overwrites an existing one.
@@ -921,7 +949,9 @@ RSpec/ScatteredSetup:
921
949
  RSpec/SharedContext:
922
950
  Description: Checks for proper shared_context and shared_examples usage.
923
951
  Enabled: true
952
+ Strict: false
924
953
  VersionAdded: '1.13'
954
+ VersionChanged: '3.10'
925
955
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedContext
926
956
 
927
957
  # Supports --autocorrect
@@ -1001,6 +1031,7 @@ RSpec/StubbedMock:
1001
1031
  VersionAdded: '1.44'
1002
1032
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/StubbedMock
1003
1033
 
1034
+ # Supports --autocorrect
1004
1035
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecsubjectdeclaration
1005
1036
  RSpec/SubjectDeclaration:
1006
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: When overwriting Object#hash to combine values, prefer delegating to
5
- Array#hash over writing a custom implementation.
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: The use of eval represents a serious security risk.
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: The use of `Kernel#open` and `URI.open` represent a serious security
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'