1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-10-03 16:26:01 UTC using RuboCop version 1.27.0.
3
+ # on 2023-10-03 17:06:00 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
@@ -16,22 +16,7 @@ Layout/AccessModifierIndentation:
16
16
Exclude :
17
17
- ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
18
18
19
- # Offense count: 45
20
- # This cop supports safe auto-correction (--auto-correct).
21
- Layout/ClosingParenthesisIndentation :
22
- Exclude :
23
- - ' lib/cucumber/cucumber_expressions/argument.rb'
24
- - ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
25
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
26
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_tokenizer.rb'
27
- - ' lib/cucumber/cucumber_expressions/errors.rb'
28
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
29
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
30
- - ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
31
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
32
- - ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
33
-
34
- # Offense count: 25
19
+ # Offense count: 23
35
20
# This cop supports safe auto-correction (--auto-correct).
36
21
Layout/EmptyLineAfterGuardClause :
37
22
Exclude :
@@ -40,12 +25,10 @@ Layout/EmptyLineAfterGuardClause:
40
25
- ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
41
26
- ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
42
27
- ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
43
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_tokenizer.rb'
44
28
- ' lib/cucumber/cucumber_expressions/parameter_type.rb'
45
29
- ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
46
30
- ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
47
31
- ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
48
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
49
32
- ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
50
33
- ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
51
34
@@ -56,20 +39,18 @@ Layout/EmptyLineAfterMagicComment:
56
39
- ' Gemfile'
57
40
- ' Rakefile'
58
41
59
- # Offense count: 2
42
+ # Offense count: 1
60
43
# This cop supports safe auto-correction (--auto-correct).
61
44
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
62
45
Layout/EmptyLineBetweenDefs :
63
46
Exclude :
64
47
- ' lib/cucumber/cucumber_expressions/ast.rb'
65
- - ' lib/cucumber/cucumber_expressions/errors.rb'
66
48
67
- # Offense count: 3
49
+ # Offense count: 2
68
50
# This cop supports safe auto-correction (--auto-correct).
69
51
Layout/EmptyLines :
70
52
Exclude :
71
53
- ' lib/cucumber/cucumber_expressions/ast.rb'
72
- - ' lib/cucumber/cucumber_expressions/errors.rb'
73
54
- ' lib/cucumber/cucumber_expressions/parameter_type.rb'
74
55
75
56
# Offense count: 2
@@ -92,15 +73,13 @@ Layout/EmptyLinesAroundClassBody:
92
73
- ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
93
74
- ' lib/cucumber/cucumber_expressions/regular_expression.rb'
94
75
95
- # Offense count: 4
76
+ # Offense count: 1
96
77
# This cop supports safe auto-correction (--auto-correct).
97
78
# Configuration parameters: EnforcedStyle.
98
79
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
99
80
Layout/EmptyLinesAroundModuleBody :
100
81
Exclude :
101
- - ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
102
82
- ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
103
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
104
83
105
84
# Offense count: 1
106
85
# This cop supports safe auto-correction (--auto-correct).
@@ -109,23 +88,6 @@ Layout/ExtraSpacing:
109
88
Exclude :
110
89
- ' cucumber-cucumber-expressions.gemspec'
111
90
112
- # Offense count: 47
113
- # This cop supports safe auto-correction (--auto-correct).
114
- # Configuration parameters: EnforcedStyle, IndentationWidth.
115
- # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
116
- Layout/FirstArgumentIndentation :
117
- Exclude :
118
- - ' lib/cucumber/cucumber_expressions/argument.rb'
119
- - ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
120
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
121
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_tokenizer.rb'
122
- - ' lib/cucumber/cucumber_expressions/errors.rb'
123
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
124
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
125
- - ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
126
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
127
- - ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
128
-
129
91
# Offense count: 4
130
92
# This cop supports safe auto-correction (--auto-correct).
131
93
# Configuration parameters: EnforcedStyle, IndentationWidth.
@@ -145,14 +107,6 @@ Layout/FirstHashElementIndentation:
145
107
- ' cucumber-cucumber-expressions.gemspec'
146
108
- ' lib/cucumber/cucumber_expressions/ast.rb'
147
109
148
- # Offense count: 1
149
- # This cop supports safe auto-correction (--auto-correct).
150
- # Configuration parameters: EnforcedStyle, IndentationWidth.
151
- # SupportedStyles: consistent, align_parentheses
152
- Layout/FirstParameterIndentation :
153
- Exclude :
154
- - ' lib/cucumber/cucumber_expressions/errors.rb'
155
-
156
110
# Offense count: 4
157
111
# This cop supports safe auto-correction (--auto-correct).
158
112
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
@@ -176,15 +130,13 @@ Layout/HeredocIndentation:
176
130
Layout/LineLength :
177
131
Max : 252
178
132
179
- # Offense count: 12
133
+ # Offense count: 1
180
134
# This cop supports safe auto-correction (--auto-correct).
181
135
# Configuration parameters: EnforcedStyle.
182
136
# SupportedStyles: symmetrical, new_line, same_line
183
137
Layout/MultilineMethodCallBraceLayout :
184
138
Exclude :
185
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
186
139
- ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
187
- - ' spec/cucumber/cucumber_expressions/regular_expression_spec.rb'
188
140
189
141
# Offense count: 3
190
142
# This cop supports safe auto-correction (--auto-correct).
@@ -194,15 +146,6 @@ Layout/MultilineMethodCallIndentation:
194
146
Exclude :
195
147
- ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
196
148
197
- # Offense count: 2
198
- # This cop supports safe auto-correction (--auto-correct).
199
- # Configuration parameters: EnforcedStyle, IndentationWidth.
200
- # SupportedStyles: aligned, indented
201
- Layout/MultilineOperationIndentation :
202
- Exclude :
203
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_tokenizer.rb'
204
- - ' lib/cucumber/cucumber_expressions/errors.rb'
205
-
206
149
# Offense count: 2
207
150
# This cop supports safe auto-correction (--auto-correct).
208
151
# Configuration parameters: EnforcedStyle.
@@ -239,7 +182,7 @@ Layout/SpaceInLambdaLiteral:
239
182
Exclude :
240
183
- ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
241
184
242
- # Offense count: 101
185
+ # Offense count: 58
243
186
# This cop supports safe auto-correction (--auto-correct).
244
187
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
245
188
# SupportedStyles: space, no_space
@@ -259,7 +202,7 @@ Layout/SpaceInsideBlockBraces:
259
202
- ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
260
203
- ' spec/cucumber/cucumber_expressions/tree_regexp_spec.rb'
261
204
262
- # Offense count: 25
205
+ # Offense count: 24
263
206
# This cop supports safe auto-correction (--auto-correct).
264
207
# Configuration parameters: EnforcedStyle.
265
208
# SupportedStyles: space, compact, no_space
@@ -342,11 +285,11 @@ Lint/UnusedBlockArgument:
342
285
Metrics/AbcSize :
343
286
Max : 59
344
287
345
- # Offense count: 12
288
+ # Offense count: 11
346
289
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
347
290
# IgnoredMethods: refine
348
291
Metrics/BlockLength :
349
- Max : 187
292
+ Max : 183
350
293
351
294
# Offense count: 1
352
295
# Configuration parameters: CountBlocks.
@@ -356,22 +299,22 @@ Metrics/BlockNesting:
356
299
# Offense count: 1
357
300
# Configuration parameters: CountComments, CountAsOne.
358
301
Metrics/ClassLength :
359
- Max : 165
302
+ Max : 151
360
303
361
304
# Offense count: 7
362
305
# Configuration parameters: IgnoredMethods.
363
306
Metrics/CyclomaticComplexity :
364
307
Max : 15
365
308
366
- # Offense count: 22
309
+ # Offense count: 20
367
310
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
368
311
Metrics/MethodLength :
369
- Max : 77
312
+ Max : 71
370
313
371
314
# Offense count: 4
372
315
# Configuration parameters: CountComments, CountAsOne.
373
316
Metrics/ModuleLength :
374
- Max : 188
317
+ Max : 184
375
318
376
319
# Offense count: 1
377
320
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
@@ -501,83 +444,26 @@ Style/FormatString:
501
444
Exclude :
502
445
- ' lib/cucumber/cucumber_expressions/generated_expression.rb'
503
446
504
- # Offense count: 32
505
- # This cop supports safe auto-correction (--auto-correct).
506
- # Configuration parameters: EnforcedStyle.
507
- # SupportedStyles: always, always_true, never
508
- Style/FrozenStringLiteralComment :
509
- Enabled : false
510
-
511
- # Offense count: 3
447
+ # Offense count: 2
512
448
# Configuration parameters: MinBodyLength.
513
449
Style/GuardClause :
514
450
Exclude :
515
451
- ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
516
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
517
452
- ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
518
453
519
- # Offense count: 27
520
- # This cop supports safe auto-correction (--auto-correct).
521
- Style/IfUnlessModifier :
522
- Exclude :
523
- - ' lib/cucumber/cucumber_expressions/ast.rb'
524
- - ' lib/cucumber/cucumber_expressions/combinatorial_generated_expression_factory.rb'
525
- - ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
526
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb'
527
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
528
- - ' lib/cucumber/cucumber_expressions/cucumber_expression_tokenizer.rb'
529
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
530
- - ' lib/cucumber/cucumber_expressions/parameter_type_matcher.rb'
531
- - ' lib/cucumber/cucumber_expressions/tree_regexp.rb'
532
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
533
-
534
454
# Offense count: 1
535
455
# This cop supports unsafe auto-correction (--auto-correct-all).
536
456
# Configuration parameters: InverseMethods, InverseBlocks.
537
457
Style/InverseMethods :
538
458
Exclude :
539
459
- ' lib/cucumber/cucumber_expressions/parameter_type.rb'
540
460
541
- # Offense count: 46
542
- # This cop supports safe auto-correction (--auto-correct).
543
- # Configuration parameters: EnforcedStyle.
544
- # SupportedStyles: line_count_dependent, lambda, literal
545
- Style/Lambda :
546
- Exclude :
547
- - ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
548
- - ' lib/cucumber/cucumber_expressions/regular_expression.rb'
549
- - ' spec/cucumber/cucumber_expressions/combinatorial_generated_expression_factory_test.rb'
550
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb'
551
- - ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
552
- - ' spec/cucumber/cucumber_expressions/custom_parameter_type_spec.rb'
553
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
554
- - ' spec/cucumber/cucumber_expressions/parameter_type_spec.rb'
555
-
556
- # Offense count: 21
557
- # This cop supports safe auto-correction (--auto-correct).
558
- Style/LineEndConcatenation :
559
- Exclude :
560
- - ' lib/cucumber/cucumber_expressions/errors.rb'
561
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
562
-
563
461
# Offense count: 1
564
462
# This cop supports safe auto-correction (--auto-correct).
565
463
Style/MultilineTernaryOperator :
566
464
Exclude :
567
465
- ' spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb'
568
466
569
- # Offense count: 30
570
- # This cop supports safe auto-correction (--auto-correct).
571
- # Configuration parameters: EnforcedStyle.
572
- # SupportedStyles: literals, strict
573
- Style/MutableConstant :
574
- Exclude :
575
- - ' lib/cucumber/cucumber_expressions/ast.rb'
576
- - ' lib/cucumber/cucumber_expressions/cucumber_expression.rb'
577
- - ' lib/cucumber/cucumber_expressions/parameter_type.rb'
578
- - ' lib/cucumber/cucumber_expressions/parameter_type_registry.rb'
579
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
580
-
581
467
# Offense count: 1
582
468
# This cop supports safe auto-correction (--auto-correct).
583
469
Style/NegatedIfElseCondition :
@@ -698,21 +584,13 @@ Style/Semicolon:
698
584
Style/SpecialGlobalVars :
699
585
EnforcedStyle : use_perl_names
700
586
701
- # Offense count: 5
587
+ # Offense count: 3
702
588
# This cop supports unsafe auto-correction (--auto-correct-all).
703
589
# Configuration parameters: Mode.
704
590
Style/StringConcatenation :
705
591
Exclude :
706
592
- ' lib/cucumber/cucumber_expressions/cucumber_expression_parser.rb'
707
593
- ' lib/cucumber/cucumber_expressions/errors.rb'
708
- - ' spec/cucumber/cucumber_expressions/parameter_type_registry_spec.rb'
709
-
710
- # Offense count: 264
711
- # This cop supports safe auto-correction (--auto-correct).
712
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
713
- # SupportedStyles: single_quotes, double_quotes
714
- Style/StringLiterals :
715
- Enabled : false
716
594
717
595
# Offense count: 7
718
596
# This cop supports unsafe auto-correction (--auto-correct-all).
0 commit comments