1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-10-06 11:04:10 UTC using RuboCop version 1.27.0.
3
+ # on 2023-11-27 17:52:56 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
10
# TODO: Oct '23 (later) -> 33 files inspected, 344 offenses detected, 205 offenses auto-correctable
11
-
12
- # Offense count: 1
13
- # This cop supports safe auto-correction (--auto-correct).
14
- # Configuration parameters: EnforcedStyle, IndentationWidth.
15
- # SupportedStyles: outdent, indent
16
- Layout/AccessModifierIndentation :
17
- Exclude :
18
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
11
+ # TODO: Nov '23 -> 33 files inspected, 399 offenses detected, 192 offenses auto-correctable
19
12
20
13
# Offense count: 2
21
14
# This cop supports safe auto-correction (--auto-correct).
22
- # Configuration parameters: EnforcedStyle, IndentationWidth.
15
+ # Configuration parameters: IndentationWidth.
23
16
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
24
17
Layout/FirstArrayElementIndentation :
25
- Exclude :
26
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
27
-
28
- # Offense count: 2
29
- # This cop supports safe auto-correction (--auto-correct).
30
- # Configuration parameters: EnforcedStyle, IndentationWidth.
31
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
32
- Layout/FirstHashElementIndentation :
33
- Exclude :
34
- - ' cucumber-cucumber-expressions.gemspec'
35
-
36
- # Offense count: 4
37
- # This cop supports safe auto-correction (--auto-correct).
38
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
39
- # SupportedHashRocketStyles: key, separator, table
40
- # SupportedColonStyles: key, separator, table
41
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
42
- Layout/HashAlignment :
43
- Exclude :
44
- - ' cucumber-cucumber-expressions.gemspec'
45
-
46
- # Offense count: 2
47
- # This cop supports safe auto-correction (--auto-correct).
48
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
49
- # URISchemes: http, https
50
- Layout/LineLength :
51
- Max : 252
52
-
53
- # Offense count: 1
54
- # This cop supports safe auto-correction (--auto-correct).
55
- # Configuration parameters: EnforcedStyle.
56
- # SupportedStyles: symmetrical, new_line, same_line
57
- Layout/MultilineMethodCallBraceLayout :
58
- Exclude :
59
- - ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
60
-
61
- # Offense count: 3
62
- # This cop supports safe auto-correction (--auto-correct).
63
- # Configuration parameters: EnforcedStyle, IndentationWidth.
64
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
65
- Layout/MultilineMethodCallIndentation :
66
- Exclude :
67
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
68
-
69
- # Offense count: 4
70
- # This cop supports safe auto-correction (--auto-correct).
71
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
72
- # SupportedStylesForExponentOperator: space, no_space
73
- Layout/SpaceAroundOperators :
74
- Exclude :
75
- - ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
76
-
77
- # Offense count: 57
78
- # This cop supports safe auto-correction (--auto-correct).
79
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
80
- # SupportedStyles: space, no_space
81
- # SupportedStylesForEmptyBraces: space, no_space
82
- Layout/SpaceInsideBlockBraces :
83
- Exclude :
84
- - ' cucumber-cucumber-expressions.gemspec'
85
- - ' lib/cucumber/cucumber_expressions/group_builder.rb'
86
- - ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
87
- - ' lib/cucumber/cucumber_expressions/regular_expression.rb'
88
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
89
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
90
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb'
91
- - ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
92
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
93
- - ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
94
- - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
18
+ EnforcedStyle : consistent
95
19
96
20
# Offense count: 1
97
21
# This cop supports safe auto-correction (--auto-correct).
@@ -114,47 +38,27 @@ Lint/DuplicateBranch:
114
38
- ' lib/cucumber/cucumber_expressions/ast.rb'
115
39
- ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
116
40
117
- # Offense count: 10
41
+ # Offense count: 5
118
42
# Configuration parameters: AllowComments.
119
43
Lint/EmptyClass :
120
44
Exclude :
121
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
122
45
- ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
123
46
- ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
124
47
- ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
125
48
126
- # Offense count: 1
127
- Lint/MixedRegexpCaptureTypes :
128
- Exclude :
129
- - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
130
-
131
49
# Offense count: 1
132
50
# This cop supports unsafe auto-correction (--auto-correct-all).
133
51
Lint/NonDeterministicRequireOrder :
134
52
Exclude :
135
53
- ' Rakefile'
136
54
137
- # Offense count: 1
138
- Lint/NonLocalExitFromIterator :
139
- Exclude :
140
- - ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
141
-
142
- # Offense count: 7
55
+ # Offense count: 5
143
56
# Configuration parameters: AllowKeywordBlockArguments.
144
57
Lint/UnderscorePrefixedVariableName :
145
58
Exclude :
146
- - ' lib/cucumber/cucumber_expressions/ast.rb'
147
59
- ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
148
60
- ' lib/cucumber/cucumber_expressions/group.rb'
149
61
150
- # Offense count: 14
151
- # This cop supports safe auto-correction (--auto-correct).
152
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
153
- Lint/UnusedBlockArgument :
154
- Exclude :
155
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
156
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
157
-
158
62
# Offense count: 10
159
63
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
160
64
Metrics/AbcSize :
@@ -201,21 +105,6 @@ Metrics/ParameterLists:
201
105
Metrics/PerceivedComplexity :
202
106
Max : 17
203
107
204
- # Offense count: 10
205
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
206
- Naming/BlockParameterName :
207
- Exclude :
208
- - ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
209
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
210
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
211
-
212
- # Offense count: 2
213
- # Configuration parameters: ForbiddenDelimiters.
214
- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
215
- Naming/HeredocDelimiterNaming :
216
- Exclude :
217
- - ' lib/cucumber/cucumber_expressions/errors.rb'
218
-
219
108
# Offense count: 7
220
109
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
221
110
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
@@ -238,14 +127,59 @@ Naming/PredicateName:
238
127
- ' lib/cucumber/cucumber_expressions/parameter_type.rb'
239
128
- ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
240
129
241
- # Offense count: 20
242
- # Configuration parameters: EnforcedStyle, AllowedIdentifiers.
243
- # SupportedStyles: snake_case, camelCase
244
- Naming/VariableName :
130
+ # Offense count: 3
131
+ # This cop supports safe auto-correction (--auto-correct).
132
+ Performance/RedundantBlockCall :
245
133
Exclude :
246
134
- ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
247
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
248
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
135
+
136
+ # Offense count: 2
137
+ # Configuration parameters: Prefixes.
138
+ # Prefixes: when, with, without
139
+ RSpec/ContextWording :
140
+ Exclude :
141
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
142
+
143
+ # Offense count: 29
144
+ # Configuration parameters: Max.
145
+ RSpec/ExampleLength :
146
+ Exclude :
147
+ - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_spec.rb'
148
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
149
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_parser_spec.rb'
150
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
151
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb'
152
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_transformation_spec.rb'
153
+ - ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
154
+ - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
155
+ - ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
156
+ - ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
157
+ - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
158
+
159
+ # Offense count: 3
160
+ RSpec/LeakyConstantDeclaration :
161
+ Exclude :
162
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
163
+ - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
164
+
165
+ # Offense count: 34
166
+ RSpec/MultipleExpectations :
167
+ Max : 30
168
+
169
+ # Offense count: 1
170
+ # Configuration parameters: AllowSubject.
171
+ RSpec/MultipleMemoizedHelpers :
172
+ Max : 6
173
+
174
+ # Offense count: 2
175
+ RSpec/RepeatedDescription :
176
+ Exclude :
177
+ - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
178
+
179
+ # Offense count: 2
180
+ RSpec/RepeatedExample :
181
+ Exclude :
182
+ - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
249
183
250
184
# Offense count: 2
251
185
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
@@ -254,7 +188,7 @@ Style/AccessModifierDeclarations:
254
188
Exclude :
255
189
- ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
256
190
257
- # Offense count: 5
191
+ # Offense count: 4
258
192
# This cop supports safe auto-correction (--auto-correct).
259
193
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
260
194
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
@@ -267,7 +201,6 @@ Style/BlockDelimiters:
267
201
- ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
268
202
- ' spec/cucumber/cucumber_expressions/cucumber_expression_transformation_spec.rb'
269
203
- ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
270
- - ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
271
204
272
205
# Offense count: 1
273
206
# This cop supports unsafe auto-correction (--auto-correct-all).
@@ -378,12 +311,6 @@ Style/ParallelAssignment:
378
311
- ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
379
312
- ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
380
313
381
- # Offense count: 1
382
- # This cop supports safe auto-correction (--auto-correct).
383
- Style/PerlBackrefs :
384
- Exclude :
385
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
386
-
387
314
# Offense count: 1
388
315
# This cop supports unsafe auto-correction (--auto-correct-all).
389
316
# Configuration parameters: EnforcedStyle.
@@ -473,7 +400,7 @@ Style/SymbolProc:
473
400
- ' lib/cucumber/cucumber_expressions/ast.rb'
474
401
- ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
475
402
- ' lib/cucumber/cucumber_expressions/errors.rb'
476
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test .rb'
403
+ - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_spec .rb'
477
404
- ' spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb'
478
405
- ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
479
406
@@ -484,7 +411,7 @@ Style/SymbolProc:
484
411
Style/TrailingCommaInArrayLiteral :
485
412
Exclude :
486
413
- ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
487
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test .rb'
414
+ - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_spec .rb'
488
415
489
416
# Offense count: 1
490
417
# This cop supports safe auto-correction (--auto-correct).
@@ -494,14 +421,6 @@ Style/TrailingCommaInHashLiteral:
494
421
Exclude :
495
422
- ' cucumber-cucumber-expressions.gemspec'
496
423
497
- # Offense count: 9
498
- # This cop supports safe auto-correction (--auto-correct).
499
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
500
- # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
501
- Style/TrivialAccessors :
502
- Exclude :
503
- - ' lib/cucumber/cucumber_expressions/ast.rb'
504
-
505
424
# Offense count: 1
506
425
# This cop supports safe auto-correction (--auto-correct).
507
426
Style/WhileUntilDo :
0 commit comments