11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-09-01 11:47:49 UTC using RuboCop version 1.43.0 .
3+ # on 2023-09-02 09:39:29 UTC using RuboCop version 1.56.2 .
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
10+
911# Offense count: 38
1012# This cop supports safe autocorrection (--autocorrect).
1113# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
@@ -19,12 +21,46 @@ Layout/HashAlignment:
1921 - ' lib/cucumber/formatter/ansicolor.rb'
2022 - ' lib/cucumber/gherkin/formatter/ansi_escapes.rb'
2123
24+ # Offense count: 13
25+ # This cop supports safe autocorrection (--autocorrect).
26+ Layout/HeredocIndentation :
27+ Exclude :
28+ - ' features/lib/support/feature_factory.rb'
29+ - ' lib/cucumber/cli/options.rb'
30+ - ' lib/cucumber/cli/profile_loader.rb'
31+ - ' spec/cucumber/cli/configuration_spec.rb'
32+ - ' spec/cucumber/cli/profile_loader_spec.rb'
33+ - ' spec/cucumber/formatter/pretty_spec.rb'
34+
35+ # Offense count: 1
36+ # This cop supports safe autocorrection (--autocorrect).
37+ # Configuration parameters: AllowedMethods, AllowedPatterns.
38+ Lint/AmbiguousBlockAssociation :
39+ Exclude :
40+ - ' spec/cucumber/glue/step_definition_spec.rb'
41+
42+ # Offense count: 1
43+ # This cop supports safe autocorrection (--autocorrect).
44+ Lint/RedundantCopDisableDirective :
45+ Exclude :
46+ - ' lib/cucumber/cli/options.rb'
47+
2248# Offense count: 1
2349# Configuration parameters: AllowComments, AllowNil.
2450Lint/SuppressedException :
2551 Exclude :
2652 - ' lib/cucumber/rake/task.rb'
2753
54+ # Offense count: 9
55+ # Configuration parameters: AllowedMethods, AllowedPatterns.
56+ Metrics/CyclomaticComplexity :
57+ Max : 12
58+
59+ # Offense count: 9
60+ # Configuration parameters: AllowedMethods, AllowedPatterns.
61+ Metrics/PerceivedComplexity :
62+ Max : 13
63+
2864# Offense count: 1
2965# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
3066# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
@@ -39,7 +75,7 @@ RSpec/AnyInstance:
3975 - ' spec/cucumber/cli/main_spec.rb'
4076
4177# Offense count: 5
42- # This cop supports safe autocorrection (--autocorrect).
78+ # This cop supports unsafe autocorrection (--autocorrect-all ).
4379RSpec/BeEql :
4480 Exclude :
4581 - ' spec/cucumber/cli/configuration_spec.rb'
@@ -69,7 +105,7 @@ RSpec/ContextMethod:
69105 - ' spec/cucumber/term/banner_spec.rb'
70106
71107# Offense count: 98
72- # Configuration parameters: Prefixes.
108+ # Configuration parameters: Prefixes, AllowedPatterns .
73109# Prefixes: when, with, without
74110RSpec/ContextWording :
75111 Enabled : false
@@ -78,6 +114,11 @@ RSpec/ContextWording:
78114# Configuration parameters: IgnoredMetadata.
79115RSpec/DescribeClass :
80116 Exclude :
117+ - ' **/spec/features/**/*'
118+ - ' **/spec/requests/**/*'
119+ - ' **/spec/routing/**/*'
120+ - ' **/spec/system/**/*'
121+ - ' **/spec/views/**/*'
81122 - ' spec/cck/cck_spec.rb'
82123
83124# Offense count: 167
@@ -88,6 +129,7 @@ RSpec/DescribedClass:
88129 Enabled : false
89130
90131# Offense count: 2
132+ # This cop supports unsafe autocorrection (--autocorrect-all).
91133RSpec/EmptyExampleGroup :
92134 Exclude :
93135 - ' spec/cucumber/filters/activate_steps_spec.rb'
@@ -122,28 +164,27 @@ RSpec/EmptyLineAfterFinalLet:
122164
123165# Offense count: 3
124166# This cop supports safe autocorrection (--autocorrect).
167+ # Configuration parameters: AllowConsecutiveOneLiners.
125168RSpec/EmptyLineAfterHook :
126169 Exclude :
127170 - ' spec/cucumber/formatter/junit_spec.rb'
128171
129- # Offense count: 6
172+ # Offense count: 2
130173# This cop supports safe autocorrection (--autocorrect).
131174RSpec/EmptyLineAfterSubject :
132175 Exclude :
133176 - ' spec/cucumber/filters/tag_limits/verifier_spec.rb'
134- - ' spec/cucumber/hooks_spec.rb'
135177 - ' spec/cucumber/runtime/meta_message_builder_spec.rb'
136- - ' spec/cucumber/runtime/support_code_spec.rb'
137- - ' spec/cucumber/runtime_spec.rb'
138178
139179# Offense count: 150
140- # Configuration parameters: Max .
180+ # Configuration parameters: CountAsOne .
141181RSpec/ExampleLength :
142- Enabled : false
182+ Max : 58
143183
144184# Offense count: 51
145185# This cop supports safe autocorrection (--autocorrect).
146- # Configuration parameters: CustomTransform, IgnoredWords.
186+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
187+ # DisallowedExamples: works
147188RSpec/ExampleWording :
148189 Exclude :
149190 - ' spec/cucumber/cli/configuration_spec.rb'
@@ -155,7 +196,7 @@ RSpec/ExampleWording:
155196# This cop supports safe autocorrection (--autocorrect).
156197RSpec/ExpectActual :
157198 Exclude :
158- - ' spec/routing/**/*'
199+ - ' **/ spec/routing/**/*'
159200 - ' spec/cucumber/cli/configuration_spec.rb'
160201 - ' spec/cucumber/step_match_spec.rb'
161202
@@ -195,16 +236,6 @@ RSpec/IteratedExpectation:
195236 Exclude :
196237 - ' spec/cucumber/filters/gated_receiver_spec.rb'
197238
198- # Offense count: 6
199- # This cop supports safe autocorrection (--autocorrect).
200- RSpec/LeadingSubject :
201- Exclude :
202- - ' spec/cucumber/cli/main_spec.rb'
203- - ' spec/cucumber/configuration_spec.rb'
204- - ' spec/cucumber/formatter/url_reporter_spec.rb'
205- - ' spec/cucumber/rake/forked_spec.rb'
206- - ' spec/cucumber/runtime/support_code_spec.rb'
207-
208239# Offense count: 59
209240# Configuration parameters: EnforcedStyle.
210241# SupportedStyles: have_received, receive
@@ -242,7 +273,8 @@ RSpec/MultipleMemoizedHelpers:
242273 Max : 15
243274
244275# Offense count: 46
245- # Configuration parameters: IgnoreSharedExamples.
276+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
277+ # SupportedStyles: always, named_only
246278RSpec/NamedSubject :
247279 Exclude :
248280 - ' spec/cucumber/cli/main_spec.rb'
@@ -255,6 +287,7 @@ RSpec/NamedSubject:
255287 - ' spec/cucumber/runtime_spec.rb'
256288
257289# Offense count: 6
290+ # Configuration parameters: AllowedGroups.
258291RSpec/NestedGroups :
259292 Max : 6
260293
@@ -354,6 +387,36 @@ Rake/Desc:
354387 - ' gem_tasks/contributors.rake'
355388 - ' gem_tasks/environment.rake'
356389
390+ # Offense count: 11
391+ # This cop supports unsafe autocorrection (--autocorrect-all).
392+ # Configuration parameters: EnforcedStyle.
393+ # SupportedStyles: nested, compact
394+ Style/ClassAndModuleChildren :
395+ Exclude :
396+ - ' lib/autotest/cucumber.rb'
397+ - ' lib/autotest/cucumber_mixin.rb'
398+ - ' lib/autotest/cucumber_rails.rb'
399+ - ' lib/autotest/cucumber_rails_rspec.rb'
400+ - ' lib/autotest/cucumber_rails_rspec2.rb'
401+ - ' lib/autotest/cucumber_rspec.rb'
402+ - ' lib/autotest/cucumber_rspec2.rb'
403+ - ' spec/cucumber/deprecate_spec.rb'
404+ - ' spec/cucumber/formatter/fail_fast_spec.rb'
405+ - ' spec/cucumber/formatter/interceptor_spec.rb'
406+ - ' spec/cucumber/hooks_spec.rb'
407+
408+ # Offense count: 3
409+ Style/ClassVars :
410+ Exclude :
411+ - ' spec/cucumber/glue/step_definition_spec.rb'
412+
413+ # Offense count: 22
414+ # This cop supports unsafe autocorrection (--autocorrect-all).
415+ # Configuration parameters: EnforcedStyle.
416+ # SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv
417+ Style/FloatDivision :
418+ Enabled : false
419+
357420# Offense count: 5
358421# This cop supports unsafe autocorrection (--autocorrect-all).
359422# Configuration parameters: EnforcedStyle.
0 commit comments