-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.rubocop_todo.yml
311 lines (268 loc) · 9.71 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-07-09 14:33:36 UTC using RuboCop version 1.61.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# TODO - [LH] -> Oct '23 - 355 files inspected, 642 offenses detected, 205 offenses autocorrectable
# TODO - [LH] -> Dec '23 - 350 files inspected, 595 offenses detected, 171 offenses autocorrectable
# TODO - [LH] -> Feb '24 - 370 files inspected, 635 offenses detected, 166 offenses autocorrectable
# TODO - [LH] -> Jul '24 - 370 files inspected, 637 offenses detected, 97 offenses autocorrectable
# Offense count: 4
Lint/RescueException:
Exclude:
- 'lib/cucumber/cli/main.rb'
- 'lib/cucumber/configuration.rb'
- 'lib/cucumber/glue/invoke_in_world.rb'
- 'lib/cucumber/glue/proto_world.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessMethodDefinition:
Exclude:
- 'lib/cucumber/glue/proto_world.rb'
# Offense count: 60
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 127
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 52
# Offense count: 13
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 515
# Offense count: 8
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 12
# Offense count: 74
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 64
# Offense count: 16
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 804
# Offense count: 7
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 13
# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Exclude:
- 'features/lib/step_definitions/iso-8859-1_steps.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/cucumber/multiline_argument/data_table.rb'
# Offense count: 2
RSpec/AnyInstance:
Exclude:
- 'spec/cucumber/cli/main_spec.rb'
# Offense count: 9
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnabledMethods.
RSpec/Capybara/FeatureMethods:
Exclude:
- 'spec/cucumber/filters/activate_steps_spec.rb'
# Offense count: 5
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/cucumber/filters/tag_limits_spec.rb'
- 'spec/cucumber/formatter/http_io_spec.rb'
- 'spec/cucumber/formatter/junit_spec.rb'
- 'spec/cucumber/formatter/publish_banner_printer_spec.rb'
- 'spec/support/shared_context/http_server.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/EmptyExampleGroup:
Exclude:
- 'spec/cucumber/filters/activate_steps_spec.rb'
- 'spec/cucumber/running_test_case_spec.rb'
# Offense count: 82
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 58
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
# DisallowedExamples: works
RSpec/ExampleWording:
Exclude:
- 'spec/cucumber/multiline_argument/data_table_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExpectActual:
Exclude:
- 'spec/cucumber/cli/configuration_spec.rb'
- 'spec/cucumber/step_match_spec.rb'
# Offense count: 4
RSpec/ExpectInHook:
Exclude:
- 'spec/cucumber/multiline_argument/data_table_spec.rb'
- 'spec/cucumber/runtime/meta_message_builder_spec.rb'
# Offense count: 6
RSpec/ExpectOutput:
Exclude:
- 'spec/cucumber/formatter/interceptor_spec.rb'
# Offense count: 61
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, each, example
RSpec/HookArgument:
Enabled: false
# Offense count: 8
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/support/shared_context/http_server.rb'
# Offense count: 5
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'spec/cucumber/deprecate_spec.rb'
- 'spec/cucumber/formatter/io_http_buffer_spec.rb'
- 'spec/cucumber/runtime/hooks_examples.rb'
# Offense count: 15
RSpec/MissingExampleGroupArgument:
Exclude:
- 'spec/cucumber/filters/activate_steps_spec.rb'
- 'spec/cucumber/formatter/fail_fast_spec.rb'
- 'spec/cucumber/formatter/rerun_spec.rb'
# Offense count: 58
RSpec/MultipleExpectations:
Max: 3
# Offense count: 38
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 10
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/MultipleSubjects:
Exclude:
- 'spec/cucumber/runtime/support_code_spec.rb'
# Offense count: 46
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/cucumber/cli/main_spec.rb'
- 'spec/cucumber/configuration_spec.rb'
- 'spec/cucumber/formatter/url_reporter_spec.rb'
- 'spec/cucumber/rake/forked_spec.rb'
- 'spec/cucumber/rake/task_spec.rb'
- 'spec/cucumber/runtime/meta_message_builder_spec.rb'
- 'spec/cucumber/runtime/support_code_spec.rb'
- 'spec/cucumber/runtime_spec.rb'
# Offense count: 1
RSpec/OverwritingSetup:
Exclude:
- 'spec/cucumber/runtime/support_code_spec.rb'
# Offense count: 8
RSpec/RepeatedExample:
Exclude:
- 'spec/cucumber/formatter/fail_fast_spec.rb'
- 'spec/cucumber/formatter/rerun_spec.rb'
- 'spec/cucumber/world/pending_spec.rb'
# Offense count: 2
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/cucumber/glue/proto_world_spec.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
RSpec/ScatteredLet:
Exclude:
- 'spec/cucumber/runtime/support_code_spec.rb'
# Offense count: 7
RSpec/StubbedMock:
Exclude:
- 'spec/cucumber/cli/configuration_spec.rb'
- 'spec/cucumber/formatter/interceptor_spec.rb'
- 'spec/cucumber/runtime/meta_message_builder_spec.rb'
# Offense count: 57
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/cucumber/cli/main_spec.rb'
- 'spec/cucumber/configuration_spec.rb'
- 'spec/cucumber/filters/activate_steps_spec.rb'
- 'spec/cucumber/filters/gated_receiver_spec.rb'
- 'spec/cucumber/filters/retry_spec.rb'
- 'spec/cucumber/filters/tag_limits/test_case_index_spec.rb'
- 'spec/cucumber/filters/tag_limits/verifier_spec.rb'
- 'spec/cucumber/filters/tag_limits_spec.rb'
- 'spec/cucumber/glue/proto_world_spec.rb'
- 'spec/cucumber/glue/registry_and_more_spec.rb'
- 'spec/cucumber/glue/step_definition_spec.rb'
- 'spec/cucumber/running_test_case_spec.rb'
- 'spec/cucumber/runtime/support_code_spec.rb'
- 'spec/cucumber/world/pending_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Security/YAMLLoad:
Exclude:
- 'lib/cucumber/cli/profile_loader.rb'
# Offense count: 3
Style/ClassVars:
Exclude:
- 'spec/cucumber/glue/step_definition_spec.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Exclude:
- 'spec/support/shared_context/http_server.rb'
- 'spec/support/webrick_proc_handler_alias.rb'
# Offense count: 7
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'features/lib/support/env.rb'
- 'spec/cucumber/cli/options_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Exclude:
- 'lib/cucumber/formatter/unicode.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantFreeze:
Exclude:
- 'lib/cucumber/cli/options.rb'
- 'lib/cucumber/file_specs.rb'
- 'lib/cucumber/runtime.rb'
- 'lib/cucumber/term/ansicolor.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Style/StderrPuts:
Exclude:
- 'examples/i18n/Rakefile'
- 'lib/cucumber/cli/main.rb'
- 'lib/cucumber/deprecate.rb'
- 'lib/cucumber/formatter/unicode.rb'
- 'lib/cucumber/rake/task.rb'
- 'spec/cucumber/formatter/interceptor_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'spec/cucumber/cli/options_spec.rb'
- 'spec/cucumber/formatter/pretty_spec.rb'