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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b327cbadeb5fd1a0751fe5f6340b319f186a5a5962c76de695f0ef18a8c3f8f2
|
|
4
|
+
data.tar.gz: 6e64204b6055fea0543987c22231dab894b9825f0c01885b6979d8cfd65bc6bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c30ac5a076d789f3e4051bd8fd1ff4ee6bd2975faf880d4de8391d2a5bcbd1824a9e896c7566818e764b6d236bc9cc91aea325888e895afc6fcb39325aabb45c
|
|
7
|
+
data.tar.gz: 763a27a558974bd9ebae244d3f86d90c2f4efde703cf6715b816f6698dd1616a5f430329789470b2b4f3d5812b9247fc83e39da6dbce900649b0c21ec2a56ba8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.4.0] - 2026-11-21
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Add cops introduced up to rubocop 1.92, rubocop-capybara 3.1, rubocop-rspec 3.10 and rubocop-thread_safety 0.8 to the defaults (enabled unless disabled in `config/cops`)
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Update cop defaults to rubocop 1.92, rubocop-capybara 3.1, rubocop-performance 1.27, rubocop-rspec 3.10 and rubocop-thread_safety 0.8
|
|
10
|
+
- Rename the `Style/FetchEnvVar` parameter `AllowedVars` to `AllowedVariables`
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
- Remove `Capybara/ClickLinkOrButtonStyle` (use `Capybara/AmbiguousClick`) and `Style/DoubleCopDisableDirective` (use `Lint/CopDirectiveSyntax`)
|
|
14
|
+
|
|
3
15
|
## [1.3.0] - 2026-05-10
|
|
4
16
|
|
|
5
17
|
- Drop Ruby 3.2
|
data/config/cops/style.yml
CHANGED
data/config/defaults/bundler.yml
CHANGED
|
@@ -27,12 +27,12 @@ Bundler/GemComment:
|
|
|
27
27
|
Description: Add a comment describing each gem.
|
|
28
28
|
Enabled: true # was false
|
|
29
29
|
VersionAdded: '0.59'
|
|
30
|
-
VersionChanged: '
|
|
30
|
+
VersionChanged: '1.88'
|
|
31
31
|
Include:
|
|
32
32
|
- "**/*.gemfile"
|
|
33
33
|
- "**/Gemfile"
|
|
34
34
|
- "**/gems.rb"
|
|
35
|
-
|
|
35
|
+
AllowedGems: []
|
|
36
36
|
OnlyFor: []
|
|
37
37
|
|
|
38
38
|
# https://docs.rubocop.org/rubocop/cops_bundler.html#bundlergemfilename
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
# Department 'Capybara' (
|
|
1
|
+
# Department 'Capybara' (14):
|
|
2
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraabsolutexpathinelementscope
|
|
3
|
+
Capybara/AbsoluteXPathInElementScope:
|
|
4
|
+
Description: Checks for absolute XPath searches on Capybara elements.
|
|
5
|
+
Enabled: true # was pending
|
|
6
|
+
VersionAdded: '3.1'
|
|
7
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AbsoluteXPathInElementScope
|
|
8
|
+
|
|
9
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraalwaystruecountquery
|
|
10
|
+
Capybara/AlwaysTrueCountQuery:
|
|
11
|
+
Description: Checks for positive queries that succeed when there are no matches.
|
|
12
|
+
Enabled: true # was pending
|
|
13
|
+
VersionAdded: '3.1'
|
|
14
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AlwaysTrueCountQuery
|
|
15
|
+
|
|
2
16
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraambiguousclick
|
|
3
17
|
Capybara/AmbiguousClick:
|
|
4
18
|
Description: Specify the exact target to click on.
|
|
@@ -10,52 +24,94 @@ Capybara/AmbiguousClick:
|
|
|
10
24
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraassertstyle
|
|
11
25
|
Capybara/AssertStyle:
|
|
12
26
|
Description: Checks for usage of deprecated assert style method.
|
|
13
|
-
Enabled: true
|
|
27
|
+
Enabled: true
|
|
14
28
|
VersionAdded: '2.23'
|
|
29
|
+
VersionChanged: '3.0'
|
|
15
30
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AssertStyle
|
|
16
31
|
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- link_or_button
|
|
26
|
-
- strict
|
|
27
|
-
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ClickLinkOrButtonStyle
|
|
32
|
+
# Supports --autocorrect
|
|
33
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybarachainedfind
|
|
34
|
+
Capybara/ChainedFind:
|
|
35
|
+
Description: Avoid chaining `find` methods and combine selectors.
|
|
36
|
+
Enabled: true # was pending
|
|
37
|
+
DefaultSelector: css
|
|
38
|
+
VersionAdded: '3.1'
|
|
39
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ChainedFind
|
|
28
40
|
|
|
29
41
|
# Supports --autocorrect
|
|
30
42
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybarafindallfirst
|
|
31
43
|
Capybara/FindAllFirst:
|
|
32
44
|
Description: Enforces use of `first` instead of `all` with `first` or `[0]`.
|
|
33
|
-
Enabled: true
|
|
45
|
+
Enabled: true
|
|
34
46
|
SafeAutoCorrect: false
|
|
35
47
|
VersionAdded: '2.22'
|
|
36
|
-
VersionChanged: '
|
|
48
|
+
VersionChanged: '3.0'
|
|
37
49
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/FindAllFirst
|
|
38
50
|
|
|
51
|
+
# Supports --autocorrect
|
|
52
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraignoredqueryoption
|
|
53
|
+
Capybara/IgnoredQueryOption:
|
|
54
|
+
Description: Checks for query options that have no effect in Capybara.
|
|
55
|
+
Enabled: true # was pending
|
|
56
|
+
DefaultSelector: css
|
|
57
|
+
VersionAdded: '3.1'
|
|
58
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/IgnoredQueryOption
|
|
59
|
+
|
|
60
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaramodalmethodwithoutblock
|
|
61
|
+
Capybara/ModalMethodWithoutBlock:
|
|
62
|
+
Description: Checks that modal handling methods are called with a block.
|
|
63
|
+
Enabled: true # was pending
|
|
64
|
+
VersionAdded: '3.1'
|
|
65
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ModalMethodWithoutBlock
|
|
66
|
+
|
|
67
|
+
# Supports --autocorrect
|
|
68
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaranativeattribute
|
|
69
|
+
Capybara/NativeAttribute:
|
|
70
|
+
Description: Enforces use of `Element#[]` instead of `native.attribute`.
|
|
71
|
+
Enabled: true # was pending
|
|
72
|
+
SafeAutoCorrect: false
|
|
73
|
+
VersionAdded: '3.1'
|
|
74
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NativeAttribute
|
|
75
|
+
|
|
39
76
|
# Supports --autocorrect
|
|
40
77
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybararedundantwithinfind
|
|
41
78
|
Capybara/RedundantWithinFind:
|
|
42
79
|
Description: Checks for redundant `within find(...)` calls.
|
|
43
|
-
Enabled: true
|
|
80
|
+
Enabled: true
|
|
44
81
|
VersionAdded: '2.20'
|
|
82
|
+
VersionChanged: '3.0'
|
|
45
83
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RedundantWithinFind
|
|
46
84
|
|
|
47
85
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraspecificactions
|
|
48
86
|
Capybara/SpecificActions:
|
|
49
87
|
Description: Checks for there is a more specific actions offered by Capybara.
|
|
50
|
-
Enabled: true
|
|
88
|
+
Enabled: true
|
|
51
89
|
VersionAdded: '2.14'
|
|
90
|
+
VersionChanged: '3.0'
|
|
52
91
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificActions
|
|
53
92
|
|
|
54
93
|
# Supports --autocorrect
|
|
55
94
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraspecificfinders
|
|
56
95
|
Capybara/SpecificFinders:
|
|
57
96
|
Description: Checks if there is a more specific finder offered by Capybara.
|
|
58
|
-
Enabled: true
|
|
97
|
+
Enabled: true
|
|
59
98
|
VersionAdded: '2.13'
|
|
99
|
+
VersionChanged: '3.0'
|
|
60
100
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificFinders
|
|
61
101
|
|
|
102
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraunorderedwindowaccess
|
|
103
|
+
Capybara/UnorderedWindowAccess:
|
|
104
|
+
Description: Checks positional access to Capybara windows, whose order is undefined.
|
|
105
|
+
Enabled: true # was pending
|
|
106
|
+
VersionAdded: '3.1'
|
|
107
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/UnorderedWindowAccess
|
|
108
|
+
|
|
109
|
+
# Supports --autocorrect
|
|
110
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaravisibilityoption
|
|
111
|
+
Capybara/VisibilityOption:
|
|
112
|
+
Description: Checks for boolean values passed to Capybara's `visible` option.
|
|
113
|
+
Enabled: true # was pending
|
|
114
|
+
DefaultSelector: css
|
|
115
|
+
VersionAdded: '3.1'
|
|
116
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/VisibilityOption
|
|
117
|
+
|
|
@@ -1,45 +1,66 @@
|
|
|
1
|
-
# Department 'Capybara/RSpec' (
|
|
1
|
+
# Department 'Capybara/RSpec' (11):
|
|
2
2
|
# Supports --autocorrect
|
|
3
3
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspeccurrentpathexpectation
|
|
4
4
|
Capybara/RSpec/CurrentPathExpectation:
|
|
5
5
|
Description: Checks that no expectations are set on Capybara's `current_path`.
|
|
6
|
-
Enabled: true
|
|
6
|
+
Enabled: true
|
|
7
7
|
VersionAdded: '1.18'
|
|
8
|
-
VersionChanged: '
|
|
8
|
+
VersionChanged: '3.0'
|
|
9
9
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/CurrentPathExpectation
|
|
10
10
|
|
|
11
|
+
# Supports --autocorrect
|
|
12
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspeccurrenturlexpectation
|
|
13
|
+
Capybara/RSpec/CurrentUrlExpectation:
|
|
14
|
+
Description: Checks expectations on `current_url` that bypass Capybara's waiting.
|
|
15
|
+
Enabled: true # was pending
|
|
16
|
+
SafeAutoCorrect: false
|
|
17
|
+
VersionAdded: '3.1'
|
|
18
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/CurrentUrlExpectation
|
|
19
|
+
|
|
20
|
+
# Supports --autocorrect
|
|
21
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecfindelementvalueeq
|
|
22
|
+
Capybara/RSpec/FindElementValueEq:
|
|
23
|
+
Description: Checks for expectations on the value of an element found by Capybara.
|
|
24
|
+
Enabled: true # was pending
|
|
25
|
+
SafeAutoCorrect: false
|
|
26
|
+
VersionAdded: '3.1'
|
|
27
|
+
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/FindElementValueEq
|
|
28
|
+
|
|
11
29
|
# Supports --autocorrect
|
|
12
30
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechavecontent
|
|
13
31
|
Capybara/RSpec/HaveContent:
|
|
14
32
|
Description: Checks for usage of `have_content` and `have_no_content`.
|
|
15
|
-
Enabled: true
|
|
33
|
+
Enabled: true
|
|
16
34
|
VersionAdded: '2.23'
|
|
35
|
+
VersionChanged: '3.0'
|
|
17
36
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveContent
|
|
18
37
|
|
|
19
38
|
# Supports --autocorrect
|
|
20
39
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechaveselector
|
|
21
40
|
Capybara/RSpec/HaveSelector:
|
|
22
|
-
Description: Use
|
|
23
|
-
Enabled: true
|
|
41
|
+
Description: Use CSS or XPath matchers instead of generic selector matchers.
|
|
42
|
+
Enabled: true
|
|
24
43
|
DefaultSelector: css
|
|
25
44
|
VersionAdded: '2.19'
|
|
45
|
+
VersionChanged: '3.0'
|
|
26
46
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveSelector
|
|
27
47
|
|
|
28
48
|
# Supports --autocorrect
|
|
29
49
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecmatchstyle
|
|
30
50
|
Capybara/RSpec/MatchStyle:
|
|
31
51
|
Description: Checks for usage of deprecated style methods in RSpec matchers.
|
|
32
|
-
Enabled: true
|
|
52
|
+
Enabled: true
|
|
33
53
|
VersionAdded: '2.23'
|
|
54
|
+
VersionChanged: '3.0'
|
|
34
55
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/MatchStyle
|
|
35
56
|
|
|
36
57
|
# Supports --autocorrect
|
|
37
58
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcher
|
|
38
59
|
Capybara/RSpec/NegationMatcher:
|
|
39
60
|
Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
|
|
40
|
-
Enabled: true
|
|
61
|
+
Enabled: true
|
|
41
62
|
VersionAdded: '2.14'
|
|
42
|
-
VersionChanged: '
|
|
63
|
+
VersionChanged: '3.0'
|
|
43
64
|
EnforcedStyle: have_no
|
|
44
65
|
SupportedStyles:
|
|
45
66
|
- have_no
|
|
@@ -49,16 +70,16 @@ Capybara/RSpec/NegationMatcher:
|
|
|
49
70
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcheraftervisit
|
|
50
71
|
Capybara/RSpec/NegationMatcherAfterVisit:
|
|
51
72
|
Description: Do not allow negative matchers to be used immediately after `visit`.
|
|
52
|
-
Enabled: true
|
|
73
|
+
Enabled: true
|
|
53
74
|
VersionAdded: '2.22'
|
|
54
|
-
VersionChanged: '
|
|
75
|
+
VersionChanged: '3.0'
|
|
55
76
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcherAfterVisit
|
|
56
77
|
|
|
57
78
|
# Supports --autocorrect
|
|
58
79
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecpredicatematcher
|
|
59
80
|
Capybara/RSpec/PredicateMatcher:
|
|
60
81
|
Description: Prefer using predicate matcher over using predicate method directly.
|
|
61
|
-
Enabled: true
|
|
82
|
+
Enabled: true
|
|
62
83
|
Strict: true
|
|
63
84
|
EnforcedStyle: inflected
|
|
64
85
|
AllowedExplicitMatchers: []
|
|
@@ -66,21 +87,25 @@ Capybara/RSpec/PredicateMatcher:
|
|
|
66
87
|
- inflected
|
|
67
88
|
- explicit
|
|
68
89
|
VersionAdded: '2.19'
|
|
90
|
+
VersionChanged: '3.0'
|
|
69
91
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/PredicateMatcher
|
|
70
92
|
|
|
71
93
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecspecificmatcher
|
|
72
94
|
Capybara/RSpec/SpecificMatcher:
|
|
73
95
|
Description: Checks for there is a more specific matcher offered by Capybara.
|
|
74
|
-
Enabled: true
|
|
96
|
+
Enabled: true
|
|
75
97
|
VersionAdded: '2.12'
|
|
76
|
-
VersionChanged: '
|
|
98
|
+
VersionChanged: '3.0'
|
|
77
99
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/SpecificMatcher
|
|
78
100
|
|
|
101
|
+
# Supports --autocorrect
|
|
79
102
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecvisibilitymatcher
|
|
80
103
|
Capybara/RSpec/VisibilityMatcher:
|
|
81
|
-
Description: Checks for boolean visibility in Capybara
|
|
82
|
-
Enabled: true
|
|
104
|
+
Description: Checks for boolean visibility in Capybara RSpec matchers.
|
|
105
|
+
Enabled: true
|
|
106
|
+
SafeAutoCorrect: false
|
|
107
|
+
DefaultSelector: css
|
|
83
108
|
VersionAdded: '1.39'
|
|
84
|
-
VersionChanged:
|
|
109
|
+
VersionChanged: "<<next>>"
|
|
85
110
|
Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/VisibilityMatcher
|
|
86
111
|
|
data/config/defaults/layout.yml
CHANGED
|
@@ -30,7 +30,7 @@ Layout/ArgumentAlignment:
|
|
|
30
30
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutarrayalignment
|
|
31
31
|
Layout/ArrayAlignment:
|
|
32
32
|
Description: Align the elements of an array literal if they span more than one line.
|
|
33
|
-
StyleGuide: "#
|
|
33
|
+
StyleGuide: "#align-multiline-arrays"
|
|
34
34
|
Enabled: true
|
|
35
35
|
VersionAdded: '0.49'
|
|
36
36
|
VersionChanged: '0.77'
|
|
@@ -84,7 +84,7 @@ Layout/BlockEndNewline:
|
|
|
84
84
|
# Supports --autocorrect
|
|
85
85
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutcaseindentation
|
|
86
86
|
Layout/CaseIndentation:
|
|
87
|
-
Description:
|
|
87
|
+
Description: Checks how the `when` and `in` clauses of a `case` expression are indented.
|
|
88
88
|
StyleGuide: "#indent-when-to-case"
|
|
89
89
|
Enabled: true
|
|
90
90
|
VersionAdded: '0.49'
|
|
@@ -104,7 +104,7 @@ Layout/ClassStructure:
|
|
|
104
104
|
Enabled: true # was false
|
|
105
105
|
SafeAutoCorrect: false
|
|
106
106
|
VersionAdded: '0.52'
|
|
107
|
-
VersionChanged: '1.
|
|
107
|
+
VersionChanged: '1.89'
|
|
108
108
|
Categories:
|
|
109
109
|
module_inclusion:
|
|
110
110
|
- include
|
|
@@ -117,6 +117,7 @@ Layout/ClassStructure:
|
|
|
117
117
|
- initializer
|
|
118
118
|
- public_methods
|
|
119
119
|
- protected_methods
|
|
120
|
+
- private_class_methods
|
|
120
121
|
- private_methods
|
|
121
122
|
|
|
122
123
|
# Supports --autocorrect
|
|
@@ -132,15 +133,18 @@ Layout/ClosingParenthesisIndentation:
|
|
|
132
133
|
Description: Checks the indentation of hanging closing parentheses.
|
|
133
134
|
Enabled: true
|
|
134
135
|
VersionAdded: '0.49'
|
|
136
|
+
VersionChanged: '1.86'
|
|
137
|
+
IndentationWidth:
|
|
135
138
|
|
|
136
139
|
# Supports --autocorrect
|
|
137
140
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutcommentindentation
|
|
138
141
|
Layout/CommentIndentation:
|
|
139
|
-
Description:
|
|
142
|
+
Description: Checks the indentation of comments.
|
|
140
143
|
Enabled: true
|
|
141
|
-
AllowForAlignment: false
|
|
142
144
|
VersionAdded: '0.49'
|
|
143
|
-
VersionChanged: '1.
|
|
145
|
+
VersionChanged: '1.86'
|
|
146
|
+
AllowForAlignment: false
|
|
147
|
+
IndentationWidth:
|
|
144
148
|
|
|
145
149
|
# Supports --autocorrect
|
|
146
150
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutconditionposition
|
|
@@ -208,6 +212,8 @@ Layout/EmptyLineAfterMagicComment:
|
|
|
208
212
|
StyleGuide: "#separate-magic-comments-from-code"
|
|
209
213
|
Enabled: true
|
|
210
214
|
VersionAdded: '0.49'
|
|
215
|
+
VersionChanged: '1.91'
|
|
216
|
+
NumberOfEmptyLines: 1
|
|
211
217
|
|
|
212
218
|
# Supports --autocorrect
|
|
213
219
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutemptylineaftermultilinecondition
|
|
@@ -484,9 +490,9 @@ Layout/FirstParameterIndentation:
|
|
|
484
490
|
Layout/HashAlignment:
|
|
485
491
|
Description: Align the elements of a hash literal if they span more than one line.
|
|
486
492
|
Enabled: true
|
|
487
|
-
AllowMultipleStyles: true
|
|
488
493
|
VersionAdded: '0.49'
|
|
489
494
|
VersionChanged: '1.16'
|
|
495
|
+
AllowMultipleStyles: true
|
|
490
496
|
EnforcedHashRocketStyle: key
|
|
491
497
|
SupportedHashRocketStyles:
|
|
492
498
|
- key
|
|
@@ -509,8 +515,8 @@ Layout/HashAlignment:
|
|
|
509
515
|
Layout/HeredocArgumentClosingParenthesis:
|
|
510
516
|
Description: Checks for the placement of the closing parenthesis in a method call
|
|
511
517
|
that passes a HEREDOC string as an argument.
|
|
512
|
-
Enabled: true # was false
|
|
513
518
|
StyleGuide: "#heredoc-argument-closing-parentheses"
|
|
519
|
+
Enabled: true # was false
|
|
514
520
|
VersionAdded: '0.68'
|
|
515
521
|
|
|
516
522
|
# Supports --autocorrect
|
|
@@ -583,6 +589,7 @@ Layout/LeadingCommentSpace:
|
|
|
583
589
|
AllowGemfileRubyComment: false
|
|
584
590
|
AllowRBSInlineAnnotation: false
|
|
585
591
|
AllowSteepAnnotation: false
|
|
592
|
+
AllowYARDCommentBlockSeparator: false
|
|
586
593
|
|
|
587
594
|
# Supports --autocorrect
|
|
588
595
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutleadingemptylines
|
|
@@ -913,6 +920,7 @@ Layout/SpaceAroundOperators:
|
|
|
913
920
|
StyleGuide: "#spaces-operators"
|
|
914
921
|
Enabled: true
|
|
915
922
|
VersionAdded: '0.49'
|
|
923
|
+
VersionChanged: '1.90'
|
|
916
924
|
AllowForAlignment: true
|
|
917
925
|
EnforcedStyleForExponentOperator: no_space
|
|
918
926
|
SupportedStylesForExponentOperator:
|
|
@@ -929,6 +937,7 @@ Layout/SpaceBeforeBlockBraces:
|
|
|
929
937
|
Description: Checks that the left block brace has or doesn't have space before it.
|
|
930
938
|
Enabled: true
|
|
931
939
|
VersionAdded: '0.49'
|
|
940
|
+
VersionChanged: '0.52'
|
|
932
941
|
EnforcedStyle: space
|
|
933
942
|
SupportedStyles:
|
|
934
943
|
- space
|
|
@@ -937,7 +946,6 @@ Layout/SpaceBeforeBlockBraces:
|
|
|
937
946
|
SupportedStylesForEmptyBraces:
|
|
938
947
|
- space
|
|
939
948
|
- no_space
|
|
940
|
-
VersionChanged: '0.52'
|
|
941
949
|
|
|
942
950
|
# Supports --autocorrect
|
|
943
951
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforebrackets
|