11# This configuration was generated by
22# `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.
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
77# versions of RuboCop, may require this file to be generated again.
88
9- # TODO - [LH] -> Aug '23 - 370 files inspected, 1110 offenses detected, 482 offenses autocorrectable
109# TODO - [LH] -> Sep 6 '23 - 370 files inspected, 983 offenses detected, 368 offenses autocorrectable
1110# TODO - [LH] -> Sep 11 '23 - 370 files inspected, 825 offenses detected, 387 offenses autocorrectable
1211# TODO - [LH] -> Sep 19 '23 - 370 files inspected, 640 offenses detected, 202 offenses autocorrectable
1312# 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
1414
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
3716# This cop supports safe autocorrection (--autocorrect).
3817# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
3918# SupportedHashRocketStyles: key, separator, table
4019# SupportedColonStyles: key, separator, table
4120# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
4221Layout/HashAlignment :
4322 Exclude :
44- - ' cucumber.gemspec'
4523 - ' lib/cucumber/cli/options.rb'
46- - ' lib/cucumber/formatter/ansicolor.rb'
47- - ' lib/cucumber/gherkin/formatter/ansi_escapes.rb'
4824
49- # Offense count: 4
25+ # Offense count: 19
5026# This cop supports safe autocorrection (--autocorrect).
51- Layout/HeredocIndentation :
27+ # Configuration parameters: AllowInHeredoc.
28+ Layout/TrailingWhitespace :
5229 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'
8031
8132# Offense count: 3
8233# This cop supports safe autocorrection (--autocorrect).
@@ -86,17 +37,25 @@ Lint/AmbiguousOperator:
8637 - ' lib/cucumber/running_test_case.rb'
8738 - ' spec/cucumber/formatter/spec_helper.rb'
8839
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
9641Lint/RescueException :
9742 Exclude :
43+ - ' lib/cucumber/cli/main.rb'
44+ - ' lib/cucumber/configuration.rb'
45+ - ' lib/cucumber/glue/invoke_in_world.rb'
9846 - ' lib/cucumber/glue/proto_world.rb'
9947
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+
10059# Offense count: 8
10160# Configuration parameters: AllowedMethods, AllowedPatterns.
10261Metrics/CyclomaticComplexity :
@@ -115,6 +74,15 @@ Naming/FileName:
11574 Exclude :
11675 - ' features/lib/step_definitions/iso-8859-1_steps.rb'
11776
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+
11886# Offense count: 14
11987# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
12088# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
@@ -214,7 +182,7 @@ RSpec/ExpectActual:
214182 - ' spec/cucumber/cli/configuration_spec.rb'
215183 - ' spec/cucumber/step_match_spec.rb'
216184
217- # Offense count: 2
185+ # Offense count: 4
218186RSpec/ExpectInHook :
219187 Exclude :
220188 - ' spec/cucumber/multiline_argument/data_table_spec.rb'
@@ -261,7 +229,7 @@ RSpec/MultipleExpectations:
261229# Offense count: 38
262230# Configuration parameters: AllowSubject.
263231RSpec/MultipleMemoizedHelpers :
264- Max : 15
232+ Max : 10
265233
266234# Offense count: 1
267235# This cop supports safe autocorrection (--autocorrect).
@@ -283,22 +251,11 @@ RSpec/NamedSubject:
283251 - ' spec/cucumber/runtime/support_code_spec.rb'
284252 - ' spec/cucumber/runtime_spec.rb'
285253
286- # Offense count: 6
287- # Configuration parameters: AllowedGroups.
288- RSpec/NestedGroups :
289- Max : 6
290-
291254# Offense count: 1
292255RSpec/OverwritingSetup :
293256 Exclude :
294257 - ' spec/cucumber/runtime/support_code_spec.rb'
295258
296- # Offense count: 2
297- # This cop supports safe autocorrection (--autocorrect).
298- RSpec/ReceiveCounts :
299- Exclude :
300- - ' spec/cucumber/filters/retry_spec.rb'
301-
302259# Offense count: 8
303260RSpec/RepeatedExample :
304261 Exclude :
@@ -334,7 +291,7 @@ RSpec/ScatteredLet:
334291 Exclude :
335292 - ' spec/cucumber/runtime/support_code_spec.rb'
336293
337- # Offense count: 5
294+ # Offense count: 7
338295RSpec/StubbedMock :
339296 Exclude :
340297 - ' spec/cucumber/cli/configuration_spec.rb'
@@ -360,6 +317,17 @@ RSpec/VerifiedDoubles:
360317 - ' spec/cucumber/runtime/support_code_spec.rb'
361318 - ' spec/cucumber/world/pending_spec.rb'
362319
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+
363331# Offense count: 7
364332# This cop supports unsafe autocorrection (--autocorrect-all).
365333# Configuration parameters: EnforcedStyle.
@@ -379,10 +347,11 @@ Style/ClassVars:
379347 Exclude :
380348 - ' spec/cucumber/glue/step_definition_spec.rb'
381349
382- # Offense count: 4
350+ # Offense count: 7
383351# Configuration parameters: AllowedVariables.
384352Style/GlobalVars :
385353 Exclude :
354+ - ' features/lib/support/env.rb'
386355 - ' spec/cucumber/cli/options_spec.rb'
387356
388357# Offense count: 6
0 commit comments