1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-10-03 13:56:41 UTC using RuboCop version 1.56.4.
3
+ # on 2023-12-08 14:57:03 UTC using RuboCop version 1.56.4.
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
- # TODO - [LH] -> Aug '23 - 370 files inspected, 1110 offenses detected, 482 offenses autocorrectable
10
9
# TODO - [LH] -> Sep 6 '23 - 370 files inspected, 983 offenses detected, 368 offenses autocorrectable
11
10
# TODO - [LH] -> Sep 11 '23 - 370 files inspected, 825 offenses detected, 387 offenses autocorrectable
12
11
# TODO - [LH] -> Sep 19 '23 - 370 files inspected, 640 offenses detected, 202 offenses autocorrectable
13
12
# TODO - [LH] -> Oct '23 - 355 files inspected, 642 offenses detected, 205 offenses autocorrectable
13
+ # TODO - [LH] -> Dec '23 - 350 files inspected, 595 offenses detected, 171 offenses autocorrectable
14
14
15
- # Offense count: 1
16
- # This cop supports safe autocorrection (--autocorrect).
17
- # Configuration parameters: EnforcedStyleAlignWith.
18
- # SupportedStylesAlignWith: either, start_of_block, start_of_line
19
- Layout/BlockAlignment :
20
- Exclude :
21
- - ' spec/cucumber/formatter/fail_fast_spec.rb'
22
-
23
- # Offense count: 17
24
- # This cop supports safe autocorrection (--autocorrect).
25
- Layout/ClosingHeredocIndentation :
26
- Exclude :
27
- - ' spec/cucumber/cli/profile_loader_spec.rb'
28
- - ' spec/cucumber/formatter/json_spec.rb'
29
-
30
- # Offense count: 1
31
- # This cop supports safe autocorrection (--autocorrect).
32
- Layout/EmptyLines :
33
- Exclude :
34
- - ' spec/cucumber/formatter/fail_fast_spec.rb'
35
-
36
- # Offense count: 38
15
+ # Offense count: 10
37
16
# This cop supports safe autocorrection (--autocorrect).
38
17
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
39
18
# SupportedHashRocketStyles: key, separator, table
40
19
# SupportedColonStyles: key, separator, table
41
20
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
42
21
Layout/HashAlignment :
43
22
Exclude :
44
- - ' cucumber.gemspec'
45
23
- ' lib/cucumber/cli/options.rb'
46
- - ' lib/cucumber/formatter/ansicolor.rb'
47
- - ' lib/cucumber/gherkin/formatter/ansi_escapes.rb'
48
24
49
- # Offense count: 4
25
+ # Offense count: 19
50
26
# This cop supports safe autocorrection (--autocorrect).
51
- Layout/HeredocIndentation :
27
+ # Configuration parameters: AllowInHeredoc.
28
+ Layout/TrailingWhitespace :
52
29
Exclude :
53
- - ' lib/cucumber/cli/options.rb'
54
- - ' lib/cucumber/cli/profile_loader.rb'
55
- - ' spec/cucumber/cli/profile_loader_spec.rb'
56
-
57
- # Offense count: 3
58
- # This cop supports safe autocorrection (--autocorrect).
59
- # Configuration parameters: EnforcedStyle.
60
- # SupportedStyles: normal, indented_internal_methods
61
- Layout/IndentationConsistency :
62
- Exclude :
63
- - ' spec/cucumber/formatter/fail_fast_spec.rb'
64
-
65
- # Offense count: 1
66
- # This cop supports safe autocorrection (--autocorrect).
67
- # Configuration parameters: Width, AllowedPatterns.
68
- Layout/IndentationWidth :
69
- Exclude :
70
- - ' spec/cucumber/formatter/fail_fast_spec.rb'
71
-
72
- # Offense count: 4
73
- # This cop supports safe autocorrection (--autocorrect).
74
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
75
- # SupportedStyles: space, no_space, compact
76
- # SupportedStylesForEmptyBraces: space, no_space
77
- Layout/SpaceInsideHashLiteralBraces :
78
- Exclude :
79
- - ' spec/cucumber/cli/options_spec.rb'
30
+ - ' lib/cucumber/multiline_argument/data_table.rb'
80
31
81
32
# Offense count: 3
82
33
# This cop supports safe autocorrection (--autocorrect).
@@ -86,17 +37,25 @@ Lint/AmbiguousOperator:
86
37
- ' lib/cucumber/running_test_case.rb'
87
38
- ' spec/cucumber/formatter/spec_helper.rb'
88
39
89
- # Offense count: 1
90
- # This cop supports safe autocorrection (--autocorrect).
91
- Lint/RedundantCopDisableDirective :
92
- Exclude :
93
- - ' lib/cucumber/cli/options.rb'
94
-
95
- # Offense count: 1
40
+ # Offense count: 4
96
41
Lint/RescueException :
97
42
Exclude :
43
+ - ' lib/cucumber/cli/main.rb'
44
+ - ' lib/cucumber/configuration.rb'
45
+ - ' lib/cucumber/glue/invoke_in_world.rb'
98
46
- ' lib/cucumber/glue/proto_world.rb'
99
47
48
+ # Offense count: 4
49
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
50
+ Metrics/AbcSize :
51
+ Max : 127
52
+
53
+ # Offense count: 1
54
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
55
+ # AllowedMethods: refine
56
+ Metrics/BlockLength :
57
+ Max : 52
58
+
100
59
# Offense count: 8
101
60
# Configuration parameters: AllowedMethods, AllowedPatterns.
102
61
Metrics/CyclomaticComplexity :
@@ -115,6 +74,15 @@ Naming/FileName:
115
74
Exclude :
116
75
- ' features/lib/step_definitions/iso-8859-1_steps.rb'
117
76
77
+ # Offense count: 2
78
+ # This cop supports unsafe autocorrection (--autocorrect-all).
79
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
80
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
81
+ Naming/MemoizedInstanceVariableName :
82
+ Exclude :
83
+ - ' lib/cucumber/formatter/json.rb'
84
+ - ' lib/cucumber/multiline_argument/data_table.rb'
85
+
118
86
# Offense count: 14
119
87
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
120
88
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
@@ -214,7 +182,7 @@ RSpec/ExpectActual:
214
182
- ' spec/cucumber/cli/configuration_spec.rb'
215
183
- ' spec/cucumber/step_match_spec.rb'
216
184
217
- # Offense count: 2
185
+ # Offense count: 4
218
186
RSpec/ExpectInHook :
219
187
Exclude :
220
188
- ' spec/cucumber/multiline_argument/data_table_spec.rb'
@@ -261,7 +229,7 @@ RSpec/MultipleExpectations:
261
229
# Offense count: 38
262
230
# Configuration parameters: AllowSubject.
263
231
RSpec/MultipleMemoizedHelpers :
264
- Max : 15
232
+ Max : 10
265
233
266
234
# Offense count: 1
267
235
# This cop supports safe autocorrection (--autocorrect).
@@ -283,22 +251,11 @@ RSpec/NamedSubject:
283
251
- ' spec/cucumber/runtime/support_code_spec.rb'
284
252
- ' spec/cucumber/runtime_spec.rb'
285
253
286
- # Offense count: 6
287
- # Configuration parameters: AllowedGroups.
288
- RSpec/NestedGroups :
289
- Max : 6
290
-
291
254
# Offense count: 1
292
255
RSpec/OverwritingSetup :
293
256
Exclude :
294
257
- ' spec/cucumber/runtime/support_code_spec.rb'
295
258
296
- # Offense count: 2
297
- # This cop supports safe autocorrection (--autocorrect).
298
- RSpec/ReceiveCounts :
299
- Exclude :
300
- - ' spec/cucumber/filters/retry_spec.rb'
301
-
302
259
# Offense count: 8
303
260
RSpec/RepeatedExample :
304
261
Exclude :
@@ -334,7 +291,7 @@ RSpec/ScatteredLet:
334
291
Exclude :
335
292
- ' spec/cucumber/runtime/support_code_spec.rb'
336
293
337
- # Offense count: 5
294
+ # Offense count: 7
338
295
RSpec/StubbedMock :
339
296
Exclude :
340
297
- ' spec/cucumber/cli/configuration_spec.rb'
@@ -360,6 +317,17 @@ RSpec/VerifiedDoubles:
360
317
- ' spec/cucumber/runtime/support_code_spec.rb'
361
318
- ' spec/cucumber/world/pending_spec.rb'
362
319
320
+ # Offense count: 1
321
+ Security/Open :
322
+ Exclude :
323
+ - ' lib/autotest/cucumber_mixin.rb'
324
+
325
+ # Offense count: 1
326
+ # This cop supports unsafe autocorrection (--autocorrect-all).
327
+ Security/YAMLLoad :
328
+ Exclude :
329
+ - ' lib/cucumber/cli/profile_loader.rb'
330
+
363
331
# Offense count: 7
364
332
# This cop supports unsafe autocorrection (--autocorrect-all).
365
333
# Configuration parameters: EnforcedStyle.
@@ -379,10 +347,11 @@ Style/ClassVars:
379
347
Exclude :
380
348
- ' spec/cucumber/glue/step_definition_spec.rb'
381
349
382
- # Offense count: 4
350
+ # Offense count: 7
383
351
# Configuration parameters: AllowedVariables.
384
352
Style/GlobalVars :
385
353
Exclude :
354
+ - ' features/lib/support/env.rb'
386
355
- ' spec/cucumber/cli/options_spec.rb'
387
356
388
357
# Offense count: 6
0 commit comments