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/style.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'Style' (
|
|
1
|
+
# Department 'Style' (299):
|
|
2
2
|
# Supports --autocorrect
|
|
3
3
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleaccessmodifierdeclarations
|
|
4
4
|
Style/AccessModifierDeclarations:
|
|
@@ -67,6 +67,8 @@ Style/ArgumentsForwarding:
|
|
|
67
67
|
Description: Use arguments forwarding.
|
|
68
68
|
StyleGuide: "#arguments-forwarding"
|
|
69
69
|
Enabled: true # was pending
|
|
70
|
+
VersionAdded: '1.1'
|
|
71
|
+
VersionChanged: '1.58'
|
|
70
72
|
UseAnonymousForwarding: true
|
|
71
73
|
RedundantRestArgumentNames:
|
|
72
74
|
- args
|
|
@@ -79,8 +81,6 @@ Style/ArgumentsForwarding:
|
|
|
79
81
|
- blk
|
|
80
82
|
- block
|
|
81
83
|
- proc
|
|
82
|
-
VersionAdded: '1.1'
|
|
83
|
-
VersionChanged: '1.58'
|
|
84
84
|
|
|
85
85
|
# Supports --autocorrect
|
|
86
86
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylearraycoercion
|
|
@@ -96,6 +96,7 @@ Style/ArrayCoercion:
|
|
|
96
96
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylearrayfirstlast
|
|
97
97
|
Style/ArrayFirstLast:
|
|
98
98
|
Description: Use `arr.first` and `arr.last` instead of `arr[0]` and `arr[-1]`.
|
|
99
|
+
StyleGuide: "#first-and-last"
|
|
99
100
|
References:
|
|
100
101
|
- "#first-and-last"
|
|
101
102
|
Enabled: true # was false
|
|
@@ -278,7 +279,7 @@ Style/ClassAndModuleChildren:
|
|
|
278
279
|
SafeAutoCorrect: false
|
|
279
280
|
Enabled: true
|
|
280
281
|
VersionAdded: '0.19'
|
|
281
|
-
VersionChanged: '1.
|
|
282
|
+
VersionChanged: '1.89'
|
|
282
283
|
EnforcedStyle: nested
|
|
283
284
|
SupportedStyles:
|
|
284
285
|
- nested
|
|
@@ -365,7 +366,7 @@ Style/CollectionCompact:
|
|
|
365
366
|
# Supports --autocorrect
|
|
366
367
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylecollectionmethods
|
|
367
368
|
Style/CollectionMethods:
|
|
368
|
-
Description:
|
|
369
|
+
Description: Enforces the use of consistent method names from the `Enumerable` module.
|
|
369
370
|
StyleGuide: "#map-find-select-reduce-include-size"
|
|
370
371
|
Enabled: true # was false
|
|
371
372
|
VersionAdded: '0.9'
|
|
@@ -390,6 +391,7 @@ Style/CollectionQuerying:
|
|
|
390
391
|
StyleGuide: "#collection-querying"
|
|
391
392
|
Enabled: true # was pending
|
|
392
393
|
VersionAdded: '1.77'
|
|
394
|
+
VersionChanged: '1.92'
|
|
393
395
|
Safe: false
|
|
394
396
|
|
|
395
397
|
# Supports --autocorrect
|
|
@@ -470,11 +472,11 @@ Style/CommentedKeyword:
|
|
|
470
472
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylecomparablebetween
|
|
471
473
|
Style/ComparableBetween:
|
|
472
474
|
Description: Enforces the use of `Comparable#between?` instead of logical comparison.
|
|
475
|
+
StyleGuide: "#ranges-or-between"
|
|
473
476
|
Enabled: true # was pending
|
|
474
477
|
Safe: false
|
|
475
478
|
VersionAdded: '1.74'
|
|
476
479
|
VersionChanged: '1.75'
|
|
477
|
-
StyleGuide: "#ranges-or-between"
|
|
478
480
|
|
|
479
481
|
# Supports --autocorrect
|
|
480
482
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylecomparableclamp
|
|
@@ -499,6 +501,7 @@ Style/ConditionalAssignment:
|
|
|
499
501
|
Description: Use the return value of `if` and `case` statements for assignment to
|
|
500
502
|
a variable and variable comparison instead of assigning that variable inside of
|
|
501
503
|
each branch.
|
|
504
|
+
StyleGuide: "#use-if-case-returns"
|
|
502
505
|
Enabled: true
|
|
503
506
|
VersionAdded: '0.36'
|
|
504
507
|
VersionChanged: '0.47'
|
|
@@ -540,7 +543,7 @@ Style/DataInheritance:
|
|
|
540
543
|
# https://docs.rubocop.org/rubocop/cops_style.html#styledatetime
|
|
541
544
|
Style/DateTime:
|
|
542
545
|
Description: Use Time over DateTime.
|
|
543
|
-
StyleGuide: "#
|
|
546
|
+
StyleGuide: "#no-datetime"
|
|
544
547
|
Enabled: true # was false
|
|
545
548
|
VersionAdded: '0.51'
|
|
546
549
|
VersionChanged: '0.92'
|
|
@@ -580,14 +583,27 @@ Style/DirEmpty:
|
|
|
580
583
|
Enabled: true # was pending
|
|
581
584
|
VersionAdded: '1.48'
|
|
582
585
|
|
|
586
|
+
# Supports --autocorrect
|
|
587
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styledirectivescope
|
|
588
|
+
Style/DirectiveScope:
|
|
589
|
+
Description: Checks for directive scopes that can be expressed with the tighter `disable-next`
|
|
590
|
+
form.
|
|
591
|
+
Enabled: true # was pending
|
|
592
|
+
SafeAutoCorrect: false
|
|
593
|
+
VersionAdded: '1.90'
|
|
594
|
+
VersionChanged: '1.91'
|
|
595
|
+
|
|
583
596
|
# Supports --autocorrect
|
|
584
597
|
# https://docs.rubocop.org/rubocop/cops_style.html#styledisablecopswithinsourcecodedirective
|
|
585
598
|
Style/DisableCopsWithinSourceCodeDirective:
|
|
586
599
|
Description: Forbids disabling/enabling cops within source code.
|
|
587
600
|
Enabled: true # was false
|
|
588
601
|
VersionAdded: '0.82'
|
|
589
|
-
VersionChanged: '1.
|
|
602
|
+
VersionChanged: '1.92'
|
|
590
603
|
AllowedCops: []
|
|
604
|
+
DisallowedCops: []
|
|
605
|
+
AllowWithReason: false
|
|
606
|
+
AllowedDirectives: []
|
|
591
607
|
|
|
592
608
|
# https://docs.rubocop.org/rubocop/cops_style.html#styledocumentdynamicevaldefinition
|
|
593
609
|
Style/DocumentDynamicEvalDefinition:
|
|
@@ -603,6 +619,7 @@ Style/Documentation:
|
|
|
603
619
|
Description: Document classes and non-namespace modules.
|
|
604
620
|
Enabled: true
|
|
605
621
|
VersionAdded: '0.9'
|
|
622
|
+
VersionChanged: '1.89'
|
|
606
623
|
AllowedConstants: []
|
|
607
624
|
Exclude:
|
|
608
625
|
- "spec/**/*"
|
|
@@ -619,13 +636,6 @@ Style/DocumentationMethod:
|
|
|
619
636
|
- "test/**/*"
|
|
620
637
|
RequireForNonPublicMethods: false
|
|
621
638
|
|
|
622
|
-
# Supports --autocorrect
|
|
623
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#styledoublecopdisabledirective
|
|
624
|
-
Style/DoubleCopDisableDirective:
|
|
625
|
-
Description: Checks for double rubocop:disable comments on a single line.
|
|
626
|
-
Enabled: true
|
|
627
|
-
VersionAdded: '0.73'
|
|
628
|
-
|
|
629
639
|
# Supports --autocorrect
|
|
630
640
|
# https://docs.rubocop.org/rubocop/cops_style.html#styledoublenegation
|
|
631
641
|
Style/DoubleNegation:
|
|
@@ -674,6 +684,7 @@ Style/EmptyCaseCondition:
|
|
|
674
684
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleemptyclassdefinition
|
|
675
685
|
Style/EmptyClassDefinition:
|
|
676
686
|
Description: Enforces consistent style for empty class definitions.
|
|
687
|
+
StyleGuide: "#single-line-classes"
|
|
677
688
|
Enabled: true # was pending
|
|
678
689
|
VersionAdded: '1.84'
|
|
679
690
|
VersionChanged: '1.86'
|
|
@@ -834,8 +845,7 @@ Style/ExplicitBlockArgument:
|
|
|
834
845
|
|
|
835
846
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
|
|
836
847
|
Style/ExponentialNotation:
|
|
837
|
-
Description:
|
|
838
|
-
and 10 (exclusive).
|
|
848
|
+
Description: Enforces consistency in the use of exponential (scientific) notation.
|
|
839
849
|
StyleGuide: "#exponential-notation"
|
|
840
850
|
Enabled: true
|
|
841
851
|
VersionAdded: '0.82'
|
|
@@ -853,7 +863,8 @@ Style/FetchEnvVar:
|
|
|
853
863
|
- https://rubystyle.guide/#hash-fetch-defaults
|
|
854
864
|
Enabled: true # was pending
|
|
855
865
|
VersionAdded: '1.28'
|
|
856
|
-
|
|
866
|
+
VersionChanged: '1.88'
|
|
867
|
+
AllowedVariables: []
|
|
857
868
|
DefaultToNil: true
|
|
858
869
|
|
|
859
870
|
# Supports --autocorrect
|
|
@@ -869,6 +880,7 @@ Style/FileEmpty:
|
|
|
869
880
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylefilenull
|
|
870
881
|
Style/FileNull:
|
|
871
882
|
Description: Use `File::NULL` instead of hardcoding "dev/null".
|
|
883
|
+
StyleGuide: "#null-devices"
|
|
872
884
|
Enabled: true # was pending
|
|
873
885
|
SafeAutoCorrect: false
|
|
874
886
|
VersionAdded: '1.69'
|
|
@@ -876,6 +888,7 @@ Style/FileNull:
|
|
|
876
888
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylefileopen
|
|
877
889
|
Style/FileOpen:
|
|
878
890
|
Description: Checks for `File.open` without a block, which can leak file descriptors.
|
|
891
|
+
StyleGuide: "#auto-release-resources"
|
|
879
892
|
Enabled: true # was pending
|
|
880
893
|
Safe: false
|
|
881
894
|
VersionAdded: '1.85'
|
|
@@ -954,7 +967,10 @@ Style/FormatString:
|
|
|
954
967
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleformatstringtoken
|
|
955
968
|
Style/FormatStringToken:
|
|
956
969
|
Description: Use a consistent style for format string tokens.
|
|
970
|
+
StyleGuide: "#named-format-tokens"
|
|
957
971
|
Enabled: true
|
|
972
|
+
VersionAdded: '0.49'
|
|
973
|
+
VersionChanged: '1.74'
|
|
958
974
|
EnforcedStyle: annotated
|
|
959
975
|
SupportedStyles:
|
|
960
976
|
- annotated
|
|
@@ -962,8 +978,6 @@ Style/FormatStringToken:
|
|
|
962
978
|
- unannotated
|
|
963
979
|
MaxUnannotatedPlaceholdersAllowed: 1
|
|
964
980
|
Mode: aggressive
|
|
965
|
-
VersionAdded: '0.49'
|
|
966
|
-
VersionChanged: '1.74'
|
|
967
981
|
AllowedMethods: []
|
|
968
982
|
AllowedPatterns: []
|
|
969
983
|
|
|
@@ -1126,6 +1140,7 @@ Style/HashSyntax:
|
|
|
1126
1140
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformkeys
|
|
1127
1141
|
Style/HashTransformKeys:
|
|
1128
1142
|
Description: Prefer `transform_keys` over `each_with_object`, `map`, or `to_h`.
|
|
1143
|
+
StyleGuide: "#hash-transform-methods"
|
|
1129
1144
|
Enabled: true
|
|
1130
1145
|
VersionAdded: '0.80'
|
|
1131
1146
|
VersionChanged: '0.90'
|
|
@@ -1135,6 +1150,7 @@ Style/HashTransformKeys:
|
|
|
1135
1150
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformvalues
|
|
1136
1151
|
Style/HashTransformValues:
|
|
1137
1152
|
Description: Prefer `transform_values` over `each_with_object`, `map`, or `to_h`.
|
|
1153
|
+
StyleGuide: "#hash-transform-methods"
|
|
1138
1154
|
Enabled: true
|
|
1139
1155
|
VersionAdded: '0.80'
|
|
1140
1156
|
VersionChanged: '0.90'
|
|
@@ -1155,9 +1171,9 @@ Style/IdenticalConditionalBranches:
|
|
|
1155
1171
|
Style/IfInsideElse:
|
|
1156
1172
|
Description: Finds if nodes inside else, which can be converted to elsif.
|
|
1157
1173
|
Enabled: true
|
|
1158
|
-
AllowIfModifier: false
|
|
1159
1174
|
VersionAdded: '0.36'
|
|
1160
1175
|
VersionChanged: '1.3'
|
|
1176
|
+
AllowIfModifier: false
|
|
1161
1177
|
|
|
1162
1178
|
# Supports --autocorrect
|
|
1163
1179
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleifunlessmodifier
|
|
@@ -1295,14 +1311,14 @@ Style/ItBlockParameter:
|
|
|
1295
1311
|
Description: Checks for blocks with one argument where `it` block parameter can be
|
|
1296
1312
|
used.
|
|
1297
1313
|
Enabled: true # was pending
|
|
1314
|
+
VersionAdded: '1.75'
|
|
1315
|
+
VersionChanged: '1.76'
|
|
1298
1316
|
EnforcedStyle: allow_single_line
|
|
1299
1317
|
SupportedStyles:
|
|
1300
1318
|
- allow_single_line
|
|
1301
1319
|
- only_numbered_parameters
|
|
1302
1320
|
- always
|
|
1303
1321
|
- disallow
|
|
1304
|
-
VersionAdded: '1.75'
|
|
1305
|
-
VersionChanged: '1.76'
|
|
1306
1322
|
|
|
1307
1323
|
# Supports --autocorrect
|
|
1308
1324
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylekeywordargumentsmerging
|
|
@@ -1318,7 +1334,7 @@ Style/KeywordArgumentsMerging:
|
|
|
1318
1334
|
Style/KeywordParametersOrder:
|
|
1319
1335
|
Description: Enforces that optional keyword parameters are placed at the end of the
|
|
1320
1336
|
parameters list.
|
|
1321
|
-
StyleGuide: "#keyword-
|
|
1337
|
+
StyleGuide: "#keyword-arguments-order"
|
|
1322
1338
|
Enabled: true
|
|
1323
1339
|
VersionAdded: '0.90'
|
|
1324
1340
|
VersionChanged: '1.7'
|
|
@@ -1355,6 +1371,7 @@ Style/LambdaCall:
|
|
|
1355
1371
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylelineendconcatenation
|
|
1356
1372
|
Style/LineEndConcatenation:
|
|
1357
1373
|
Description: Use \ instead of + or << to concatenate two string literals at line end.
|
|
1374
|
+
StyleGuide: "#heredoc-long-strings"
|
|
1358
1375
|
Enabled: true
|
|
1359
1376
|
SafeAutoCorrect: false
|
|
1360
1377
|
VersionAdded: '0.18'
|
|
@@ -1366,6 +1383,7 @@ Style/MagicCommentFormat:
|
|
|
1366
1383
|
Description: Use a consistent style for magic comments.
|
|
1367
1384
|
Enabled: true # was pending
|
|
1368
1385
|
VersionAdded: '1.35'
|
|
1386
|
+
VersionChanged: '1.91'
|
|
1369
1387
|
EnforcedStyle: snake_case
|
|
1370
1388
|
SupportedStyles:
|
|
1371
1389
|
- snake_case
|
|
@@ -1381,7 +1399,9 @@ Style/MagicCommentFormat:
|
|
|
1381
1399
|
Style/MapCompactWithConditionalBlock:
|
|
1382
1400
|
Description: Prefer `select` or `reject` over `map { ... }.compact`.
|
|
1383
1401
|
Enabled: true # was pending
|
|
1402
|
+
SafeAutoCorrect: false
|
|
1384
1403
|
VersionAdded: '1.30'
|
|
1404
|
+
VersionChanged: '1.88'
|
|
1385
1405
|
|
|
1386
1406
|
# Supports --autocorrect
|
|
1387
1407
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylemapintoarray
|
|
@@ -1446,10 +1466,10 @@ Style/MethodCallWithoutArgsParentheses:
|
|
|
1446
1466
|
Description: Do not use parentheses for method calls with no arguments.
|
|
1447
1467
|
StyleGuide: "#method-invocation-parens"
|
|
1448
1468
|
Enabled: true
|
|
1449
|
-
AllowedMethods: []
|
|
1450
|
-
AllowedPatterns: []
|
|
1451
1469
|
VersionAdded: '0.47'
|
|
1452
1470
|
VersionChanged: '0.55'
|
|
1471
|
+
AllowedMethods: []
|
|
1472
|
+
AllowedPatterns: []
|
|
1453
1473
|
|
|
1454
1474
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylemethodcalledondoendblock
|
|
1455
1475
|
Style/MethodCalledOnDoEndBlock:
|
|
@@ -1510,6 +1530,7 @@ Style/MissingRespondToMissing:
|
|
|
1510
1530
|
StyleGuide: "#no-method-missing"
|
|
1511
1531
|
Enabled: true
|
|
1512
1532
|
VersionAdded: '0.56'
|
|
1533
|
+
VersionChanged: '1.89'
|
|
1513
1534
|
|
|
1514
1535
|
# Supports --autocorrect
|
|
1515
1536
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylemixingrouping
|
|
@@ -1564,7 +1585,7 @@ Style/MultilineBlockChain:
|
|
|
1564
1585
|
# Supports --autocorrect
|
|
1565
1586
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylemultilineifmodifier
|
|
1566
1587
|
Style/MultilineIfModifier:
|
|
1567
|
-
Description:
|
|
1588
|
+
Description: Checks for uses of `if`/`unless` modifiers with multiline bodies.
|
|
1568
1589
|
StyleGuide: "#no-multiline-if-modifiers"
|
|
1569
1590
|
Enabled: true
|
|
1570
1591
|
VersionAdded: '0.45'
|
|
@@ -1640,12 +1661,13 @@ Style/MutableConstant:
|
|
|
1640
1661
|
Description: Do not assign mutable objects to constants.
|
|
1641
1662
|
Enabled: true
|
|
1642
1663
|
VersionAdded: '0.34'
|
|
1643
|
-
VersionChanged: '1.
|
|
1664
|
+
VersionChanged: '1.88'
|
|
1644
1665
|
SafeAutoCorrect: false
|
|
1645
1666
|
EnforcedStyle: literals
|
|
1646
1667
|
SupportedStyles:
|
|
1647
1668
|
- literals
|
|
1648
1669
|
- strict
|
|
1670
|
+
Recursive: false
|
|
1649
1671
|
|
|
1650
1672
|
# Supports --autocorrect
|
|
1651
1673
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylenegatedif
|
|
@@ -1673,7 +1695,7 @@ Style/NegatedIfElseCondition:
|
|
|
1673
1695
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylenegatedunless
|
|
1674
1696
|
Style/NegatedUnless:
|
|
1675
1697
|
Description: Favor if over unless for negative conditions.
|
|
1676
|
-
StyleGuide: "#
|
|
1698
|
+
StyleGuide: "#unless-for-negatives"
|
|
1677
1699
|
Enabled: true
|
|
1678
1700
|
VersionAdded: '0.69'
|
|
1679
1701
|
EnforcedStyle: both
|
|
@@ -1697,7 +1719,9 @@ Style/NegativeArrayIndex:
|
|
|
1697
1719
|
a value. Also handles range patterns with length calculations. Recognizes preserving
|
|
1698
1720
|
methods and their combinations, allowing safe replacement when the receiver matches.
|
|
1699
1721
|
Enabled: true # was pending
|
|
1722
|
+
Safe: false
|
|
1700
1723
|
VersionAdded: '1.84'
|
|
1724
|
+
VersionChanged: '1.92'
|
|
1701
1725
|
|
|
1702
1726
|
# Supports --autocorrect
|
|
1703
1727
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylenestedfiledirname
|
|
@@ -1880,6 +1904,7 @@ Style/ObjectThen:
|
|
|
1880
1904
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleoneclassperfile
|
|
1881
1905
|
Style/OneClassPerFile:
|
|
1882
1906
|
Description: Checks that each source file defines at most one top-level class or module.
|
|
1907
|
+
StyleGuide: "#one-class-per-file"
|
|
1883
1908
|
Enabled: true # was pending
|
|
1884
1909
|
VersionAdded: '1.85'
|
|
1885
1910
|
VersionChanged: '1.86'
|
|
@@ -1895,9 +1920,9 @@ Style/OneLineConditional:
|
|
|
1895
1920
|
if/then/else/end constructs.
|
|
1896
1921
|
StyleGuide: "#ternary-operator"
|
|
1897
1922
|
Enabled: true
|
|
1898
|
-
AlwaysCorrectToMultiline: false
|
|
1899
1923
|
VersionAdded: '0.9'
|
|
1900
1924
|
VersionChanged: '0.90'
|
|
1925
|
+
AlwaysCorrectToMultiline: false
|
|
1901
1926
|
|
|
1902
1927
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleopenstructuse
|
|
1903
1928
|
Style/OpenStructUse:
|
|
@@ -1997,6 +2022,7 @@ Style/PercentLiteralDelimiters:
|
|
|
1997
2022
|
StyleGuide: "#percent-literal-braces"
|
|
1998
2023
|
Enabled: true
|
|
1999
2024
|
VersionAdded: '0.19'
|
|
2025
|
+
VersionChanged: '0.48'
|
|
2000
2026
|
PreferredDelimiters:
|
|
2001
2027
|
default: "()"
|
|
2002
2028
|
"%i": "[]"
|
|
@@ -2004,7 +2030,6 @@ Style/PercentLiteralDelimiters:
|
|
|
2004
2030
|
"%r": "{}"
|
|
2005
2031
|
"%w": "[]"
|
|
2006
2032
|
"%W": "[]"
|
|
2007
|
-
VersionChanged: '0.48'
|
|
2008
2033
|
|
|
2009
2034
|
# Supports --autocorrect
|
|
2010
2035
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylepercentqliterals
|
|
@@ -2179,6 +2204,7 @@ Style/RedundantConditional:
|
|
|
2179
2204
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantconstantbase
|
|
2180
2205
|
Style/RedundantConstantBase:
|
|
2181
2206
|
Description: Avoid redundant `::` prefix on constant.
|
|
2207
|
+
VersionChanged: '1.89'
|
|
2182
2208
|
Enabled: true # was pending
|
|
2183
2209
|
VersionAdded: '1.40'
|
|
2184
2210
|
|
|
@@ -2278,9 +2304,9 @@ Style/RedundantInitialize:
|
|
|
2278
2304
|
Enabled: true # was pending
|
|
2279
2305
|
AutoCorrect: contextual
|
|
2280
2306
|
Safe: false
|
|
2281
|
-
AllowComments: true
|
|
2282
2307
|
VersionAdded: '1.27'
|
|
2283
2308
|
VersionChanged: '1.61'
|
|
2309
|
+
AllowComments: true
|
|
2284
2310
|
|
|
2285
2311
|
# Supports --autocorrect
|
|
2286
2312
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantinterpolation
|
|
@@ -2302,6 +2328,7 @@ Style/RedundantInterpolationUnfreeze:
|
|
|
2302
2328
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantlinecontinuation
|
|
2303
2329
|
Style/RedundantLineContinuation:
|
|
2304
2330
|
Description: Checks for redundant line continuation.
|
|
2331
|
+
StyleGuide: "#no-trailing-backslash"
|
|
2305
2332
|
Enabled: true # was pending
|
|
2306
2333
|
VersionAdded: '1.49'
|
|
2307
2334
|
|
|
@@ -2354,6 +2381,7 @@ Style/RedundantRegexpConstructor:
|
|
|
2354
2381
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantregexpescape
|
|
2355
2382
|
Style/RedundantRegexpEscape:
|
|
2356
2383
|
Description: Checks for redundant escapes in Regexps.
|
|
2384
|
+
StyleGuide: "#limit-escapes"
|
|
2357
2385
|
Enabled: true
|
|
2358
2386
|
VersionAdded: '0.85'
|
|
2359
2387
|
|
|
@@ -2486,10 +2514,10 @@ Style/ReturnNilInPredicateMethodDefinition:
|
|
|
2486
2514
|
StyleGuide: "#bool-methods-qmark"
|
|
2487
2515
|
Enabled: true # was pending
|
|
2488
2516
|
SafeAutoCorrect: false
|
|
2489
|
-
AllowedMethods: []
|
|
2490
|
-
AllowedPatterns: []
|
|
2491
2517
|
VersionAdded: '1.53'
|
|
2492
2518
|
VersionChanged: '1.67'
|
|
2519
|
+
AllowedMethods: []
|
|
2520
|
+
AllowedPatterns: []
|
|
2493
2521
|
|
|
2494
2522
|
# Supports --autocorrect
|
|
2495
2523
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylereversefind
|
|
@@ -2704,6 +2732,7 @@ Style/StabbyLambdaParentheses:
|
|
|
2704
2732
|
Style/StaticClass:
|
|
2705
2733
|
Description: Prefer modules to classes with only class methods.
|
|
2706
2734
|
StyleGuide: "#modules-vs-classes"
|
|
2735
|
+
VersionChanged: '1.89'
|
|
2707
2736
|
Enabled: true # was false
|
|
2708
2737
|
Safe: false
|
|
2709
2738
|
VersionAdded: '1.3'
|
|
@@ -2883,6 +2912,15 @@ Style/TernaryParentheses:
|
|
|
2883
2912
|
- require_parentheses_when_complex
|
|
2884
2913
|
AllowSafeAssignment: true
|
|
2885
2914
|
|
|
2915
|
+
# Supports --autocorrect
|
|
2916
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styletimenow
|
|
2917
|
+
Style/TimeNow:
|
|
2918
|
+
Description: Prefer `Time.now` over `Time.new` when retrieving the current system
|
|
2919
|
+
time.
|
|
2920
|
+
StyleGuide: "#time-now"
|
|
2921
|
+
Enabled: true # was pending
|
|
2922
|
+
VersionAdded: '1.90'
|
|
2923
|
+
|
|
2886
2924
|
# https://docs.rubocop.org/rubocop/cops_style.html#styletoplevelmethoddefinition
|
|
2887
2925
|
Style/TopLevelMethodDefinition:
|
|
2888
2926
|
Description: Looks for top-level method definitions.
|
|
@@ -2900,14 +2938,14 @@ Style/TrailingBodyOnClass:
|
|
|
2900
2938
|
# Supports --autocorrect
|
|
2901
2939
|
# https://docs.rubocop.org/rubocop/cops_style.html#styletrailingbodyonmethoddefinition
|
|
2902
2940
|
Style/TrailingBodyOnMethodDefinition:
|
|
2903
|
-
Description:
|
|
2941
|
+
Description: Checks for trailing code after the method definition.
|
|
2904
2942
|
Enabled: true
|
|
2905
2943
|
VersionAdded: '0.52'
|
|
2906
2944
|
|
|
2907
2945
|
# Supports --autocorrect
|
|
2908
2946
|
# https://docs.rubocop.org/rubocop/cops_style.html#styletrailingbodyonmodule
|
|
2909
2947
|
Style/TrailingBodyOnModule:
|
|
2910
|
-
Description:
|
|
2948
|
+
Description: Checks for trailing code after the module definition.
|
|
2911
2949
|
Enabled: true
|
|
2912
2950
|
VersionAdded: '0.53'
|
|
2913
2951
|
|
|
@@ -2972,10 +3010,11 @@ Style/TrailingMethodEndStatement:
|
|
|
2972
3010
|
Style/TrailingUnderscoreVariable:
|
|
2973
3011
|
Description: Checks for the usage of unneeded trailing underscores at the end of parallel
|
|
2974
3012
|
variable assignment.
|
|
2975
|
-
|
|
3013
|
+
StyleGuide: "#trailing-underscore-variables"
|
|
2976
3014
|
Enabled: true
|
|
2977
3015
|
VersionAdded: '0.31'
|
|
2978
3016
|
VersionChanged: '0.35'
|
|
3017
|
+
AllowNamedUnderscoreVariables: true
|
|
2979
3018
|
|
|
2980
3019
|
# Supports --autocorrect
|
|
2981
3020
|
# https://docs.rubocop.org/rubocop/cops_style.html#styletrivialaccessors
|
|
@@ -3098,15 +3137,15 @@ Style/YodaCondition:
|
|
|
3098
3137
|
References:
|
|
3099
3138
|
- https://en.wikipedia.org/wiki/Yoda_conditions
|
|
3100
3139
|
Enabled: true
|
|
3140
|
+
Safe: false
|
|
3141
|
+
VersionAdded: '0.49'
|
|
3142
|
+
VersionChanged: '0.75'
|
|
3101
3143
|
EnforcedStyle: forbid_for_all_comparison_operators
|
|
3102
3144
|
SupportedStyles:
|
|
3103
3145
|
- forbid_for_all_comparison_operators
|
|
3104
3146
|
- forbid_for_equality_operators_only
|
|
3105
3147
|
- require_for_all_comparison_operators
|
|
3106
3148
|
- require_for_equality_operators_only
|
|
3107
|
-
Safe: false
|
|
3108
|
-
VersionAdded: '0.49'
|
|
3109
|
-
VersionChanged: '0.75'
|
|
3110
3149
|
|
|
3111
3150
|
# Supports --autocorrect
|
|
3112
3151
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleyodaexpression
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
# Department 'ThreadSafety' (
|
|
1
|
+
# Department 'ThreadSafety' (10):
|
|
2
|
+
# https://docs.rubocop.org/rubocop-thread_safety/cops_thread_safety.html#threadsafetyactivesupportcallbacks
|
|
3
|
+
ThreadSafety/ActiveSupportCallbacks:
|
|
4
|
+
Description: Avoid mutating ActiveSupport callback chains at runtime.
|
|
5
|
+
Enabled: true # was pending
|
|
6
|
+
VersionAdded: '0.8'
|
|
7
|
+
|
|
2
8
|
# https://docs.rubocop.org/rubocop-thread_safety/cops_thread_safety.html#threadsafetyclassandmoduleattributes
|
|
3
9
|
ThreadSafety/ClassAndModuleAttributes:
|
|
4
10
|
Description: Avoid mutating class and module attributes.
|
|
@@ -16,6 +22,26 @@ ThreadSafety/DirChdir:
|
|
|
16
22
|
Enabled: true
|
|
17
23
|
AllowCallWithBlock: false
|
|
18
24
|
|
|
25
|
+
# https://docs.rubocop.org/rubocop-thread_safety/cops_thread_safety.html#threadsafetyenvmutation
|
|
26
|
+
ThreadSafety/EnvMutation:
|
|
27
|
+
Description: Avoid mutating `ENV` due to its process-wide effect.
|
|
28
|
+
Enabled: true # was false
|
|
29
|
+
VersionAdded: '0.8'
|
|
30
|
+
|
|
31
|
+
# https://docs.rubocop.org/rubocop-thread_safety/cops_thread_safety.html#threadsafetylazysynchronizationprimitive
|
|
32
|
+
ThreadSafety/LazySynchronizationPrimitive:
|
|
33
|
+
Description: Do not lazily initialize synchronization primitives with `||=`.
|
|
34
|
+
Enabled: true # was pending
|
|
35
|
+
VersionAdded: '0.8'
|
|
36
|
+
|
|
37
|
+
# https://docs.rubocop.org/rubocop-thread_safety/cops_thread_safety.html#threadsafetymethodredefinition
|
|
38
|
+
ThreadSafety/MethodRedefinition:
|
|
39
|
+
Description: Do not use `remove_method` followed by method definition.
|
|
40
|
+
Enabled: true # was pending
|
|
41
|
+
VersionAdded: '0.8'
|
|
42
|
+
References:
|
|
43
|
+
- https://bugs.ruby-lang.org/issues/13574
|
|
44
|
+
|
|
19
45
|
# Supports --autocorrect
|
|
20
46
|
# https://docs.rubocop.org/rubocop-thread_safety/cops_thread_safety.html#threadsafetymutableclassinstancevariable
|
|
21
47
|
ThreadSafety/MutableClassInstanceVariable:
|
data/lib/docquet/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: docquet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OZAWA Sakuro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-cli
|