-
Notifications
You must be signed in to change notification settings - Fork 33
/
.rubocop_todo.yml
344 lines (313 loc) · 12.8 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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 99999999999`
# on 2023-03-28 16:02:29 UTC using RuboCop version 1.46.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.
# Offense count: 6
Betterment/NonStandardActions:
Exclude:
- 'config/routes.rb'
# Offense count: 13
Betterment/UnscopedFind:
Exclude:
- 'app/controllers/admin/bulk_assignments_controller.rb'
- 'app/controllers/admin/decisions_controller.rb'
- 'app/controllers/admin/split_configs_controller.rb'
- 'app/controllers/admin/split_details_controller.rb'
- 'app/controllers/admin/splits_controller.rb'
- 'app/controllers/admin/variant_details_controller.rb'
- 'app/controllers/api/v1/split_details_controller.rb'
- 'app/models/visitor.rb'
# Offense count: 28
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
Exclude:
- 'app/models/app_remote_kill.rb'
- 'app/models/app_remote_kill_migration.rb'
- 'app/models/split.rb'
- 'app/models/split_decision_migration.rb'
- 'app/models/split_retirement_migration.rb'
- 'app/views/api/v1/app_identifier_visitor_configs/show.json.jbuilder'
- 'app/views/api/v1/app_visitor_configs/show.json.jbuilder'
- 'app/views/api/v4/app_identifiers/create.json.jbuilder'
- 'app/views/api/v4/app_visitor_configs/show.json.jbuilder'
- 'config/initializers/devise.rb'
- 'spec/controllers/api/v1/identifiers_controller_spec.rb'
- 'spec/controllers/api/v1/visitors_controller_spec.rb'
- 'spec/models/deterministic_assignment_creation_spec.rb'
- 'spec/models/visitor_supersession_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
Exclude:
- 'config/initializers/devise.rb'
- 'config/routes.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
Exclude:
- 'app/models/split_detail.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'config/initializers/attribute_normalizer.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Exclude:
- 'config/initializers/devise.rb'
- 'config/initializers/simple_form.rb'
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopDisableDirective:
Exclude:
- 'app/controllers/api/v4/app_identifiers_controller.rb'
- 'app/controllers/api/v4/app_visitor_configs_controller.rb'
- 'app/inputs/collection_radio_buttons_input.rb'
- 'app/inputs/collection_select_input.rb'
- 'app/inputs/radio_button.rb'
- 'app/models/arbitrary_assignment_creation.rb'
- 'app/models/concerns/delegate_attribute.rb'
- 'app/models/deterministic_assignment_creation.rb'
- 'app/models/split_upsert.rb'
- 'app/models/visitor_supersession.rb'
- 'lib/test_track/attachment_settings.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'config/initializers/simple_form.rb'
# Offense count: 21
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'app/inputs/grouped_collection_select_input.rb'
- 'config/initializers/simple_form.rb'
- 'config/routes.rb'
- 'lib/test_track/attachment_settings.rb'
- 'spec/controllers/api/v2/assignment_overrides_controller_spec.rb'
- 'spec/models/arbitrary_assignment_creation_spec.rb'
- 'spec/models/deterministic_assignment_creation_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Performance/Detect:
Exclude:
- 'app/models/assignment.rb'
# Offense count: 69
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/controllers/authenticated_api_controller_spec.rb'
- 'spec/models/admin_spec.rb'
- 'spec/models/arbitrary_assignment_creation_spec.rb'
- 'spec/models/batch_arbitrary_assignment_creation_spec.rb'
- 'spec/models/deterministic_assignment_creation_spec.rb'
- 'spec/models/split_spec.rb'
# Offense count: 12
RSpec/SubjectStub:
Exclude:
- 'spec/controllers/concerns/cors_support_spec.rb'
- 'spec/models/variant_calculator_spec.rb'
# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
Rails/BelongsTo:
Exclude:
- 'app/models/assignment.rb'
- 'app/models/identifier.rb'
- 'app/models/identifier_type.rb'
- 'app/models/previous_assignment.rb'
- 'app/models/split.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/EnumHash:
Exclude:
- 'app/models/split.rb'
# Offense count: 6
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'config/environments/development.rb'
- 'lib/tasks/seed_app.rake'
- 'spec/rails_helper.rb'
- 'spec/requests/api/v1/split_details_spec.rb'
- 'spec/system/admin_variant_details_edit_spec.rb'
# Offense count: 6
Rails/I18nLocaleTexts:
Exclude:
- 'app/controllers/admin/bulk_assignments_controller.rb'
- 'app/controllers/admin/split_configs_controller.rb'
- 'app/controllers/admin/split_details_controller.rb'
- 'app/controllers/admins/omniauth_callbacks_controller.rb'
- 'app/models/app_remote_kill.rb'
- 'app/models/bulk_assignment_creation.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: **/Rakefile, **/*.rake
Rails/RakeEnvironment:
Exclude:
- 'lib/tasks/seed_app.rake'
- 'lib/tasks/vendor_deps.rake'
# Offense count: 1
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/UniqueValidationWithoutIndex:
Exclude:
- 'app/models/app.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rake/Desc:
Exclude:
- 'lib/tasks/vendor_deps.rake'
# Offense count: 1
Rake/DuplicateTask:
Exclude:
- 'Rakefile'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ColonMethodCall:
Exclude:
- 'config/initializers/airbrake.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExpandPathArguments:
Exclude:
- 'config.ru'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Exclude:
- 'config/environments/production.rb'
- 'config/environments/stage.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Exclude:
- 'config/environments/production.rb'
- 'config/environments/stage.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
Exclude:
- 'config/routes.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: .
# SupportedStyles: percent, brackets
Style/SymbolArray:
EnforcedStyle: percent
MinSize: 3
# Offense count: 114
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArguments:
Exclude:
- 'app/controllers/api/v4/app_identifiers_controller.rb'
- 'app/models/app_feature_completion.rb'
- 'app/models/app_identifier_claim.rb'
- 'app/models/app_remote_kill.rb'
- 'app/models/app_remote_kill_migration.rb'
- 'app/models/arbitrary_assignment_creation.rb'
- 'app/models/assignment.rb'
- 'app/models/batch_arbitrary_assignment_creation.rb'
- 'app/models/bulk_assignment_creation.rb'
- 'app/models/decision.rb'
- 'app/models/deterministic_assignment_creation.rb'
- 'app/models/split.rb'
- 'app/models/visitor_lookup.rb'
- 'app/models/visitor_supersession.rb'
- 'spec/controllers/api/v1/app_identifier_visitor_configs_controller_spec.rb'
- 'spec/controllers/api/v1/app_visitor_configs_controller_spec.rb'
- 'spec/controllers/api/v1/identifiers_controller_spec.rb'
- 'spec/controllers/api/v1/split_registries_controller_spec.rb'
- 'spec/controllers/api/v1/visitors_controller_spec.rb'
- 'spec/controllers/api/v2/split_registries_controller_spec.rb'
- 'spec/controllers/api/v3/split_registries_controller_spec.rb'
- 'spec/controllers/api/v4/app_identifiers_controller_spec.rb'
- 'spec/controllers/api/v4/app_visitor_configs_controller_spec.rb'
- 'spec/models/admin_spec.rb'
- 'spec/models/app_remote_kill_migration_spec.rb'
- 'spec/models/app_version_build_path_spec.rb'
- 'spec/models/arbitrary_assignment_creation_spec.rb'
- 'spec/models/batch_arbitrary_assignment_creation_spec.rb'
- 'spec/models/bulk_assignment_creation_spec.rb'
- 'spec/models/identifier_claim_spec.rb'
- 'spec/requests/api/v1/split_details_spec.rb'
- 'spec/requests/api/v1/visitor_details_spec.rb'
- 'spec/support/login_helper.rb'
- 'spec/system/admin_bulk_assignment_create_spec.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'spec/controllers/api/v2/assignment_overrides_controller_spec.rb'
- 'spec/controllers/api/v2/migrations_controller_spec.rb'
- 'spec/controllers/api/v4/split_registries_controller_spec.rb'
- 'spec/models/batch_arbitrary_assignment_creation_spec.rb'
- 'spec/requests/api/v1/split_details_spec.rb'
# Offense count: 72
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Exclude:
- 'app/components/flash_component.rb'
- 'app/controllers/api/system/statuses_controller.rb'
- 'app/models/arbitrary_assignment_creation.rb'
- 'app/models/assignment.rb'
- 'config/environments/development.rb'
- 'config/environments/test.rb'
- 'config/initializers/simple_form.rb'
- 'lib/test_track/attachment_settings.rb'
- 'spec/controllers/api/v1/app_identifier_visitor_configs_controller_spec.rb'
- 'spec/controllers/api/v1/app_visitor_configs_controller_spec.rb'
- 'spec/controllers/api/v1/assignment_events_controller_spec.rb'
- 'spec/controllers/api/v1/assignment_overrides_controller_spec.rb'
- 'spec/controllers/api/v2/assignment_overrides_controller_spec.rb'
- 'spec/controllers/api/v2/migrations/app_remote_kills_controller_spec.rb'
- 'spec/controllers/api/v2/migrations_controller_spec.rb'
- 'spec/controllers/api/v2/split_registries_controller_spec.rb'
- 'spec/controllers/api/v3/split_registries_controller_spec.rb'
- 'spec/controllers/api/v4/app_identifiers_controller_spec.rb'
- 'spec/controllers/api/v4/app_visitor_configs_controller_spec.rb'
- 'spec/controllers/api/v4/split_registries_controller_spec.rb'
- 'spec/models/admin_spec.rb'
- 'spec/models/app_identifier_claim_spec.rb'
- 'spec/models/arbitrary_assignment_creation_spec.rb'
- 'spec/models/batch_arbitrary_assignment_creation_spec.rb'
- 'spec/models/bulk_assignment_creation_spec.rb'
- 'spec/models/bulk_reassignment_spec.rb'
- 'spec/models/deterministic_assignment_creation_spec.rb'
- 'spec/models/variant_calculator_spec.rb'
- 'spec/models/variant_retirement_spec.rb'
- 'spec/requests/api/v1/split_details_spec.rb'
- 'spec/support/login_helper.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
EnforcedStyle: percent
MinSize: 4