1
1
# This configuration was generated by
2
2
# `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 .
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
11
# Offense count: 38
10
12
# This cop supports safe autocorrection (--autocorrect).
11
13
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
@@ -19,12 +21,46 @@ Layout/HashAlignment:
19
21
- ' lib/cucumber/formatter/ansicolor.rb'
20
22
- ' lib/cucumber/gherkin/formatter/ansi_escapes.rb'
21
23
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
+
22
48
# Offense count: 1
23
49
# Configuration parameters: AllowComments, AllowNil.
24
50
Lint/SuppressedException :
25
51
Exclude :
26
52
- ' lib/cucumber/rake/task.rb'
27
53
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
+
28
64
# Offense count: 1
29
65
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
30
66
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
@@ -39,7 +75,7 @@ RSpec/AnyInstance:
39
75
- ' spec/cucumber/cli/main_spec.rb'
40
76
41
77
# Offense count: 5
42
- # This cop supports safe autocorrection (--autocorrect).
78
+ # This cop supports unsafe autocorrection (--autocorrect-all ).
43
79
RSpec/BeEql :
44
80
Exclude :
45
81
- ' spec/cucumber/cli/configuration_spec.rb'
@@ -69,7 +105,7 @@ RSpec/ContextMethod:
69
105
- ' spec/cucumber/term/banner_spec.rb'
70
106
71
107
# Offense count: 98
72
- # Configuration parameters: Prefixes.
108
+ # Configuration parameters: Prefixes, AllowedPatterns .
73
109
# Prefixes: when, with, without
74
110
RSpec/ContextWording :
75
111
Enabled : false
@@ -78,6 +114,11 @@ RSpec/ContextWording:
78
114
# Configuration parameters: IgnoredMetadata.
79
115
RSpec/DescribeClass :
80
116
Exclude :
117
+ - ' **/spec/features/**/*'
118
+ - ' **/spec/requests/**/*'
119
+ - ' **/spec/routing/**/*'
120
+ - ' **/spec/system/**/*'
121
+ - ' **/spec/views/**/*'
81
122
- ' spec/cck/cck_spec.rb'
82
123
83
124
# Offense count: 167
@@ -88,6 +129,7 @@ RSpec/DescribedClass:
88
129
Enabled : false
89
130
90
131
# Offense count: 2
132
+ # This cop supports unsafe autocorrection (--autocorrect-all).
91
133
RSpec/EmptyExampleGroup :
92
134
Exclude :
93
135
- ' spec/cucumber/filters/activate_steps_spec.rb'
@@ -122,28 +164,27 @@ RSpec/EmptyLineAfterFinalLet:
122
164
123
165
# Offense count: 3
124
166
# This cop supports safe autocorrection (--autocorrect).
167
+ # Configuration parameters: AllowConsecutiveOneLiners.
125
168
RSpec/EmptyLineAfterHook :
126
169
Exclude :
127
170
- ' spec/cucumber/formatter/junit_spec.rb'
128
171
129
- # Offense count: 6
172
+ # Offense count: 2
130
173
# This cop supports safe autocorrection (--autocorrect).
131
174
RSpec/EmptyLineAfterSubject :
132
175
Exclude :
133
176
- ' spec/cucumber/filters/tag_limits/verifier_spec.rb'
134
- - ' spec/cucumber/hooks_spec.rb'
135
177
- ' spec/cucumber/runtime/meta_message_builder_spec.rb'
136
- - ' spec/cucumber/runtime/support_code_spec.rb'
137
- - ' spec/cucumber/runtime_spec.rb'
138
178
139
179
# Offense count: 150
140
- # Configuration parameters: Max .
180
+ # Configuration parameters: CountAsOne .
141
181
RSpec/ExampleLength :
142
- Enabled : false
182
+ Max : 58
143
183
144
184
# Offense count: 51
145
185
# This cop supports safe autocorrection (--autocorrect).
146
- # Configuration parameters: CustomTransform, IgnoredWords.
186
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
187
+ # DisallowedExamples: works
147
188
RSpec/ExampleWording :
148
189
Exclude :
149
190
- ' spec/cucumber/cli/configuration_spec.rb'
@@ -155,7 +196,7 @@ RSpec/ExampleWording:
155
196
# This cop supports safe autocorrection (--autocorrect).
156
197
RSpec/ExpectActual :
157
198
Exclude :
158
- - ' spec/routing/**/*'
199
+ - ' **/ spec/routing/**/*'
159
200
- ' spec/cucumber/cli/configuration_spec.rb'
160
201
- ' spec/cucumber/step_match_spec.rb'
161
202
@@ -195,16 +236,6 @@ RSpec/IteratedExpectation:
195
236
Exclude :
196
237
- ' spec/cucumber/filters/gated_receiver_spec.rb'
197
238
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
-
208
239
# Offense count: 59
209
240
# Configuration parameters: EnforcedStyle.
210
241
# SupportedStyles: have_received, receive
@@ -242,7 +273,8 @@ RSpec/MultipleMemoizedHelpers:
242
273
Max : 15
243
274
244
275
# Offense count: 46
245
- # Configuration parameters: IgnoreSharedExamples.
276
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
277
+ # SupportedStyles: always, named_only
246
278
RSpec/NamedSubject :
247
279
Exclude :
248
280
- ' spec/cucumber/cli/main_spec.rb'
@@ -255,6 +287,7 @@ RSpec/NamedSubject:
255
287
- ' spec/cucumber/runtime_spec.rb'
256
288
257
289
# Offense count: 6
290
+ # Configuration parameters: AllowedGroups.
258
291
RSpec/NestedGroups :
259
292
Max : 6
260
293
@@ -354,6 +387,36 @@ Rake/Desc:
354
387
- ' gem_tasks/contributors.rake'
355
388
- ' gem_tasks/environment.rake'
356
389
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
+
357
420
# Offense count: 5
358
421
# This cop supports unsafe autocorrection (--autocorrect-all).
359
422
# Configuration parameters: EnforcedStyle.
0 commit comments