1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-09-06 13:00:58 UTC using RuboCop version 1.56.2.
3
+ # on 2023-09-07 08:42:40 UTC using RuboCop version 1.56.2.
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
@@ -41,6 +41,12 @@ Lint/SuppressedException:
41
41
Exclude :
42
42
- ' lib/cucumber/rake/task.rb'
43
43
44
+ # Offense count: 1
45
+ # This cop supports unsafe autocorrection (--autocorrect-all).
46
+ Lint/UselessAssignment :
47
+ Exclude :
48
+ - ' spec/cucumber/formatter/interceptor_spec.rb'
49
+
44
50
# Offense count: 9
45
51
# Configuration parameters: AllowedMethods, AllowedPatterns.
46
52
Metrics/CyclomaticComplexity :
@@ -64,14 +70,6 @@ RSpec/AnyInstance:
64
70
Exclude :
65
71
- ' spec/cucumber/cli/main_spec.rb'
66
72
67
- # Offense count: 5
68
- # This cop supports unsafe autocorrection (--autocorrect-all).
69
- RSpec/BeEql :
70
- Exclude :
71
- - ' spec/cucumber/cli/configuration_spec.rb'
72
- - ' spec/cucumber/cli/options_spec.rb'
73
- - ' spec/cucumber/glue/registry_and_more_spec.rb'
74
-
75
73
# Offense count: 9
76
74
# This cop supports safe autocorrection (--autocorrect).
77
75
# Configuration parameters: EnabledMethods.
@@ -96,12 +94,15 @@ RSpec/DescribeClass:
96
94
- ' **/spec/views/**/*'
97
95
- ' spec/cck/cck_spec.rb'
98
96
99
- # Offense count: 167
97
+ # Offense count: 18
100
98
# This cop supports unsafe autocorrection (--autocorrect-all).
101
99
# Configuration parameters: SkipBlocks, EnforcedStyle.
102
100
# SupportedStyles: described_class, explicit
103
101
RSpec/DescribedClass :
104
- Enabled : false
102
+ Exclude :
103
+ - ' spec/cucumber/formatter/interceptor_spec.rb'
104
+ - ' spec/cucumber/multiline_argument/data_table_spec.rb'
105
+ - ' spec/cucumber/runtime/support_code_spec.rb'
105
106
106
107
# Offense count: 2
107
108
# This cop supports unsafe autocorrection (--autocorrect-all).
@@ -110,11 +111,27 @@ RSpec/EmptyExampleGroup:
110
111
- ' spec/cucumber/filters/activate_steps_spec.rb'
111
112
- ' spec/cucumber/running_test_case_spec.rb'
112
113
114
+ # Offense count: 4
115
+ # This cop supports safe autocorrection (--autocorrect).
116
+ RSpec/EmptyLineAfterFinalLet :
117
+ Exclude :
118
+ - ' spec/cucumber/cli/main_spec.rb'
119
+ - ' spec/cucumber/configuration_spec.rb'
120
+ - ' spec/cucumber/hooks_spec.rb'
121
+
113
122
# Offense count: 150
114
123
# Configuration parameters: CountAsOne.
115
124
RSpec/ExampleLength :
116
125
Max : 58
117
126
127
+ # Offense count: 4
128
+ # This cop supports safe autocorrection (--autocorrect).
129
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
130
+ # DisallowedExamples: works
131
+ RSpec/ExampleWording :
132
+ Exclude :
133
+ - ' spec/cucumber/multiline_argument/data_table_spec.rb'
134
+
118
135
# Offense count: 2
119
136
# This cop supports safe autocorrection (--autocorrect).
120
137
RSpec/ExpectActual :
@@ -129,18 +146,24 @@ RSpec/ExpectInHook:
129
146
- ' spec/cucumber/multiline_argument/data_table_spec.rb'
130
147
- ' spec/cucumber/runtime/meta_message_builder_spec.rb'
131
148
132
- # Offense count: 6
149
+ # Offense count: 9
133
150
RSpec/ExpectOutput :
134
151
Exclude :
135
152
- ' spec/cucumber/formatter/interceptor_spec.rb'
136
153
137
- # Offense count: 68
154
+ # Offense count: 71
138
155
# This cop supports safe autocorrection (--autocorrect).
139
156
# Configuration parameters: EnforcedStyle.
140
157
# SupportedStyles: implicit, each, example
141
158
RSpec/HookArgument :
142
159
Enabled : false
143
160
161
+ # Offense count: 4
162
+ # This cop supports safe autocorrection (--autocorrect).
163
+ RSpec/HooksBeforeExamples :
164
+ Exclude :
165
+ - ' spec/cucumber/formatter/interceptor_spec.rb'
166
+
144
167
# Offense count: 15
145
168
# Configuration parameters: AssignmentOnly.
146
169
RSpec/InstanceVariable :
@@ -188,6 +211,12 @@ RSpec/MultipleExpectations:
188
211
RSpec/MultipleMemoizedHelpers :
189
212
Max : 15
190
213
214
+ # Offense count: 1
215
+ # This cop supports safe autocorrection (--autocorrect).
216
+ RSpec/MultipleSubjects :
217
+ Exclude :
218
+ - ' spec/cucumber/runtime/support_code_spec.rb'
219
+
191
220
# Offense count: 46
192
221
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
193
222
# SupportedStyles: always, named_only
@@ -207,14 +236,10 @@ RSpec/NamedSubject:
207
236
RSpec/NestedGroups :
208
237
Max : 6
209
238
210
- # Offense count: 4
211
- # This cop supports unsafe autocorrection (--autocorrect-all).
212
- # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
213
- # SupportedStyles: inflected, explicit
214
- RSpec/PredicateMatcher :
239
+ # Offense count: 1
240
+ RSpec/OverwritingSetup :
215
241
Exclude :
216
- - ' spec/cucumber/hooks_spec.rb'
217
- - ' spec/cucumber/running_test_case_spec.rb'
242
+ - ' spec/cucumber/runtime/support_code_spec.rb'
218
243
219
244
# Offense count: 2
220
245
# This cop supports safe autocorrection (--autocorrect).
@@ -229,9 +254,10 @@ RSpec/RepeatedExample:
229
254
- ' spec/cucumber/formatter/rerun_spec.rb'
230
255
- ' spec/cucumber/world/pending_spec.rb'
231
256
232
- # Offense count: 2
257
+ # Offense count: 4
233
258
RSpec/RepeatedExampleGroupDescription :
234
259
Exclude :
260
+ - ' spec/cucumber/formatter/interceptor_spec.rb'
235
261
- ' spec/cucumber/glue/proto_world_spec.rb'
236
262
237
263
# Offense count: 31
@@ -251,6 +277,18 @@ RSpec/ReturnFromStub:
251
277
- ' spec/cucumber/formatter/junit_spec.rb'
252
278
- ' spec/cucumber/glue/registry_and_more_spec.rb'
253
279
280
+ # Offense count: 3
281
+ # This cop supports safe autocorrection (--autocorrect).
282
+ RSpec/ScatteredLet :
283
+ Exclude :
284
+ - ' spec/cucumber/runtime/support_code_spec.rb'
285
+
286
+ # Offense count: 2
287
+ # This cop supports safe autocorrection (--autocorrect).
288
+ RSpec/ScatteredSetup :
289
+ Exclude :
290
+ - ' spec/cucumber/formatter/interceptor_spec.rb'
291
+
254
292
# Offense count: 9
255
293
RSpec/StubbedMock :
256
294
Exclude :
@@ -278,14 +316,7 @@ RSpec/VerifiedDoubles:
278
316
- ' spec/cucumber/runtime/support_code_spec.rb'
279
317
- ' spec/cucumber/world/pending_spec.rb'
280
318
281
- # Offense count: 2
282
- # This cop supports safe autocorrection (--autocorrect).
283
- Rake/Desc :
284
- Exclude :
285
- - ' gem_tasks/contributors.rake'
286
- - ' gem_tasks/environment.rake'
287
-
288
- # Offense count: 11
319
+ # Offense count: 7
289
320
# This cop supports unsafe autocorrection (--autocorrect-all).
290
321
# Configuration parameters: EnforcedStyle.
291
322
# SupportedStyles: nested, compact
@@ -298,38 +329,8 @@ Style/ClassAndModuleChildren:
298
329
- ' lib/autotest/cucumber_rails_rspec2.rb'
299
330
- ' lib/autotest/cucumber_rspec.rb'
300
331
- ' lib/autotest/cucumber_rspec2.rb'
301
- - ' spec/cucumber/deprecate_spec.rb'
302
- - ' spec/cucumber/formatter/fail_fast_spec.rb'
303
- - ' spec/cucumber/formatter/interceptor_spec.rb'
304
- - ' spec/cucumber/hooks_spec.rb'
305
332
306
333
# Offense count: 3
307
334
Style/ClassVars :
308
335
Exclude :
309
336
- ' spec/cucumber/glue/step_definition_spec.rb'
310
-
311
- # Offense count: 22
312
- # This cop supports unsafe autocorrection (--autocorrect-all).
313
- # Configuration parameters: EnforcedStyle.
314
- # SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
315
- Style/FloatDivision :
316
- Enabled : false
317
-
318
- # Offense count: 5
319
- # This cop supports unsafe autocorrection (--autocorrect-all).
320
- # Configuration parameters: EnforcedStyle.
321
- # SupportedStyles: literals, strict
322
- Style/MutableConstant :
323
- Exclude :
324
- - ' lib/cucumber/cli/options.rb'
325
- - ' lib/cucumber/file_specs.rb'
326
- - ' lib/cucumber/runtime.rb'
327
- - ' lib/cucumber/term/ansicolor.rb'
328
-
329
- # Offense count: 1
330
- # This cop supports unsafe autocorrection (--autocorrect-all).
331
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
332
- # AllowedMethods: present?, blank?, presence, try, try!
333
- Style/SafeNavigation :
334
- Exclude :
335
- - ' lib/cucumber/gherkin/formatter/ansi_escapes.rb'
0 commit comments