1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2024-02-01 10:58:34 UTC using RuboCop version 1.56.4 .
3
+ # on 2024-07-09 14:33:36 UTC using RuboCop version 1.61.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 - [LH] -> Oct '23 - 355 files inspected, 642 offenses detected, 205 offenses autocorrectable
10
10
# TODO - [LH] -> Dec '23 - 350 files inspected, 595 offenses detected, 171 offenses autocorrectable
11
- # TODO - [LH] -> Feb '23 - 370 files inspected, 635 offenses detected, 166 offenses autocorrectable
12
-
13
- # Offense count: 10
14
- # This cop supports safe autocorrection (--autocorrect).
15
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
16
- # SupportedHashRocketStyles: key, separator, table
17
- # SupportedColonStyles: key, separator, table
18
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
19
- Layout/HashAlignment :
20
- Exclude :
21
- - ' lib/cucumber/cli/options.rb'
22
-
23
- # Offense count: 19
24
- # This cop supports safe autocorrection (--autocorrect).
25
- # Configuration parameters: AllowInHeredoc.
26
- Layout/TrailingWhitespace :
27
- Exclude :
28
- - ' lib/cucumber/multiline_argument/data_table.rb'
29
-
30
- # Offense count: 3
31
- # This cop supports safe autocorrection (--autocorrect).
32
- Lint/AmbiguousOperator :
33
- Exclude :
34
- - ' lib/cucumber/multiline_argument/data_table.rb'
35
- - ' lib/cucumber/running_test_case.rb'
36
- - ' spec/cucumber/formatter/spec_helper.rb'
11
+ # TODO - [LH] -> Feb '24 - 370 files inspected, 635 offenses detected, 166 offenses autocorrectable
12
+ # TODO - [LH] -> Jul '24 - 370 files inspected, 637 offenses detected, 97 offenses autocorrectable
37
13
38
14
# Offense count: 4
39
15
Lint/RescueException :
@@ -43,6 +19,13 @@ Lint/RescueException:
43
19
- ' lib/cucumber/glue/invoke_in_world.rb'
44
20
- ' lib/cucumber/glue/proto_world.rb'
45
21
22
+ # Offense count: 2
23
+ # This cop supports unsafe autocorrection (--autocorrect-all).
24
+ # Configuration parameters: AutoCorrect.
25
+ Lint/UselessMethodDefinition :
26
+ Exclude :
27
+ - ' lib/cucumber/glue/proto_world.rb'
28
+
46
29
# Offense count: 60
47
30
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
48
31
Metrics/AbcSize :
@@ -57,7 +40,7 @@ Metrics/BlockLength:
57
40
# Offense count: 13
58
41
# Configuration parameters: CountComments, CountAsOne.
59
42
Metrics/ClassLength :
60
- Max : 523
43
+ Max : 515
61
44
62
45
# Offense count: 8
63
46
# Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -67,9 +50,9 @@ Metrics/CyclomaticComplexity:
67
50
# Offense count: 74
68
51
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
69
52
Metrics/MethodLength :
70
- Max : 72
53
+ Max : 64
71
54
72
- # Offense count: 17
55
+ # Offense count: 16
73
56
# Configuration parameters: CountComments, CountAsOne.
74
57
Metrics/ModuleLength :
75
58
Max : 804
@@ -87,37 +70,14 @@ Naming/FileName:
87
70
Exclude :
88
71
- ' features/lib/step_definitions/iso-8859-1_steps.rb'
89
72
90
- # Offense count: 2
73
+ # Offense count: 1
91
74
# This cop supports unsafe autocorrection (--autocorrect-all).
92
75
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
93
76
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
94
77
Naming/MemoizedInstanceVariableName :
95
78
Exclude :
96
- - ' lib/cucumber/formatter/json.rb'
97
79
- ' lib/cucumber/multiline_argument/data_table.rb'
98
80
99
- # # Offense count: 14
100
- # # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
101
- # # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
102
- # Naming/MethodParameterName:
103
- # Exclude:
104
- # - 'lib/cucumber/cli/options.rb'
105
- # - 'lib/cucumber/formatter/ansicolor.rb'
106
- # - 'lib/cucumber/formatter/console.rb'
107
- # - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
108
- # - 'lib/cucumber/multiline_argument/data_table.rb'
109
-
110
- # Offense count: 8
111
- # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
112
- # SupportedStyles: snake_case, normalcase, non_integer
113
- # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
114
- Naming/VariableNumber :
115
- Exclude :
116
- - ' examples/i18n/bg/lib/calculator.rb'
117
- - ' examples/i18n/ru/lib/calculator.rb'
118
- - ' examples/i18n/uk/lib/calculator.rb'
119
- - ' examples/i18n/uz/lib/calculator.rb'
120
-
121
81
# Offense count: 2
122
82
RSpec/AnyInstance :
123
83
Exclude :
@@ -130,46 +90,24 @@ RSpec/Capybara/FeatureMethods:
130
90
Exclude :
131
91
- ' spec/cucumber/filters/activate_steps_spec.rb'
132
92
133
- # Offense count: 15
93
+ # Offense count: 5
134
94
# Configuration parameters: Prefixes, AllowedPatterns.
135
95
# Prefixes: when, with, without
136
96
RSpec/ContextWording :
137
97
Exclude :
138
- - ' spec/cucumber/cli/options_spec.rb'
139
- - ' spec/cucumber/cli/rerun_spec.rb'
140
- - ' spec/cucumber/configuration_spec.rb'
141
98
- ' spec/cucumber/filters/tag_limits_spec.rb'
142
99
- ' spec/cucumber/formatter/http_io_spec.rb'
143
100
- ' spec/cucumber/formatter/junit_spec.rb'
144
101
- ' spec/cucumber/formatter/publish_banner_printer_spec.rb'
145
- - ' spec/cucumber/glue/step_definition_spec.rb'
146
102
- ' spec/support/shared_context/http_server.rb'
147
103
148
- # Offense count: 8
149
- # This cop supports unsafe autocorrection (--autocorrect-all).
150
- # Configuration parameters: SkipBlocks, EnforcedStyle.
151
- # SupportedStyles: described_class, explicit
152
- RSpec/DescribedClass :
153
- Exclude :
154
- - ' spec/cucumber/cli/profile_loader_spec.rb'
155
- - ' spec/cucumber/formatter/json_spec.rb'
156
- - ' spec/cucumber/multiline_argument/data_table_spec.rb'
157
-
158
104
# Offense count: 2
159
105
# This cop supports unsafe autocorrection (--autocorrect-all).
160
106
RSpec/EmptyExampleGroup :
161
107
Exclude :
162
108
- ' spec/cucumber/filters/activate_steps_spec.rb'
163
109
- ' spec/cucumber/running_test_case_spec.rb'
164
110
165
- # Offense count: 4
166
- # This cop supports safe autocorrection (--autocorrect).
167
- RSpec/EmptyLineAfterFinalLet :
168
- Exclude :
169
- - ' spec/cucumber/cli/main_spec.rb'
170
- - ' spec/cucumber/configuration_spec.rb'
171
- - ' spec/cucumber/hooks_spec.rb'
172
-
173
111
# Offense count: 82
174
112
# Configuration parameters: CountAsOne.
175
113
RSpec/ExampleLength :
@@ -201,7 +139,7 @@ RSpec/ExpectOutput:
201
139
Exclude :
202
140
- ' spec/cucumber/formatter/interceptor_spec.rb'
203
141
204
- # Offense count: 62
142
+ # Offense count: 61
205
143
# This cop supports safe autocorrection (--autocorrect).
206
144
# Configuration parameters: EnforcedStyle.
207
145
# SupportedStyles: implicit, each, example
@@ -276,23 +214,6 @@ RSpec/RepeatedExampleGroupDescription:
276
214
Exclude :
277
215
- ' spec/cucumber/glue/proto_world_spec.rb'
278
216
279
- # Offense count: 31
280
- # This cop supports safe autocorrection (--autocorrect).
281
- # Configuration parameters: EnforcedStyle.
282
- # SupportedStyles: and_return, block
283
- RSpec/ReturnFromStub :
284
- Exclude :
285
- - ' spec/cucumber/cli/configuration_spec.rb'
286
- - ' spec/cucumber/cli/main_spec.rb'
287
- - ' spec/cucumber/cli/options_spec.rb'
288
- - ' spec/cucumber/cli/profile_loader_spec.rb'
289
- - ' spec/cucumber/cli/rerun_spec.rb'
290
- - ' spec/cucumber/configuration_spec.rb'
291
- - ' spec/cucumber/filters/tag_limits/verifier_spec.rb'
292
- - ' spec/cucumber/formatter/interceptor_spec.rb'
293
- - ' spec/cucumber/formatter/junit_spec.rb'
294
- - ' spec/cucumber/glue/registry_and_more_spec.rb'
295
-
296
217
# Offense count: 3
297
218
# This cop supports safe autocorrection (--autocorrect).
298
219
RSpec/ScatteredLet :
@@ -352,6 +273,23 @@ Style/GlobalVars:
352
273
- ' features/lib/support/env.rb'
353
274
- ' spec/cucumber/cli/options_spec.rb'
354
275
276
+ # Offense count: 1
277
+ # This cop supports unsafe autocorrection (--autocorrect-all).
278
+ # Configuration parameters: EnforcedStyle.
279
+ # SupportedStyles: literals, strict
280
+ Style/MutableConstant :
281
+ Exclude :
282
+ - ' lib/cucumber/formatter/unicode.rb'
283
+
284
+ # Offense count: 5
285
+ # This cop supports safe autocorrection (--autocorrect).
286
+ Style/RedundantFreeze :
287
+ Exclude :
288
+ - ' lib/cucumber/cli/options.rb'
289
+ - ' lib/cucumber/file_specs.rb'
290
+ - ' lib/cucumber/runtime.rb'
291
+ - ' lib/cucumber/term/ansicolor.rb'
292
+
355
293
# Offense count: 6
356
294
# This cop supports safe autocorrection (--autocorrect).
357
295
Style/StderrPuts :
0 commit comments