docquet 1.1.0 → 1.3.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 +7 -0
- data/config/defaults/capybara.yml +11 -53
- data/config/defaults/capybara_rspec.yml +63 -1
- data/config/defaults/i18n_railsi18n.yml +1 -1
- data/config/defaults/layout.yml +8 -2
- data/config/defaults/lint.yml +20 -2
- data/config/defaults/naming.yml +1 -0
- data/config/defaults/rspec.yml +11 -1
- data/config/defaults/style.yml +153 -4
- data/lib/docquet/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dddf2360c36a4f871d1a26530b3218a247fd62f65e6b893d27cb301522c347e
|
|
4
|
+
data.tar.gz: 821b18f60404b193c7af35a0b0aebe7ab408cb364974e972f8a7356d7b259468
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5712df731475ec3e29508af8d7acd4a608f106bb2159038fd977fe5b39ea629168e0766a2e1a5b2e77e2bc594761ce2f840beac240f54793f6ee34553494732c
|
|
7
|
+
data.tar.gz: 10fbf92a514dd0010f91ac18b4a5ad7b2af456ef057082beb6b49c1b9aaa9894384836a803e5cb52c9c4975be3440649cdc911c059053822de4f8ca00b15643a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'Capybara' (
|
|
1
|
+
# Department 'Capybara' (7):
|
|
2
2
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraambiguousclick
|
|
3
3
|
Capybara/AmbiguousClick:
|
|
4
4
|
Description: Specify the exact target to click on.
|
|
@@ -6,6 +6,14 @@ Capybara/AmbiguousClick:
|
|
|
6
6
|
VersionAdded: '2.22'
|
|
7
7
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AmbiguousClick
|
|
8
8
|
|
|
9
|
+
# Supports --autocorrect
|
|
10
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraassertstyle
|
|
11
|
+
Capybara/AssertStyle:
|
|
12
|
+
Description: Checks for usage of deprecated assert style method.
|
|
13
|
+
Enabled: true # was pending
|
|
14
|
+
VersionAdded: '2.23'
|
|
15
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AssertStyle
|
|
16
|
+
|
|
9
17
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraclicklinkorbuttonstyle
|
|
10
18
|
Capybara/ClickLinkOrButtonStyle:
|
|
11
19
|
Description: Checks for methods of button or link clicks.
|
|
@@ -18,51 +26,16 @@ Capybara/ClickLinkOrButtonStyle:
|
|
|
18
26
|
- strict
|
|
19
27
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ClickLinkOrButtonStyle
|
|
20
28
|
|
|
21
|
-
# Supports --autocorrect
|
|
22
|
-
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaracurrentpathexpectation
|
|
23
|
-
Capybara/CurrentPathExpectation:
|
|
24
|
-
Description: Checks that no expectations are set on Capybara's `current_path`.
|
|
25
|
-
Enabled: true
|
|
26
|
-
VersionAdded: '1.18'
|
|
27
|
-
VersionChanged: '2.0'
|
|
28
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/CurrentPathExpectation
|
|
29
|
-
|
|
30
29
|
# Supports --autocorrect
|
|
31
30
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybarafindallfirst
|
|
32
31
|
Capybara/FindAllFirst:
|
|
33
32
|
Description: Enforces use of `first` instead of `all` with `first` or `[0]`.
|
|
34
33
|
Enabled: true # was pending
|
|
34
|
+
SafeAutoCorrect: false
|
|
35
35
|
VersionAdded: '2.22'
|
|
36
|
+
VersionChanged: '2.23'
|
|
36
37
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/FindAllFirst
|
|
37
38
|
|
|
38
|
-
# Supports --autocorrect
|
|
39
|
-
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaramatchstyle
|
|
40
|
-
Capybara/MatchStyle:
|
|
41
|
-
Description: Checks for usage of deprecated style methods.
|
|
42
|
-
Enabled: true # was pending
|
|
43
|
-
VersionAdded: '2.17'
|
|
44
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/MatchStyle
|
|
45
|
-
|
|
46
|
-
# Supports --autocorrect
|
|
47
|
-
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaranegationmatcher
|
|
48
|
-
Capybara/NegationMatcher:
|
|
49
|
-
Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
|
|
50
|
-
Enabled: true # was pending
|
|
51
|
-
VersionAdded: '2.14'
|
|
52
|
-
VersionChanged: '2.20'
|
|
53
|
-
EnforcedStyle: have_no
|
|
54
|
-
SupportedStyles:
|
|
55
|
-
- have_no
|
|
56
|
-
- not_to
|
|
57
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcher
|
|
58
|
-
|
|
59
|
-
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaranegationmatcheraftervisit
|
|
60
|
-
Capybara/NegationMatcherAfterVisit:
|
|
61
|
-
Description: Do not allow negative matchers to be used immediately after `visit`.
|
|
62
|
-
Enabled: true # was pending
|
|
63
|
-
VersionAdded: '2.22'
|
|
64
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcherAfterVisit
|
|
65
|
-
|
|
66
39
|
# Supports --autocorrect
|
|
67
40
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybararedundantwithinfind
|
|
68
41
|
Capybara/RedundantWithinFind:
|
|
@@ -86,18 +59,3 @@ Capybara/SpecificFinders:
|
|
|
86
59
|
VersionAdded: '2.13'
|
|
87
60
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificFinders
|
|
88
61
|
|
|
89
|
-
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraspecificmatcher
|
|
90
|
-
Capybara/SpecificMatcher:
|
|
91
|
-
Description: Checks for there is a more specific matcher offered by Capybara.
|
|
92
|
-
Enabled: true # was pending
|
|
93
|
-
VersionAdded: '2.12'
|
|
94
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificMatcher
|
|
95
|
-
|
|
96
|
-
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaravisibilitymatcher
|
|
97
|
-
Capybara/VisibilityMatcher:
|
|
98
|
-
Description: Checks for boolean visibility in Capybara finders.
|
|
99
|
-
Enabled: true
|
|
100
|
-
VersionAdded: '1.39'
|
|
101
|
-
VersionChanged: '2.0'
|
|
102
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/VisibilityMatcher
|
|
103
|
-
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
# Department 'Capybara/RSpec' (
|
|
1
|
+
# Department 'Capybara/RSpec' (9):
|
|
2
|
+
# Supports --autocorrect
|
|
3
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspeccurrentpathexpectation
|
|
4
|
+
Capybara/RSpec/CurrentPathExpectation:
|
|
5
|
+
Description: Checks that no expectations are set on Capybara's `current_path`.
|
|
6
|
+
Enabled: true # was pending
|
|
7
|
+
VersionAdded: '1.18'
|
|
8
|
+
VersionChanged: '2.23'
|
|
9
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/CurrentPathExpectation
|
|
10
|
+
|
|
11
|
+
# Supports --autocorrect
|
|
12
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechavecontent
|
|
13
|
+
Capybara/RSpec/HaveContent:
|
|
14
|
+
Description: Checks for usage of `have_content` and `have_no_content`.
|
|
15
|
+
Enabled: true # was pending
|
|
16
|
+
VersionAdded: '2.23'
|
|
17
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveContent
|
|
18
|
+
|
|
2
19
|
# Supports --autocorrect
|
|
3
20
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechaveselector
|
|
4
21
|
Capybara/RSpec/HaveSelector:
|
|
@@ -8,6 +25,35 @@ Capybara/RSpec/HaveSelector:
|
|
|
8
25
|
VersionAdded: '2.19'
|
|
9
26
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveSelector
|
|
10
27
|
|
|
28
|
+
# Supports --autocorrect
|
|
29
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecmatchstyle
|
|
30
|
+
Capybara/RSpec/MatchStyle:
|
|
31
|
+
Description: Checks for usage of deprecated style methods in RSpec matchers.
|
|
32
|
+
Enabled: true # was pending
|
|
33
|
+
VersionAdded: '2.23'
|
|
34
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/MatchStyle
|
|
35
|
+
|
|
36
|
+
# Supports --autocorrect
|
|
37
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcher
|
|
38
|
+
Capybara/RSpec/NegationMatcher:
|
|
39
|
+
Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
|
|
40
|
+
Enabled: true # was pending
|
|
41
|
+
VersionAdded: '2.14'
|
|
42
|
+
VersionChanged: '2.23'
|
|
43
|
+
EnforcedStyle: have_no
|
|
44
|
+
SupportedStyles:
|
|
45
|
+
- have_no
|
|
46
|
+
- not_to
|
|
47
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcher
|
|
48
|
+
|
|
49
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcheraftervisit
|
|
50
|
+
Capybara/RSpec/NegationMatcherAfterVisit:
|
|
51
|
+
Description: Do not allow negative matchers to be used immediately after `visit`.
|
|
52
|
+
Enabled: true # was pending
|
|
53
|
+
VersionAdded: '2.22'
|
|
54
|
+
VersionChanged: '2.23'
|
|
55
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcherAfterVisit
|
|
56
|
+
|
|
11
57
|
# Supports --autocorrect
|
|
12
58
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecpredicatematcher
|
|
13
59
|
Capybara/RSpec/PredicateMatcher:
|
|
@@ -22,3 +68,19 @@ Capybara/RSpec/PredicateMatcher:
|
|
|
22
68
|
VersionAdded: '2.19'
|
|
23
69
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/PredicateMatcher
|
|
24
70
|
|
|
71
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecspecificmatcher
|
|
72
|
+
Capybara/RSpec/SpecificMatcher:
|
|
73
|
+
Description: Checks for there is a more specific matcher offered by Capybara.
|
|
74
|
+
Enabled: true # was pending
|
|
75
|
+
VersionAdded: '2.12'
|
|
76
|
+
VersionChanged: '2.23'
|
|
77
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/SpecificMatcher
|
|
78
|
+
|
|
79
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecvisibilitymatcher
|
|
80
|
+
Capybara/RSpec/VisibilityMatcher:
|
|
81
|
+
Description: Checks for boolean visibility in Capybara finders.
|
|
82
|
+
Enabled: true # was pending
|
|
83
|
+
VersionAdded: '1.39'
|
|
84
|
+
VersionChanged: '2.23'
|
|
85
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/VisibilityMatcher
|
|
86
|
+
|
data/config/defaults/layout.yml
CHANGED
|
@@ -422,6 +422,7 @@ Layout/FirstArrayElementLineBreak:
|
|
|
422
422
|
Description: Checks for a line break before the first element in a multi-line array.
|
|
423
423
|
Enabled: true # was false
|
|
424
424
|
VersionAdded: '0.49'
|
|
425
|
+
AllowImplicitArrayLiterals: false
|
|
425
426
|
AllowMultilineFinalElement: false
|
|
426
427
|
|
|
427
428
|
# Supports --autocorrect
|
|
@@ -557,6 +558,10 @@ Layout/IndentationWidth:
|
|
|
557
558
|
Enabled: true
|
|
558
559
|
VersionAdded: '0.49'
|
|
559
560
|
Width: 2
|
|
561
|
+
EnforcedStyleAlignWith: start_of_line
|
|
562
|
+
SupportedStylesAlignWith:
|
|
563
|
+
- start_of_line
|
|
564
|
+
- relative_to_receiver
|
|
560
565
|
AllowedPatterns: []
|
|
561
566
|
|
|
562
567
|
# Supports --autocorrect
|
|
@@ -631,7 +636,7 @@ Layout/LineLength:
|
|
|
631
636
|
StyleGuide: "#max-line-length"
|
|
632
637
|
Enabled: true
|
|
633
638
|
VersionAdded: '0.25'
|
|
634
|
-
VersionChanged: '1.
|
|
639
|
+
VersionChanged: '1.82'
|
|
635
640
|
Max: 120
|
|
636
641
|
AllowHeredoc: true
|
|
637
642
|
AllowURI: true
|
|
@@ -639,7 +644,8 @@ Layout/LineLength:
|
|
|
639
644
|
URISchemes:
|
|
640
645
|
- http
|
|
641
646
|
- https
|
|
642
|
-
|
|
647
|
+
AllowRBSInlineAnnotation: false
|
|
648
|
+
AllowCopDirectives: true
|
|
643
649
|
AllowedPatterns: []
|
|
644
650
|
SplitStrings: false
|
|
645
651
|
|
data/config/defaults/lint.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'Lint' (
|
|
1
|
+
# Department 'Lint' (154):
|
|
2
2
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintambiguousassignment
|
|
3
3
|
Lint/AmbiguousAssignment:
|
|
4
4
|
Description: Checks for mistyped shorthand assignments.
|
|
@@ -140,6 +140,12 @@ Lint/CopDirectiveSyntax:
|
|
|
140
140
|
Enabled: true # was pending
|
|
141
141
|
VersionAdded: '1.72'
|
|
142
142
|
|
|
143
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdatadefineoverride
|
|
144
|
+
Lint/DataDefineOverride:
|
|
145
|
+
Description: Disallow overriding the `Data` built-in methods via `Data.define`.
|
|
146
|
+
Enabled: true # was pending
|
|
147
|
+
VersionAdded: '1.85'
|
|
148
|
+
|
|
143
149
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdebugger
|
|
144
150
|
Lint/Debugger:
|
|
145
151
|
Description: Checks for debugger calls.
|
|
@@ -943,8 +949,9 @@ Lint/SafeNavigationConsistency:
|
|
|
943
949
|
condition, consistent and appropriate safe navigation, without excess or deficiency,
|
|
944
950
|
is used for all method calls on the same object.
|
|
945
951
|
Enabled: true
|
|
952
|
+
SafeAutoCorrect: false
|
|
946
953
|
VersionAdded: '0.55'
|
|
947
|
-
VersionChanged: '
|
|
954
|
+
VersionChanged: '1.85'
|
|
948
955
|
AllowedMethods:
|
|
949
956
|
- present?
|
|
950
957
|
- blank?
|
|
@@ -1154,6 +1161,13 @@ Lint/UnreachableLoop:
|
|
|
1154
1161
|
AllowedPatterns:
|
|
1155
1162
|
- !ruby/regexp /(exactly|at_least|at_most)\(\d+\)\.times/
|
|
1156
1163
|
|
|
1164
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachablepatternbranch
|
|
1165
|
+
Lint/UnreachablePatternBranch:
|
|
1166
|
+
Description: Checks for unreachable `in` pattern branches after an unconditional catch-all
|
|
1167
|
+
pattern.
|
|
1168
|
+
Enabled: true # was pending
|
|
1169
|
+
VersionAdded: '1.85'
|
|
1170
|
+
|
|
1157
1171
|
# Supports --autocorrect
|
|
1158
1172
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunusedblockargument
|
|
1159
1173
|
Lint/UnusedBlockArgument:
|
|
@@ -1266,11 +1280,15 @@ Lint/UselessNumericOperation:
|
|
|
1266
1280
|
Enabled: true # was pending
|
|
1267
1281
|
VersionAdded: '1.66'
|
|
1268
1282
|
|
|
1283
|
+
# Supports --autocorrect
|
|
1269
1284
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessor
|
|
1270
1285
|
Lint/UselessOr:
|
|
1271
1286
|
Description: Checks for useless OR expressions.
|
|
1272
1287
|
Enabled: true # was pending
|
|
1288
|
+
SafeAutoCorrect: false
|
|
1289
|
+
AutoCorrect: contextual
|
|
1273
1290
|
VersionAdded: '1.76'
|
|
1291
|
+
VersionChanged: '1.82'
|
|
1274
1292
|
|
|
1275
1293
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessrescue
|
|
1276
1294
|
Lint/UselessRescue:
|
data/config/defaults/naming.yml
CHANGED
data/config/defaults/rspec.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'RSpec' (
|
|
1
|
+
# Department 'RSpec' (113):
|
|
2
2
|
# Supports --autocorrect
|
|
3
3
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecalignleftletbrace
|
|
4
4
|
RSpec/AlignLeftLetBrace:
|
|
@@ -756,6 +756,16 @@ RSpec/NotToNot:
|
|
|
756
756
|
VersionAdded: '1.4'
|
|
757
757
|
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
|
|
758
758
|
|
|
759
|
+
# Supports --autocorrect
|
|
760
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecoutput
|
|
761
|
+
RSpec/Output:
|
|
762
|
+
Description: Checks for the use of output calls like puts and print in specs.
|
|
763
|
+
Enabled: true # was pending
|
|
764
|
+
AutoCorrect: contextual
|
|
765
|
+
SafeAutoCorrect: false
|
|
766
|
+
VersionAdded: '3.9'
|
|
767
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Output
|
|
768
|
+
|
|
759
769
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecoverwritingsetup
|
|
760
770
|
RSpec/OverwritingSetup:
|
|
761
771
|
Description: Checks if there is a let/subject that overwrites an existing one.
|
data/config/defaults/style.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'Style' (
|
|
1
|
+
# Department 'Style' (298):
|
|
2
2
|
# Supports --autocorrect
|
|
3
3
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleaccessmodifierdeclarations
|
|
4
4
|
Style/AccessModifierDeclarations:
|
|
@@ -43,7 +43,7 @@ Style/Alias:
|
|
|
43
43
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleambiguousendlessmethoddefinition
|
|
44
44
|
Style/AmbiguousEndlessMethodDefinition:
|
|
45
45
|
Description: Checks for endless methods inside operators of lower precedence.
|
|
46
|
-
StyleGuide: "#ambiguous-endless-method-
|
|
46
|
+
StyleGuide: "#ambiguous-endless-method-definitions"
|
|
47
47
|
Enabled: true # was pending
|
|
48
48
|
VersionAdded: '1.68'
|
|
49
49
|
|
|
@@ -240,9 +240,11 @@ Style/BlockDelimiters:
|
|
|
240
240
|
# Supports --autocorrect
|
|
241
241
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylecaseequality
|
|
242
242
|
Style/CaseEquality:
|
|
243
|
-
Description: Avoid explicit use of the case equality operator(
|
|
243
|
+
Description: Avoid explicit use of the case equality operator (`===`).
|
|
244
244
|
StyleGuide: "#no-case-equality"
|
|
245
245
|
Enabled: true
|
|
246
|
+
References:
|
|
247
|
+
- https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceregexpmatch
|
|
246
248
|
VersionAdded: '0.9'
|
|
247
249
|
VersionChanged: '0.89'
|
|
248
250
|
AllowOnConstant: false
|
|
@@ -668,6 +670,20 @@ Style/EmptyCaseCondition:
|
|
|
668
670
|
Enabled: true
|
|
669
671
|
VersionAdded: '0.40'
|
|
670
672
|
|
|
673
|
+
# Supports --autocorrect
|
|
674
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleemptyclassdefinition
|
|
675
|
+
Style/EmptyClassDefinition:
|
|
676
|
+
Description: Enforces consistent style for empty class definitions.
|
|
677
|
+
Enabled: true # was pending
|
|
678
|
+
VersionAdded: '1.84'
|
|
679
|
+
VersionChanged: '1.86'
|
|
680
|
+
EnforcedStyle: class_keyword
|
|
681
|
+
SupportedStyles:
|
|
682
|
+
- class_keyword
|
|
683
|
+
- class_new
|
|
684
|
+
- class_definition
|
|
685
|
+
AllowedParentClasses: []
|
|
686
|
+
|
|
671
687
|
# Supports --autocorrect
|
|
672
688
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleemptyelse
|
|
673
689
|
Style/EmptyElse:
|
|
@@ -857,6 +873,13 @@ Style/FileNull:
|
|
|
857
873
|
SafeAutoCorrect: false
|
|
858
874
|
VersionAdded: '1.69'
|
|
859
875
|
|
|
876
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylefileopen
|
|
877
|
+
Style/FileOpen:
|
|
878
|
+
Description: Checks for `File.open` without a block, which can leak file descriptors.
|
|
879
|
+
Enabled: true # was pending
|
|
880
|
+
Safe: false
|
|
881
|
+
VersionAdded: '1.85'
|
|
882
|
+
|
|
860
883
|
# Supports --autocorrect
|
|
861
884
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylefileread
|
|
862
885
|
Style/FileRead:
|
|
@@ -1053,6 +1076,18 @@ Style/HashLikeCase:
|
|
|
1053
1076
|
VersionAdded: '0.88'
|
|
1054
1077
|
MinBranchesCount: 3
|
|
1055
1078
|
|
|
1079
|
+
# Supports --autocorrect
|
|
1080
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashlookupmethod
|
|
1081
|
+
Style/HashLookupMethod:
|
|
1082
|
+
Description: Enforces the use of either `Hash#[]` or `Hash#fetch` for hash lookup.
|
|
1083
|
+
Enabled: true # was false
|
|
1084
|
+
Safe: false
|
|
1085
|
+
VersionAdded: '1.84'
|
|
1086
|
+
EnforcedStyle: brackets
|
|
1087
|
+
SupportedStyles:
|
|
1088
|
+
- brackets
|
|
1089
|
+
- fetch
|
|
1090
|
+
|
|
1056
1091
|
# Supports --autocorrect
|
|
1057
1092
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashslice
|
|
1058
1093
|
Style/HashSlice:
|
|
@@ -1149,6 +1184,7 @@ Style/IfWithBooleanLiteralBranches:
|
|
|
1149
1184
|
VersionAdded: '1.9'
|
|
1150
1185
|
SafeAutoCorrect: false
|
|
1151
1186
|
AllowedMethods:
|
|
1187
|
+
- infinite?
|
|
1152
1188
|
- nonzero?
|
|
1153
1189
|
|
|
1154
1190
|
# Supports --autocorrect
|
|
@@ -1358,6 +1394,14 @@ Style/MapIntoArray:
|
|
|
1358
1394
|
VersionChanged: '1.67'
|
|
1359
1395
|
Safe: false
|
|
1360
1396
|
|
|
1397
|
+
# Supports --autocorrect
|
|
1398
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylemapjoin
|
|
1399
|
+
Style/MapJoin:
|
|
1400
|
+
Description: Checks for redundant `map(&:to_s)` before `join`.
|
|
1401
|
+
Enabled: true # was pending
|
|
1402
|
+
Safe: false
|
|
1403
|
+
VersionAdded: '1.85'
|
|
1404
|
+
|
|
1361
1405
|
# Supports --autocorrect
|
|
1362
1406
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylemaptohash
|
|
1363
1407
|
Style/MapToHash:
|
|
@@ -1386,6 +1430,7 @@ Style/MethodCallWithArgsParentheses:
|
|
|
1386
1430
|
AllowedMethods: []
|
|
1387
1431
|
AllowedPatterns: []
|
|
1388
1432
|
IncludedMacros: []
|
|
1433
|
+
IncludedMacroPatterns: []
|
|
1389
1434
|
AllowParenthesesInMultilineCall: false
|
|
1390
1435
|
AllowParenthesesInChaining: false
|
|
1391
1436
|
AllowParenthesesInCamelCaseMethod: false
|
|
@@ -1501,6 +1546,14 @@ Style/ModuleFunction:
|
|
|
1501
1546
|
Autocorrect: false
|
|
1502
1547
|
SafeAutoCorrect: false
|
|
1503
1548
|
|
|
1549
|
+
# Supports --autocorrect
|
|
1550
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylemodulememberexistencecheck
|
|
1551
|
+
Style/ModuleMemberExistenceCheck:
|
|
1552
|
+
Description: Checks for usage of `Module` methods returning arrays that can be replaced
|
|
1553
|
+
with equivalent predicates.
|
|
1554
|
+
Enabled: true # was pending
|
|
1555
|
+
VersionAdded: '1.82'
|
|
1556
|
+
|
|
1504
1557
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylemultilineblockchain
|
|
1505
1558
|
Style/MultilineBlockChain:
|
|
1506
1559
|
Description: Avoid multi-line chains of blocks.
|
|
@@ -1637,6 +1690,15 @@ Style/NegatedWhile:
|
|
|
1637
1690
|
Enabled: true
|
|
1638
1691
|
VersionAdded: '0.20'
|
|
1639
1692
|
|
|
1693
|
+
# Supports --autocorrect
|
|
1694
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylenegativearrayindex
|
|
1695
|
+
Style/NegativeArrayIndex:
|
|
1696
|
+
Description: Use negative array indices instead of calculating array length minus
|
|
1697
|
+
a value. Also handles range patterns with length calculations. Recognizes preserving
|
|
1698
|
+
methods and their combinations, allowing safe replacement when the receiver matches.
|
|
1699
|
+
Enabled: true # was pending
|
|
1700
|
+
VersionAdded: '1.84'
|
|
1701
|
+
|
|
1640
1702
|
# Supports --autocorrect
|
|
1641
1703
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylenestedfiledirname
|
|
1642
1704
|
Style/NestedFileDirname:
|
|
@@ -1815,6 +1877,17 @@ Style/ObjectThen:
|
|
|
1815
1877
|
- then
|
|
1816
1878
|
- yield_self
|
|
1817
1879
|
|
|
1880
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleoneclassperfile
|
|
1881
|
+
Style/OneClassPerFile:
|
|
1882
|
+
Description: Checks that each source file defines at most one top-level class or module.
|
|
1883
|
+
Enabled: true # was pending
|
|
1884
|
+
VersionAdded: '1.85'
|
|
1885
|
+
VersionChanged: '1.86'
|
|
1886
|
+
AllowedClasses: []
|
|
1887
|
+
Exclude:
|
|
1888
|
+
- "spec/**/*"
|
|
1889
|
+
- "test/**/*"
|
|
1890
|
+
|
|
1818
1891
|
# Supports --autocorrect
|
|
1819
1892
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleonelineconditional
|
|
1820
1893
|
Style/OneLineConditional:
|
|
@@ -1908,6 +1981,15 @@ Style/ParenthesesAroundCondition:
|
|
|
1908
1981
|
AllowSafeAssignment: true
|
|
1909
1982
|
AllowInMultilineConditions: false
|
|
1910
1983
|
|
|
1984
|
+
# Supports --autocorrect
|
|
1985
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylepartitioninsteadofdoubleselect
|
|
1986
|
+
Style/PartitionInsteadOfDoubleSelect:
|
|
1987
|
+
Description: Checks for consecutive `select`/`filter`/`find_all` and `reject` calls
|
|
1988
|
+
on the same receiver with the same block body.
|
|
1989
|
+
Enabled: true # was pending
|
|
1990
|
+
Safe: false
|
|
1991
|
+
VersionAdded: '1.85'
|
|
1992
|
+
|
|
1911
1993
|
# Supports --autocorrect
|
|
1912
1994
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylepercentliteraldelimiters
|
|
1913
1995
|
Style/PercentLiteralDelimiters:
|
|
@@ -1943,6 +2025,14 @@ Style/PerlBackrefs:
|
|
|
1943
2025
|
Enabled: true
|
|
1944
2026
|
VersionAdded: '0.13'
|
|
1945
2027
|
|
|
2028
|
+
# Supports --autocorrect
|
|
2029
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylepredicatewithkind
|
|
2030
|
+
Style/PredicateWithKind:
|
|
2031
|
+
Description: Prefer `any?(Klass)` to `any? { |x| x.is_a?(Klass) }`.
|
|
2032
|
+
Enabled: true # was pending
|
|
2033
|
+
SafeAutoCorrect: false
|
|
2034
|
+
VersionAdded: '1.85'
|
|
2035
|
+
|
|
1946
2036
|
# Supports --autocorrect
|
|
1947
2037
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylepreferredhashmethods
|
|
1948
2038
|
Style/PreferredHashMethods:
|
|
@@ -2002,6 +2092,15 @@ Style/RandomWithOffset:
|
|
|
2002
2092
|
Enabled: true
|
|
2003
2093
|
VersionAdded: '0.52'
|
|
2004
2094
|
|
|
2095
|
+
# Supports --autocorrect
|
|
2096
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylereducetohash
|
|
2097
|
+
Style/ReduceToHash:
|
|
2098
|
+
Description: Use `to_h { ... }` instead of `each_with_object`, `inject`, or `reduce`
|
|
2099
|
+
to build a hash.
|
|
2100
|
+
Enabled: true # was pending
|
|
2101
|
+
Safe: false
|
|
2102
|
+
VersionAdded: '1.85'
|
|
2103
|
+
|
|
2005
2104
|
# Supports --autocorrect
|
|
2006
2105
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantargument
|
|
2007
2106
|
Style/RedundantArgument:
|
|
@@ -2015,6 +2114,7 @@ Style/RedundantArgument:
|
|
|
2015
2114
|
sum: 0
|
|
2016
2115
|
exit: true
|
|
2017
2116
|
exit!: false
|
|
2117
|
+
to_i: 10
|
|
2018
2118
|
split: " "
|
|
2019
2119
|
chomp: "\n"
|
|
2020
2120
|
chomp!: "\n"
|
|
@@ -2065,6 +2165,7 @@ Style/RedundantCondition:
|
|
|
2065
2165
|
VersionAdded: '0.76'
|
|
2066
2166
|
VersionChanged: '1.73'
|
|
2067
2167
|
AllowedMethods:
|
|
2168
|
+
- infinite?
|
|
2068
2169
|
- nonzero?
|
|
2069
2170
|
|
|
2070
2171
|
# Supports --autocorrect
|
|
@@ -2204,6 +2305,13 @@ Style/RedundantLineContinuation:
|
|
|
2204
2305
|
Enabled: true # was pending
|
|
2205
2306
|
VersionAdded: '1.49'
|
|
2206
2307
|
|
|
2308
|
+
# Supports --autocorrect
|
|
2309
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantminmaxby
|
|
2310
|
+
Style/RedundantMinMaxBy:
|
|
2311
|
+
Description: Identifies places where `max_by`/`min_by` can be replaced by `max`/`min`.
|
|
2312
|
+
Enabled: true # was pending
|
|
2313
|
+
VersionAdded: '1.85'
|
|
2314
|
+
|
|
2207
2315
|
# Supports --autocorrect
|
|
2208
2316
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantparentheses
|
|
2209
2317
|
Style/RedundantParentheses:
|
|
@@ -2308,6 +2416,15 @@ Style/RedundantStringEscape:
|
|
|
2308
2416
|
Enabled: true # was pending
|
|
2309
2417
|
VersionAdded: '1.37'
|
|
2310
2418
|
|
|
2419
|
+
# Supports --autocorrect
|
|
2420
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantstructkeywordinit
|
|
2421
|
+
Style/RedundantStructKeywordInit:
|
|
2422
|
+
Description: Checks for redundant `keyword_init` option for `Struct.new`.
|
|
2423
|
+
Enabled: true # was false
|
|
2424
|
+
SafeAutoCorrect: false
|
|
2425
|
+
VersionAdded: '1.85'
|
|
2426
|
+
VersionChanged: '1.86'
|
|
2427
|
+
|
|
2311
2428
|
# Supports --autocorrect
|
|
2312
2429
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
|
|
2313
2430
|
Style/RegexpLiteral:
|
|
@@ -2374,6 +2491,14 @@ Style/ReturnNilInPredicateMethodDefinition:
|
|
|
2374
2491
|
VersionAdded: '1.53'
|
|
2375
2492
|
VersionChanged: '1.67'
|
|
2376
2493
|
|
|
2494
|
+
# Supports --autocorrect
|
|
2495
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylereversefind
|
|
2496
|
+
Style/ReverseFind:
|
|
2497
|
+
Description: Use `array.rfind` instead of `array.reverse.find`.
|
|
2498
|
+
Enabled: true # was pending
|
|
2499
|
+
Safe: false
|
|
2500
|
+
VersionAdded: '1.84'
|
|
2501
|
+
|
|
2377
2502
|
# Supports --autocorrect
|
|
2378
2503
|
# https://docs.rubocop.org/rubocop/cops_style.html#stylesafenavigation
|
|
2379
2504
|
Style/SafeNavigation:
|
|
@@ -2410,10 +2535,26 @@ Style/Sample:
|
|
|
2410
2535
|
Enabled: true
|
|
2411
2536
|
VersionAdded: '0.30'
|
|
2412
2537
|
|
|
2538
|
+
# Supports --autocorrect
|
|
2539
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleselectbykind
|
|
2540
|
+
Style/SelectByKind:
|
|
2541
|
+
Description: Prefer grep/grep_v to select/reject/find/detect with a kind check.
|
|
2542
|
+
Enabled: true # was pending
|
|
2543
|
+
SafeAutoCorrect: false
|
|
2544
|
+
VersionAdded: '1.85'
|
|
2545
|
+
|
|
2546
|
+
# Supports --autocorrect
|
|
2547
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleselectbyrange
|
|
2548
|
+
Style/SelectByRange:
|
|
2549
|
+
Description: Prefer grep/grep_v to select/reject/find/detect with a range check.
|
|
2550
|
+
Enabled: true # was pending
|
|
2551
|
+
SafeAutoCorrect: false
|
|
2552
|
+
VersionAdded: '1.85'
|
|
2553
|
+
|
|
2413
2554
|
# Supports --autocorrect
|
|
2414
2555
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleselectbyregexp
|
|
2415
2556
|
Style/SelectByRegexp:
|
|
2416
|
-
Description: Prefer grep/grep_v to select/reject with a regexp match.
|
|
2557
|
+
Description: Prefer grep/grep_v to select/reject/find/detect with a regexp match.
|
|
2417
2558
|
Enabled: true # was pending
|
|
2418
2559
|
SafeAutoCorrect: false
|
|
2419
2560
|
VersionAdded: '1.22'
|
|
@@ -2720,6 +2861,14 @@ Style/SymbolProc:
|
|
|
2720
2861
|
AllowedPatterns: []
|
|
2721
2862
|
AllowComments: false
|
|
2722
2863
|
|
|
2864
|
+
# Supports --autocorrect
|
|
2865
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styletallymethod
|
|
2866
|
+
Style/TallyMethod:
|
|
2867
|
+
Description: Prefer `Enumerable#tally` over manual counting patterns.
|
|
2868
|
+
Enabled: true # was pending
|
|
2869
|
+
Safe: false
|
|
2870
|
+
VersionAdded: '1.85'
|
|
2871
|
+
|
|
2723
2872
|
# Supports --autocorrect
|
|
2724
2873
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleternaryparentheses
|
|
2725
2874
|
Style/TernaryParentheses:
|
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.3.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:
|
|
11
|
+
date: 2026-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-cli
|
|
@@ -158,14 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
158
158
|
requirements:
|
|
159
159
|
- - ">="
|
|
160
160
|
- !ruby/object:Gem::Version
|
|
161
|
-
version: '3.
|
|
161
|
+
version: '3.3'
|
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
|
164
164
|
- - ">="
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
166
|
version: '0'
|
|
167
167
|
requirements: []
|
|
168
|
-
rubygems_version: 3.
|
|
168
|
+
rubygems_version: 3.5.22
|
|
169
169
|
signing_key:
|
|
170
170
|
specification_version: 4
|
|
171
171
|
summary: Standardized RuboCop configuration with CLI tools
|