1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-10-03 17:06:00 UTC using RuboCop version 1.27.0.
3
+ # on 2023-10-06 11:04:10 UTC using RuboCop version 1.27.0.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
9
# TODO: Oct '23 -> 33 files inspected, 1004 offenses detected, 859 offenses auto-correctable
10
+ # TODO: Oct '23 (later) -> 33 files inspected, 344 offenses detected, 205 offenses auto-correctable
10
11
11
12
# Offense count: 1
12
13
# This cop supports safe auto-correction (--auto-correct).
@@ -16,96 +17,21 @@ Layout/AccessModifierIndentation:
16
17
Exclude :
17
18
- ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
18
19
19
- # Offense count: 23
20
- # This cop supports safe auto-correction (--auto-correct).
21
- Layout/EmptyLineAfterGuardClause :
22
- Exclude :
23
- - ' lib/cucumber/cucumber_expressions/argument.rb'
24
- - ' lib/cucumber/cucumber_expressions/ast.rb'
25
- - ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
26
- - ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
27
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
28
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
29
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
30
- - ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
31
- - ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
32
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
33
- - ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
34
-
35
- # Offense count: 2
36
- # This cop supports safe auto-correction (--auto-correct).
37
- Layout/EmptyLineAfterMagicComment :
38
- Exclude :
39
- - ' Gemfile'
40
- - ' Rakefile'
41
-
42
- # Offense count: 1
43
- # This cop supports safe auto-correction (--auto-correct).
44
- # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
45
- Layout/EmptyLineBetweenDefs :
46
- Exclude :
47
- - ' lib/cucumber/cucumber_expressions/ast.rb'
48
-
49
20
# Offense count: 2
50
21
# This cop supports safe auto-correction (--auto-correct).
51
- Layout/EmptyLines :
52
- Exclude :
53
- - ' lib/cucumber/cucumber_expressions/ast.rb'
54
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
55
-
56
- # Offense count: 2
57
- # This cop supports safe auto-correction (--auto-correct).
58
- # Configuration parameters: EnforcedStyle.
59
- # SupportedStyles: empty_lines, no_empty_lines
60
- Layout/EmptyLinesAroundBlockBody :
61
- Exclude :
62
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
63
- - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
64
-
65
- # Offense count: 4
66
- # This cop supports safe auto-correction (--auto-correct).
67
- # Configuration parameters: EnforcedStyle.
68
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
69
- Layout/EmptyLinesAroundClassBody :
70
- Exclude :
71
- - ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
72
- - ' lib/cucumber/cucumber_expressions/errors.rb'
73
- - ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
74
- - ' lib/cucumber/cucumber_expressions/regular_expression.rb'
75
-
76
- # Offense count: 1
77
- # This cop supports safe auto-correction (--auto-correct).
78
- # Configuration parameters: EnforcedStyle.
79
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
80
- Layout/EmptyLinesAroundModuleBody :
81
- Exclude :
82
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
83
-
84
- # Offense count: 1
85
- # This cop supports safe auto-correction (--auto-correct).
86
- # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
87
- Layout/ExtraSpacing :
88
- Exclude :
89
- - ' cucumber-cucumber-expressions.gemspec'
90
-
91
- # Offense count: 4
92
- # This cop supports safe auto-correction (--auto-correct).
93
22
# Configuration parameters: EnforcedStyle, IndentationWidth.
94
23
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
95
24
Layout/FirstArrayElementIndentation :
96
25
Exclude :
97
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
98
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
99
26
- ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
100
27
101
- # Offense count: 3
28
+ # Offense count: 2
102
29
# This cop supports safe auto-correction (--auto-correct).
103
30
# Configuration parameters: EnforcedStyle, IndentationWidth.
104
31
# SupportedStyles: special_inside_parentheses, consistent, align_braces
105
32
Layout/FirstHashElementIndentation :
106
33
Exclude :
107
34
- ' cucumber-cucumber-expressions.gemspec'
108
- - ' lib/cucumber/cucumber_expressions/ast.rb'
109
35
110
36
# Offense count: 4
111
37
# This cop supports safe auto-correction (--auto-correct).
@@ -117,12 +43,6 @@ Layout/HashAlignment:
117
43
Exclude :
118
44
- ' cucumber-cucumber-expressions.gemspec'
119
45
120
- # Offense count: 2
121
- # This cop supports safe auto-correction (--auto-correct).
122
- Layout/HeredocIndentation :
123
- Exclude :
124
- - ' lib/cucumber/cucumber_expressions/errors.rb'
125
-
126
46
# Offense count: 2
127
47
# This cop supports safe auto-correction (--auto-correct).
128
48
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
@@ -146,43 +66,15 @@ Layout/MultilineMethodCallIndentation:
146
66
Exclude :
147
67
- ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
148
68
149
- # Offense count: 2
150
- # This cop supports safe auto-correction (--auto-correct).
151
- # Configuration parameters: EnforcedStyle.
152
- # SupportedStyles: space, no_space
153
- Layout/SpaceAroundEqualsInParameterDefault :
154
- Exclude :
155
- - ' lib/cucumber/cucumber_expressions/argument.rb'
156
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
157
-
158
- # Offense count: 5
69
+ # Offense count: 4
159
70
# This cop supports safe auto-correction (--auto-correct).
160
71
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
161
72
# SupportedStylesForExponentOperator: space, no_space
162
73
Layout/SpaceAroundOperators :
163
74
Exclude :
164
- - ' cucumber-cucumber-expressions.gemspec'
165
75
- ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
166
76
167
- # Offense count: 2
168
- # This cop supports safe auto-correction (--auto-correct).
169
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
170
- # SupportedStyles: space, no_space
171
- # SupportedStylesForEmptyBraces: space, no_space
172
- Layout/SpaceBeforeBlockBraces :
173
- Exclude :
174
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb'
175
- - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
176
-
177
- # Offense count: 2
178
- # This cop supports safe auto-correction (--auto-correct).
179
- # Configuration parameters: EnforcedStyle.
180
- # SupportedStyles: require_no_space, require_space
181
- Layout/SpaceInLambdaLiteral :
182
- Exclude :
183
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
184
-
185
- # Offense count: 58
77
+ # Offense count: 57
186
78
# This cop supports safe auto-correction (--auto-correct).
187
79
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
188
80
# SupportedStyles: space, no_space
@@ -191,7 +83,6 @@ Layout/SpaceInsideBlockBraces:
191
83
Exclude :
192
84
- ' cucumber-cucumber-expressions.gemspec'
193
85
- ' lib/cucumber/cucumber_expressions/group_builder.rb'
194
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
195
86
- ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
196
87
- ' lib/cucumber/cucumber_expressions/regular_expression.rb'
197
88
- ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
@@ -202,22 +93,6 @@ Layout/SpaceInsideBlockBraces:
202
93
- ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
203
94
- ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
204
95
205
- # Offense count: 24
206
- # This cop supports safe auto-correction (--auto-correct).
207
- # Configuration parameters: EnforcedStyle.
208
- # SupportedStyles: space, compact, no_space
209
- Layout/SpaceInsideParens :
210
- Exclude :
211
- - ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
212
-
213
- # Offense count: 1
214
- # This cop supports safe auto-correction (--auto-correct).
215
- # Configuration parameters: EnforcedStyle.
216
- # SupportedStyles: final_newline, final_blank_line
217
- Layout/TrailingEmptyLines :
218
- Exclude :
219
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
220
-
221
96
# Offense count: 1
222
97
# This cop supports safe auto-correction (--auto-correct).
223
98
Lint/AmbiguousOperatorPrecedence :
@@ -299,7 +174,7 @@ Metrics/BlockNesting:
299
174
# Offense count: 1
300
175
# Configuration parameters: CountComments, CountAsOne.
301
176
Metrics/ClassLength :
302
- Max : 151
177
+ Max : 141
303
178
304
179
# Offense count: 7
305
180
# Configuration parameters: IgnoredMethods.
@@ -309,7 +184,7 @@ Metrics/CyclomaticComplexity:
309
184
# Offense count: 20
310
185
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
311
186
Metrics/MethodLength :
312
- Max : 71
187
+ Max : 61
313
188
314
189
# Offense count: 4
315
190
# Configuration parameters: CountComments, CountAsOne.
@@ -379,7 +254,7 @@ Style/AccessModifierDeclarations:
379
254
Exclude :
380
255
- ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
381
256
382
- # Offense count: 7
257
+ # Offense count: 5
383
258
# This cop supports safe auto-correction (--auto-correct).
384
259
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
385
260
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
@@ -389,8 +264,6 @@ Style/AccessModifierDeclarations:
389
264
Style/BlockDelimiters :
390
265
Exclude :
391
266
- ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
392
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
393
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
394
267
- ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
395
268
- ' spec/cucumber/cucumber_expressions/cucumber_expression_transformation_spec.rb'
396
269
- ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
@@ -414,11 +287,10 @@ Style/EmptyLiteral:
414
287
Exclude :
415
288
- ' lib/cucumber/cucumber_expressions/ast.rb'
416
289
417
- # Offense count: 2
290
+ # Offense count: 1
418
291
# This cop supports safe auto-correction (--auto-correct).
419
292
Style/Encoding :
420
293
Exclude :
421
- - ' Rakefile'
422
294
- ' cucumber-cucumber-expressions.gemspec'
423
295
424
296
# Offense count: 1
0 commit comments