-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop_fix_me.yml
491 lines (435 loc) · 16.8 KB
/
.rubocop_fix_me.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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
Lint/AmbiguousOperator:
Exclude:
- 'app/forms/deprecate_predicate_form.rb'
- 'app/forms/vocabulary_form.rb'
- 'app/forms/predicate_form.rb'
- 'app/forms/deprecate_vocabulary_form.rb'
- 'app/forms/term_form.rb'
- 'app/services/triplestore_loader.rb'
Naming/PredicateName:
Exclude:
- 'app/forms/deprecate_predicate_form.rb'
- 'app/forms/vocabulary_form.rb'
- 'app/forms/predicate_form.rb'
- 'app/forms/deprecate_term_form.rb'
- 'app/forms/deprecate_vocabulary_form.rb'
- 'app/forms/term_form.rb'
- 'app/controllers/concerns/git_interface.rb'
Style/GuardClause:
Exclude:
- 'app/decorators/sets_issued.rb'
- 'app/decorators/add_resource.rb'
- 'app/validators/is_valid_rdf_string.rb'
- 'app/validators/vocabulary_exists.rb'
- 'app/validators/term_is_unique.rb'
- 'app/validators/is_valid_rdf_import_url.rb'
- 'app/controllers/review_controller.rb'
- 'app/controllers/concerns/git_interface.rb'
Lint/UselessAssignment:
Exclude:
- 'app/decorators/term_with_children.rb'
- 'app/decorators/term_without_children.rb'
- 'app/controllers/concerns/git_interface.rb'
- 'app/services/rdf_loader.rb'
- 'spec/controllers/git_interface_spec.rb'
Metrics/AbcSize:
Exclude:
- 'app/decorators/sets_attributes.rb'
- 'app/repositories/triplestore_repository.rb'
- 'app/validators/is_valid_rdf_import_url.rb'
- 'app/controllers/terms_controller.rb'
- 'app/controllers/vocabularies_controller.rb'
- 'app/controllers/review_controller.rb'
- 'app/controllers/predicates_controller.rb'
- 'app/controllers/import_rdf_controller.rb'
- 'app/controllers/concerns/git_interface.rb'
- 'app/services/triplestore_loader.rb'
- 'spec/support/test_git_setup.rb'
Metrics/MethodLength:
Exclude:
- 'app/decorators/sets_attributes.rb'
- 'app/models/term.rb'
- 'app/validators/is_valid_rdf_import_url.rb'
- 'app/controllers/terms_controller.rb'
- 'app/controllers/vocabularies_controller.rb'
- 'app/controllers/predicates_controller.rb'
- 'app/controllers/import_rdf_controller.rb'
- 'app/controllers/concerns/git_interface.rb'
- 'app/services/triplestore_loader.rb'
- 'app/services/rdf_importer.rb'
- 'spec/support/test_git_setup.rb'
- 'lib/controlled_vocab_manager/iso_language_translator.rb'
Naming/AccessorMethodName:
Exclude:
- 'app/decorators/sets_attributes.rb'
- 'app/controllers/concerns/git_interface.rb'
- 'spec/controllers/terms_controller_spec.rb'
Style/CaseEquality:
Exclude:
- 'app/values/maybe_uri.rb'
Style/StructInheritance:
Exclude:
- 'app/queries/all_vocabs_query.rb'
- 'app/repositories/deprecate_predicate_form_repository.rb'
- 'app/repositories/vocabulary_form_repository.rb'
- 'app/repositories/deprecate_vocabulary_form_repository.rb'
- 'app/repositories/deprecate_term_form_repository.rb'
- 'app/repositories/term_form_repository.rb'
- 'app/repositories/standard_repository.rb'
- 'app/repositories/predicate_form_repository.rb'
- 'app/models/importable_term_list.rb'
- 'app/injectors/deprecate_term_injector.rb'
- 'app/injectors/deprecate_vocabulary_injector.rb'
- 'app/injectors/deprecate_predicate_injector.rb'
- 'app/injectors/predicate_injector.rb'
- 'app/injectors/term_injector.rb'
- 'app/injectors/vocabulary_injector.rb'
- 'app/services/graph_to_importable_term_list.rb'
- 'app/services/error_propagator.rb'
- 'app/services/graph_to_terms.rb'
- 'app/services/child_node_finder.rb'
- 'spec/support/pages/term_review_index_page.rb'
- 'spec/support/pages/term_create_page.rb'
- 'spec/support/pages/term_review_show_page.rb'
- 'spec/support/pages/vocabulary_show_page.rb'
- 'lib/subjects_to_graph.rb'
- 'lib/solutions_to_graph.rb'
- 'lib/param_cleaner.rb'
Lint/DisjunctiveAssignmentInConstructor:
Exclude:
- 'app/repositories/triplestore_repository.rb'
Naming/MethodName:
Exclude:
- 'app/models/term_id.rb'
Metrics/ClassLength:
Exclude:
- 'app/models/term.rb'
- 'app/controllers/terms_controller.rb'
- 'app/controllers/vocabularies_controller.rb'
- 'app/controllers/predicates_controller.rb'
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/injectors/deprecate_vocabulary_injector.rb'
- 'app/controllers/terms_controller.rb'
- 'app/controllers/vocabularies_controller.rb'
- 'app/controllers/predicates_controller.rb'
Style/FormatStringToken:
Exclude:
- 'app/validators/terms_are_importable.rb'
- 'app/validators/termlist_has_no_duplicates.rb'
- 'spec/views/shared/_errors.html.erb_spec.rb'
Naming/ConstantName:
Exclude:
- 'app/validators/is_replaced_by_validations.rb'
- 'app/validators/term_validations.rb'
Style/FormatString:
Exclude:
- 'app/validators/termlist_has_no_duplicates.rb'
- 'spec/views/shared/_errors.html.erb_spec.rb'
Metrics/PerceivedComplexity:
Exclude:
- 'app/controllers/terms_controller.rb'
- 'app/controllers/vocabularies_controller.rb'
- 'app/controllers/predicates_controller.rb'
- 'app/controllers/concerns/git_interface.rb'
- 'app/decorators/sets_attributes.rb'
Metrics/CyclomaticComplexity:
Exclude:
- 'app/controllers/terms_controller.rb'
- 'app/controllers/concerns/git_interface.rb'
- 'app/decorators/sets_attributes.rb'
- 'app/services/triplestore_loader.rb'
Style/IdenticalConditionalBranches:
Exclude:
- 'app/controllers/terms_controller.rb'
- 'app/controllers/vocabularies_controller.rb'
- 'app/controllers/review_controller.rb'
Style/EmptyElse:
Exclude:
- 'app/controllers/review_controller.rb'
Metrics/ModuleLength:
Exclude:
- 'app/controllers/concerns/git_interface.rb'
Lint/EmptyWhen:
Exclude:
- 'app/controllers/concerns/git_interface.rb'
Layout/DefEndAlignment:
Exclude:
- 'app/controllers/concerns/git_interface.rb'
Lint/DuplicateMethods:
Exclude:
- 'app/services/graph_to_importable_term_list.rb'
- 'app/services/triplestore_loader.rb'
Lint/UselessAccessModifier:
Exclude:
- 'app/services/rdf_loader.rb'
- 'app/services/preload_cache.rb'
Lint/IneffectiveAccessModifier:
Exclude:
- 'app/services/rdf_loader.rb'
- 'app/services/preload_cache.rb'
Metrics/BlockLength:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/spec_helper.rb'
- 'spec/forms/load_form_spec.rb'
- 'spec/forms/deprecate_predicate_form_spec.rb'
- 'spec/forms/import_form_spec.rb'
- 'spec/forms/vocabulary_form_spec.rb'
- 'spec/forms/deprecate_vocabulary_form_spec.rb'
- 'spec/forms/deprecate_term_form_spec.rb'
- 'spec/forms/term_form_spec.rb'
- 'spec/decorators/sets_modified_spec.rb'
- 'spec/decorators/term_with_children_spec.rb'
- 'spec/decorators/sets_attributes_spec.rb'
- 'spec/decorators/sets_issued_spec.rb'
- 'spec/features/create_term_spec.rb'
- 'spec/features/import_rdf_term_spec.rb'
- 'spec/features/create_vocabulary_spec.rb'
- 'spec/features/load_rdf_term_spec.rb'
- 'spec/queries/all_vocabs_query_spec.rb'
- 'spec/models/term_type_spec.rb'
- 'spec/models/term_spec.rb'
- 'spec/models/importable_term_list_spec.rb'
- 'spec/models/term_id_spec.rb'
- 'spec/models/vocabulary_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/models/term_uri_spec.rb'
- 'spec/lib/active_triples_adapter_spec.rb'
- 'spec/lib/controlled_vocab_manager/iso_language_translator_spec.rb'
- 'spec/validators/is_valid_is_replaced_by.rb'
- 'spec/validators/is_valid_rdf_string_spec.rb'
- 'spec/validators/is_valid_rdf_import_url_spec.rb'
- 'spec/routing/term_routes_spec.rb'
- 'spec/controllers/predicates_controller_spec.rb'
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/vocabularies_controller_spec.rb'
- 'spec/controllers/git_interface_spec.rb'
- 'spec/controllers/import_rdf_controller_spec.rb'
- 'spec/controllers/review_controller_spec.rb'
- 'spec/views/vocabularies/edit.html.erb_spec.rb'
- 'spec/views/vocabularies/new.html.erb_spec.rb'
- 'spec/views/vocabularies/index.html.erb_spec.rb'
- 'spec/views/import_rdf/_form.html.erb_spec.rb'
- 'spec/views/import_rdf/preview_import.html.erb_spec.rb'
- 'spec/views/terms/edit.html.erb_spec.rb'
- 'spec/views/terms/show.html.erb_spec.rb'
- 'spec/views/terms/new.html.erb_spec.rb'
- 'spec/views/terms/deprecate.html.erb_spec.rb'
- 'spec/views/shared/_errors.html.erb_spec.rb'
- 'spec/views/review/show.html.erb_spec.rb'
- 'spec/services/rdf_importer_spec.rb'
- 'spec/services/polymorphic_term_repository_spec.rb'
- 'spec/services/error_propagator_spec.rb'
- 'spec/services/child_node_finder_spec.rb'
- 'spec/services/triplestore_loader_spec.rb'
- 'spec/services/rdf_loader_spec.rb'
Capybara/FeatureMethods:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
Style/StringLiterals:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
Style/HashSyntax:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
Layout/SpaceAfterComma:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
Layout/SpaceInsideBlockBraces:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
RSpec/ExampleLength:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
- 'spec/features/create_term_spec.rb'
- 'spec/features/import_rdf_term_spec.rb'
- 'spec/features/create_vocabulary_spec.rb'
- 'spec/features/load_rdf_term_spec.rb'
- 'spec/controllers/git_interface_spec.rb'
- 'spec/services/triplestore_loader_spec.rb'
RSpec/MultipleExpectations:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
- 'spec/ui/default_language_select_spec.rb'
- 'spec/forms/load_form_spec.rb'
- 'spec/forms/deprecate_predicate_form_spec.rb'
- 'spec/forms/import_form_spec.rb'
- 'spec/forms/vocabulary_form_spec.rb'
- 'spec/forms/deprecate_vocabulary_form_spec.rb'
- 'spec/forms/deprecate_term_form_spec.rb'
- 'spec/forms/term_form_spec.rb'
- 'spec/composites/decorator_list_spec.rb'
- 'spec/features/create_term_spec.rb'
- 'spec/features/import_rdf_term_spec.rb'
- 'spec/features/create_vocabulary_spec.rb'
- 'spec/features/load_rdf_term_spec.rb'
- 'spec/values/maybe_uri.rb'
- 'spec/models/term_type_spec.rb'
- 'spec/models/term_spec.rb'
- 'spec/models/importable_term_list_spec.rb'
- 'spec/models/predicate_spec.rb'
- 'spec/models/vocabulary_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/lib/controlled_vocab_manager/iso_language_translator_spec.rb'
- 'spec/validators/is_valid_rdf_string_spec.rb'
- 'spec/validators/is_valid_rdf_import_url_spec.rb'
- 'spec/controllers/predicates_controller_spec.rb'
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/vocabularies_controller_spec.rb'
- 'spec/controllers/git_interface_spec.rb'
- 'spec/controllers/import_rdf_controller_spec.rb'
- 'spec/controllers/review_controller_spec.rb'
- 'spec/views/vocabularies/edit.html.erb_spec.rb'
- 'spec/views/vocabularies/new.html.erb_spec.rb'
- 'spec/views/import_rdf/_form.html.erb_spec.rb'
- 'spec/views/import_rdf/preview_import.html.erb_spec.rb'
- 'spec/views/terms/show.html.erb_spec.rb'
- 'spec/views/terms/new.html.erb_spec.rb'
- 'spec/views/review/show.html.erb_spec.rb'
- 'spec/services/rdf_importer_spec.rb'
- 'spec/services/polymorphic_term_repository_spec.rb'
- 'spec/services/error_propagator_spec.rb'
- 'spec/services/child_node_finder_spec.rb'
- 'spec/services/triplestore_loader_spec.rb'
- 'spec/services/rdf_loader_spec.rb'
Style/ColonMethodCall:
Exclude:
- 'spec/ui/term_type_select_spec.rb'
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'spec/ui/default_language_select_spec.rb'
RSpec/NamedSubject:
Exclude:
- 'spec/forms/deprecate_predicate_form_spec.rb'
- 'spec/forms/vocabulary_form_spec.rb'
- 'spec/forms/deprecate_vocabulary_form_spec.rb'
- 'spec/forms/deprecate_term_form_spec.rb'
- 'spec/forms/term_form_spec.rb'
- 'spec/decorators/decorator_with_arguments_spec.rb'
- 'spec/decorators/sets_modified_spec.rb'
- 'spec/decorators/term_with_children_spec.rb'
- 'spec/decorators/sets_attributes_spec.rb'
- 'spec/decorators/sets_issued_spec.rb'
- 'spec/repositories/deprecate_term_form_repository_spec.rb'
- 'spec/repositories/triplestore_repository_spec.rb'
- 'spec/repositories/deprecate_vocabulary_form_repository_spec.rb'
- 'spec/repositories/deprecate_predicate_form_repository_spec.rb'
- 'spec/models/combined_id_spec.rb'
- 'spec/models/term_id_spec.rb'
- 'spec/models/term_uri_spec.rb'
- 'spec/controllers/predicates_controller_spec.rb'
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/vocabularies_controller_spec.rb'
- 'spec/services/graph_to_importable_term_list_spec.rb'
- 'spec/services/graph_to_terms_spec.rb'
RSpec/SubjectStub:
Exclude:
- 'spec/controllers/predicates_controller_spec.rb'
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/vocabularies_controller_spec.rb'
- 'spec/forms/vocabulary_form_spec.rb'
RSpec/VerifiedDoubles:
Exclude:
- 'spec/decorators/decorator_with_arguments_spec.rb'
- 'spec/composites/decorator_list_spec.rb'
- 'spec/values/maybe_uri.rb'
- 'spec/app_factories/decorating_repository_spec.rb'
- 'spec/validators/is_valid_rdf_string_spec.rb'
- 'spec/validators/is_valid_rdf_import_url_spec.rb'
- 'spec/services/polymorphic_term_repository_spec.rb'
- 'spec/services/graph_to_importable_term_list_spec.rb'
- 'spec/services/error_propagator_spec.rb'
RSpec/ScatteredLet:
Exclude:
- 'spec/features/create_term_spec.rb'
- 'spec/features/create_vocabulary_spec.rb'
- 'spec/features/load_rdf_term_spec.rb'
- 'spec/queries/all_vocabs_query_spec.rb'
RSpec/VoidExpect:
Exclude:
- 'spec/features/create_term_spec.rb'
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/features/create_term_spec.rb'
- 'spec/features/create_vocabulary_spec.rb'
RSpec/ScatteredSetup:
Exclude:
- 'spec/features/create_vocabulary_spec.rb'
- 'spec/queries/all_vocabs_query_spec.rb'
- 'spec/lib/active_triples_adapter_spec.rb'
RSpec/FilePath:
Exclude:
- 'spec/values/maybe_uri.rb'
- 'spec/validators/is_valid_is_replaced_by.rb'
RSpec/UnspecifiedException:
Exclude:
- 'spec/repositories/triplestore_repository_spec.rb'
RSpec/ContextWording:
Exclude:
- 'spec/models/term_spec.rb'
- 'spec/models/importable_term_list_spec.rb'
- 'spec/models/user_spec.rb'
- 'spec/lib/active_triples_adapter_spec.rb'
- 'spec/lib/controlled_vocab_manager/iso_language_translator_spec.rb'
- 'spec/controllers/predicates_controller_spec.rb'
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/vocabularies_controller_spec.rb'
- 'spec/controllers/import_rdf_controller_spec.rb'
- 'spec/controllers/review_controller_spec.rb'
- 'spec/controllers/users/registrations_controller_spec.rb'
- 'spec/views/vocabularies/edit.html.erb_spec.rb'
- 'spec/views/review/show.html.erb_spec.rb'
- 'spec/services/rdf_importer_spec.rb'
- 'spec/services/error_propagator_spec.rb'
- 'spec/services/graph_to_terms_spec.rb'
RSpec/IteratedExpectation:
Exclude:
- 'spec/models/importable_term_list_spec.rb'
Style/ClassVars:
Exclude:
- 'spec/support/share_db_connection.rb'
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'spec/support/test_git_setup.rb'
- 'spec/controllers/terms_controller_spec.rb'
RSpec/NestedGroups:
Exclude:
- 'spec/controllers/predicates_controller_spec.rb'
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/vocabularies_controller_spec.rb'
- 'spec/controllers/import_rdf_controller_spec.rb'
- 'spec/controllers/review_controller_spec.rb'
- 'spec/services/rdf_importer_spec.rb'
- 'spec/services/error_propagator_spec.rb'
- 'spec/services/rdf_loader_spec.rb'
RSpec/ExpectInHook:
Exclude:
- 'spec/controllers/terms_controller_spec.rb'
- 'spec/controllers/import_rdf_controller_spec.rb'
- 'spec/services/rdf_importer_spec.rb'
- 'spec/services/graph_to_importable_term_list_spec.rb'
RSpec/OverwritingSetup:
Exclude:
- 'spec/controllers/terms_controller_spec.rb'
RSpec/InstanceVariable:
Exclude:
- 'spec/controllers/users/registrations_controller_spec.rb'
RSpec/BeforeAfterAll:
Exclude:
- 'spec/services/triplestore_loader_spec.rb'
- 'spec/services/rdf_loader_spec.rb'
- 'spec/spec_helper.rb'
Naming/MethodParameterName:
Exclude:
- 'lib/param_cleaner.rb'