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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e1a397b619f2e6cf942128c3e135fb0617de4dd12fc63c0a7bdb567962b301a
4
- data.tar.gz: 6662eb1029f19415c9861a01ed5772023aa0863ad76f5bbc4a224710a55baf67
3
+ metadata.gz: b327cbadeb5fd1a0751fe5f6340b319f186a5a5962c76de695f0ef18a8c3f8f2
4
+ data.tar.gz: 6e64204b6055fea0543987c22231dab894b9825f0c01885b6979d8cfd65bc6bc
5
5
  SHA512:
6
- metadata.gz: 8eb52f1b6d178b93026bfb65d3bce028e2bf7ca09a19d98b0da9eb135776ec93992755da108e75f0f55ab8a634e14b4f8b8bfe6b67a2e4fa695ff879c87d59d5
7
- data.tar.gz: b96fec0847203d1cdfe06a9a05e2af44ff84647c08db93c515a6a3503a27ae78319ff20a32c2be98345ddbba8927a52456f39e7569ef5c697e9f786183b5e28f
6
+ metadata.gz: c30ac5a076d789f3e4051bd8fd1ff4ee6bd2975faf880d4de8391d2a5bcbd1824a9e896c7566818e764b6d236bc9cc91aea325888e895afc6fcb39325aabb45c
7
+ data.tar.gz: 763a27a558974bd9ebae244d3f86d90c2f4efde703cf6715b816f6698dd1616a5f430329789470b2b4f3d5812b9247fc83e39da6dbce900649b0c21ec2a56ba8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
15
+ ## [1.3.0] - 2026-05-10
16
+
17
+ - Drop Ruby 3.2
18
+
3
19
  ## [1.2.0] - 2025-12-26
4
20
  - Bump rubocop to 1.82
5
21
 
@@ -49,7 +49,7 @@ Style/ExplicitBlockArgument:
49
49
  Enabled: false
50
50
 
51
51
  Style/FetchEnvVar:
52
- AllowedVars: []
52
+ AllowedVariables: []
53
53
 
54
54
  Style/FormatString:
55
55
  EnforcedStyle: percent
@@ -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: '0.85'
30
+ VersionChanged: '1.88'
31
31
  Include:
32
32
  - "**/*.gemfile"
33
33
  - "**/Gemfile"
34
34
  - "**/gems.rb"
35
- IgnoredGems: []
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' (12):
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.
@@ -6,98 +20,98 @@ Capybara/AmbiguousClick:
6
20
  VersionAdded: '2.22'
7
21
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AmbiguousClick
8
22
 
9
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraclicklinkorbuttonstyle
10
- Capybara/ClickLinkOrButtonStyle:
11
- Description: Checks for methods of button or link clicks.
12
- Enabled: true # was false
13
- VersionAdded: '2.19'
14
- VersionChanged: '2.22'
15
- EnforcedStyle: link_or_button
16
- SupportedStyles:
17
- - link_or_button
18
- - strict
19
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ClickLinkOrButtonStyle
20
-
21
23
  # 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`.
24
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraassertstyle
25
+ Capybara/AssertStyle:
26
+ Description: Checks for usage of deprecated assert style method.
25
27
  Enabled: true
26
- VersionAdded: '1.18'
27
- VersionChanged: '2.0'
28
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/CurrentPathExpectation
28
+ VersionAdded: '2.23'
29
+ VersionChanged: '3.0'
30
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AssertStyle
31
+
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
29
40
 
30
41
  # Supports --autocorrect
31
42
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybarafindallfirst
32
43
  Capybara/FindAllFirst:
33
44
  Description: Enforces use of `first` instead of `all` with `first` or `[0]`.
34
- Enabled: true # was pending
45
+ Enabled: true
46
+ SafeAutoCorrect: false
35
47
  VersionAdded: '2.22'
48
+ VersionChanged: '3.0'
36
49
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/FindAllFirst
37
50
 
38
51
  # 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.
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.
42
55
  Enabled: true # was pending
43
- VersionAdded: '2.17'
44
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/MatchStyle
56
+ DefaultSelector: css
57
+ VersionAdded: '3.1'
58
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/IgnoredQueryOption
45
59
 
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.
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.
50
63
  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
64
+ VersionAdded: '3.1'
65
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ModalMethodWithoutBlock
58
66
 
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`.
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`.
62
71
  Enabled: true # was pending
63
- VersionAdded: '2.22'
64
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcherAfterVisit
72
+ SafeAutoCorrect: false
73
+ VersionAdded: '3.1'
74
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NativeAttribute
65
75
 
66
76
  # Supports --autocorrect
67
77
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybararedundantwithinfind
68
78
  Capybara/RedundantWithinFind:
69
79
  Description: Checks for redundant `within find(...)` calls.
70
- Enabled: true # was pending
80
+ Enabled: true
71
81
  VersionAdded: '2.20'
82
+ VersionChanged: '3.0'
72
83
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RedundantWithinFind
73
84
 
74
85
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraspecificactions
75
86
  Capybara/SpecificActions:
76
87
  Description: Checks for there is a more specific actions offered by Capybara.
77
- Enabled: true # was pending
88
+ Enabled: true
78
89
  VersionAdded: '2.14'
90
+ VersionChanged: '3.0'
79
91
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificActions
80
92
 
81
93
  # Supports --autocorrect
82
94
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraspecificfinders
83
95
  Capybara/SpecificFinders:
84
96
  Description: Checks if there is a more specific finder offered by Capybara.
85
- Enabled: true # was pending
97
+ Enabled: true
86
98
  VersionAdded: '2.13'
99
+ VersionChanged: '3.0'
87
100
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificFinders
88
101
 
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.
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.
92
105
  Enabled: true # was pending
93
- VersionAdded: '2.12'
94
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificMatcher
106
+ VersionAdded: '3.1'
107
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/UnorderedWindowAccess
95
108
 
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
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
103
117
 
@@ -1,18 +1,85 @@
1
- # Department 'Capybara/RSpec' (2):
1
+ # Department 'Capybara/RSpec' (11):
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
7
+ VersionAdded: '1.18'
8
+ VersionChanged: '3.0'
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#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
+
29
+ # Supports --autocorrect
30
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechavecontent
31
+ Capybara/RSpec/HaveContent:
32
+ Description: Checks for usage of `have_content` and `have_no_content`.
33
+ Enabled: true
34
+ VersionAdded: '2.23'
35
+ VersionChanged: '3.0'
36
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveContent
37
+
2
38
  # Supports --autocorrect
3
39
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechaveselector
4
40
  Capybara/RSpec/HaveSelector:
5
- Description: Use `have_css` or `have_xpath` instead of `have_selector`.
6
- Enabled: true # was pending
41
+ Description: Use CSS or XPath matchers instead of generic selector matchers.
42
+ Enabled: true
7
43
  DefaultSelector: css
8
44
  VersionAdded: '2.19'
45
+ VersionChanged: '3.0'
9
46
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveSelector
10
47
 
48
+ # Supports --autocorrect
49
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecmatchstyle
50
+ Capybara/RSpec/MatchStyle:
51
+ Description: Checks for usage of deprecated style methods in RSpec matchers.
52
+ Enabled: true
53
+ VersionAdded: '2.23'
54
+ VersionChanged: '3.0'
55
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/MatchStyle
56
+
57
+ # Supports --autocorrect
58
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcher
59
+ Capybara/RSpec/NegationMatcher:
60
+ Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
61
+ Enabled: true
62
+ VersionAdded: '2.14'
63
+ VersionChanged: '3.0'
64
+ EnforcedStyle: have_no
65
+ SupportedStyles:
66
+ - have_no
67
+ - not_to
68
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcher
69
+
70
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcheraftervisit
71
+ Capybara/RSpec/NegationMatcherAfterVisit:
72
+ Description: Do not allow negative matchers to be used immediately after `visit`.
73
+ Enabled: true
74
+ VersionAdded: '2.22'
75
+ VersionChanged: '3.0'
76
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcherAfterVisit
77
+
11
78
  # Supports --autocorrect
12
79
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecpredicatematcher
13
80
  Capybara/RSpec/PredicateMatcher:
14
81
  Description: Prefer using predicate matcher over using predicate method directly.
15
- Enabled: true # was pending
82
+ Enabled: true
16
83
  Strict: true
17
84
  EnforcedStyle: inflected
18
85
  AllowedExplicitMatchers: []
@@ -20,5 +87,25 @@ Capybara/RSpec/PredicateMatcher:
20
87
  - inflected
21
88
  - explicit
22
89
  VersionAdded: '2.19'
90
+ VersionChanged: '3.0'
23
91
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/PredicateMatcher
24
92
 
93
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecspecificmatcher
94
+ Capybara/RSpec/SpecificMatcher:
95
+ Description: Checks for there is a more specific matcher offered by Capybara.
96
+ Enabled: true
97
+ VersionAdded: '2.12'
98
+ VersionChanged: '3.0'
99
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/SpecificMatcher
100
+
101
+ # Supports --autocorrect
102
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecvisibilitymatcher
103
+ Capybara/RSpec/VisibilityMatcher:
104
+ Description: Checks for boolean visibility in Capybara RSpec matchers.
105
+ Enabled: true
106
+ SafeAutoCorrect: false
107
+ DefaultSelector: css
108
+ VersionAdded: '1.39'
109
+ VersionChanged: "<<next>>"
110
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/VisibilityMatcher
111
+
@@ -5,5 +5,5 @@ I18n/RailsI18n/DecorateString:
5
5
 
6
6
  # https://docs.rubocop.org/rubocop-i18n/cops_i18n_railsi18n.html#i18nrailsi18ndecoratestringformattingusinginterpolation
7
7
  I18n/RailsI18n/DecorateStringFormattingUsingInterpolation:
8
- Enabled: true # was false
8
+ Enabled: true
9
9
 
@@ -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: "#no-double-indent"
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: Indentation of when in a case/(when|in)/[else/]end.
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.53'
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: Indentation of comments.
142
+ Description: Checks the indentation of comments.
140
143
  Enabled: true
141
- AllowForAlignment: false
142
144
  VersionAdded: '0.49'
143
- VersionChanged: '1.24'
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
@@ -422,6 +428,7 @@ Layout/FirstArrayElementLineBreak:
422
428
  Description: Checks for a line break before the first element in a multi-line array.
423
429
  Enabled: true # was false
424
430
  VersionAdded: '0.49'
431
+ AllowImplicitArrayLiterals: false
425
432
  AllowMultilineFinalElement: false
426
433
 
427
434
  # Supports --autocorrect
@@ -483,9 +490,9 @@ Layout/FirstParameterIndentation:
483
490
  Layout/HashAlignment:
484
491
  Description: Align the elements of a hash literal if they span more than one line.
485
492
  Enabled: true
486
- AllowMultipleStyles: true
487
493
  VersionAdded: '0.49'
488
494
  VersionChanged: '1.16'
495
+ AllowMultipleStyles: true
489
496
  EnforcedHashRocketStyle: key
490
497
  SupportedHashRocketStyles:
491
498
  - key
@@ -508,8 +515,8 @@ Layout/HashAlignment:
508
515
  Layout/HeredocArgumentClosingParenthesis:
509
516
  Description: Checks for the placement of the closing parenthesis in a method call
510
517
  that passes a HEREDOC string as an argument.
511
- Enabled: true # was false
512
518
  StyleGuide: "#heredoc-argument-closing-parentheses"
519
+ Enabled: true # was false
513
520
  VersionAdded: '0.68'
514
521
 
515
522
  # Supports --autocorrect
@@ -557,6 +564,10 @@ Layout/IndentationWidth:
557
564
  Enabled: true
558
565
  VersionAdded: '0.49'
559
566
  Width: 2
567
+ EnforcedStyleAlignWith: start_of_line
568
+ SupportedStylesAlignWith:
569
+ - start_of_line
570
+ - relative_to_receiver
560
571
  AllowedPatterns: []
561
572
 
562
573
  # Supports --autocorrect
@@ -578,6 +589,7 @@ Layout/LeadingCommentSpace:
578
589
  AllowGemfileRubyComment: false
579
590
  AllowRBSInlineAnnotation: false
580
591
  AllowSteepAnnotation: false
592
+ AllowYARDCommentBlockSeparator: false
581
593
 
582
594
  # Supports --autocorrect
583
595
  # https://docs.rubocop.org/rubocop/cops_layout.html#layoutleadingemptylines
@@ -908,6 +920,7 @@ Layout/SpaceAroundOperators:
908
920
  StyleGuide: "#spaces-operators"
909
921
  Enabled: true
910
922
  VersionAdded: '0.49'
923
+ VersionChanged: '1.90'
911
924
  AllowForAlignment: true
912
925
  EnforcedStyleForExponentOperator: no_space
913
926
  SupportedStylesForExponentOperator:
@@ -924,6 +937,7 @@ Layout/SpaceBeforeBlockBraces:
924
937
  Description: Checks that the left block brace has or doesn't have space before it.
925
938
  Enabled: true
926
939
  VersionAdded: '0.49'
940
+ VersionChanged: '0.52'
927
941
  EnforcedStyle: space
928
942
  SupportedStyles:
929
943
  - space
@@ -932,7 +946,6 @@ Layout/SpaceBeforeBlockBraces:
932
946
  SupportedStylesForEmptyBraces:
933
947
  - space
934
948
  - no_space
935
- VersionChanged: '0.52'
936
949
 
937
950
  # Supports --autocorrect
938
951
  # https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforebrackets