1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2019-04-08 15:57:26 -0500 using RuboCop version 0.58.2.
3
+ # on 2020-06-09 17:52:24 -0700 using RuboCop version 0.58.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
- # Offense count: 12
9
+ # Offense count: 11
10
10
# Cop supports --auto-correct.
11
11
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
12
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
@@ -20,12 +20,11 @@ Lint/AmbiguousOperator:
20
20
- ' app/models/hydrus/collection.rb'
21
21
- ' app/models/hydrus/solr_queryable.rb'
22
22
23
- # Offense count: 4
23
+ # Offense count: 3
24
24
Lint/AmbiguousRegexpLiteral :
25
25
Exclude :
26
26
- ' devel/get_datastreams.rb'
27
27
- ' spec/features/collection_create_spec.rb'
28
- - ' spec/support/helpers.rb'
29
28
30
29
# Offense count: 1
31
30
# Configuration parameters: AllowSafeAssignment.
@@ -107,7 +106,7 @@ Lint/UnusedMethodArgument:
107
106
- ' devel/dashboard_experiment.rb'
108
107
- ' spec/helpers/application_helper_spec.rb'
109
108
110
- # Offense count: 29
109
+ # Offense count: 28
111
110
Lint/UselessAssignment :
112
111
Exclude :
113
112
- ' app/models/hydrus/collection.rb'
@@ -121,7 +120,6 @@ Lint/UselessAssignment:
121
120
- ' spec/features/collection_edit_spec.rb'
122
121
- ' spec/features/item_create_spec.rb'
123
122
- ' spec/features/item_edit_spec.rb'
124
- - ' spec/features/models/item_spec.rb'
125
123
- ' spec/helpers/application_helper_spec.rb'
126
124
- ' spec/models/hydrus/solr_queryable_spec.rb'
127
125
- ' spec/support/helpers.rb'
@@ -132,15 +130,15 @@ Lint/Void:
132
130
Exclude :
133
131
- ' spec/features/item_create_spec.rb'
134
132
135
- # Offense count: 43
133
+ # Offense count: 44
136
134
Metrics/AbcSize :
137
135
Max : 119
138
136
139
- # Offense count: 11
137
+ # Offense count: 10
140
138
# Configuration parameters: CountComments, ExcludedMethods.
141
139
# ExcludedMethods: refine
142
140
Metrics/BlockLength :
143
- Max : 163
141
+ Max : 129
144
142
145
143
# Offense count: 9
146
144
# Configuration parameters: CountComments.
@@ -165,13 +163,12 @@ Metrics/ModuleLength:
165
163
Metrics/PerceivedComplexity :
166
164
Max : 24
167
165
168
- # Offense count: 7
166
+ # Offense count: 6
169
167
Naming/AccessorMethodName :
170
168
Exclude :
171
169
- ' app/models/hydrus/eventable.rb'
172
170
- ' app/models/hydrus/generic_object.rb'
173
171
- ' app/models/hydrus/object_file.rb'
174
- - ' app/models/hydrus/workflow_ds_extension.rb'
175
172
176
173
# Offense count: 18
177
174
# Configuration parameters: EnforcedStyle.
@@ -181,7 +178,7 @@ Naming/HeredocDelimiterCase:
181
178
- ' spec/models/hydrus/item_spec.rb'
182
179
- ' spec/models/hydrus/related_item_spec.rb'
183
180
184
- # Offense count: 29
181
+ # Offense count: 28
185
182
# Configuration parameters: Blacklist.
186
183
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
187
184
Naming/HeredocDelimiterNaming :
@@ -214,7 +211,7 @@ Naming/MethodName:
214
211
Exclude :
215
212
- ' app/models/hydrus/admin_policy_object.rb'
216
213
217
- # Offense count: 39
214
+ # Offense count: 38
218
215
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
219
216
# NamePrefix: is_, has_, have_
220
217
# NamePrefixBlacklist: is_, has_, have_
@@ -233,7 +230,6 @@ Naming/PredicateName:
233
230
- ' app/models/hydrus/generic_object_stuff.rb'
234
231
- ' app/models/hydrus/item.rb'
235
232
- ' app/models/hydrus/object_file.rb'
236
- - ' app/models/hydrus/processable.rb'
237
233
- ' app/models/hydrus/user_workflowable.rb'
238
234
- ' app/models/user.rb'
239
235
@@ -291,14 +287,12 @@ Performance/StartWith:
291
287
Exclude :
292
288
- ' app/models/hydrus/item.rb'
293
289
294
- # Offense count: 5
290
+ # Offense count: 3
295
291
# Cop supports --auto-correct.
296
292
Performance/StringReplacement :
297
293
Exclude :
298
- - ' app/helpers/application_helper.rb'
299
294
- ' app/models/hydrus/remediation_runner.rb'
300
295
- ' app/models/hydrus/responsible.rb'
301
- - ' lib/tasks/fixtures.rake'
302
296
303
297
# Offense count: 37
304
298
# Cop supports --auto-correct.
@@ -326,21 +320,20 @@ Style/BarePercentLiterals:
326
320
Style/BlockDelimiters :
327
321
Enabled : false
328
322
329
- # Offense count: 11
323
+ # Offense count: 9
330
324
# Cop supports --auto-correct.
331
325
# Configuration parameters: EnforcedStyle.
332
326
# SupportedStyles: braces, no_braces, context_dependent
333
327
Style/BracesAroundHashParameters :
334
328
Exclude :
335
329
- ' devel/dashboard_experiment.rb'
336
330
- ' lib/tasks/hydrus.rake'
337
- - ' spec/controllers/hydrus_items_controller_spec.rb'
338
331
- ' spec/features/collection_create_spec.rb'
339
332
- ' spec/features/item_create_spec.rb'
340
333
- ' spec/lib/is_druid_validator_spec.rb'
341
334
- ' spec/models/hydrus/item_spec.rb'
342
335
343
- # Offense count: 31
336
+ # Offense count: 29
344
337
# Cop supports --auto-correct.
345
338
# Configuration parameters: AutoCorrect, EnforcedStyle.
346
339
# SupportedStyles: nested, compact
@@ -355,7 +348,7 @@ Style/ClassCheck:
355
348
Exclude :
356
349
- ' app/models/hydrus/generic_object_stuff.rb'
357
350
358
- # Offense count: 4
351
+ # Offense count: 3
359
352
Style/ClassVars :
360
353
Exclude :
361
354
- ' app/controllers/hydrus_solr_controller.rb'
@@ -405,7 +398,7 @@ Style/DefWithParentheses:
405
398
- ' app/models/hy_time.rb'
406
399
- ' devel/list_all_hydrus_objects.rb'
407
400
408
- # Offense count: 70
401
+ # Offense count: 69
409
402
Style/Documentation :
410
403
Enabled : false
411
404
@@ -450,7 +443,7 @@ Style/ExpandPathArguments:
450
443
- ' script/rails'
451
444
- ' spec/spec_helper.rb'
452
445
453
- # Offense count: 180
446
+ # Offense count: 183
454
447
# Cop supports --auto-correct.
455
448
# Configuration parameters: EnforcedStyle.
456
449
# SupportedStyles: when_needed, always, never
@@ -464,7 +457,7 @@ Style/GlobalVars:
464
457
- ' devel/experiment.rb'
465
458
- ' spec/support/rubydora_transactions_monkeypatch.rb'
466
459
467
- # Offense count: 23
460
+ # Offense count: 22
468
461
# Configuration parameters: MinBodyLength.
469
462
Style/GuardClause :
470
463
Exclude :
@@ -473,7 +466,6 @@ Style/GuardClause:
473
466
- ' app/helpers/application_helper.rb'
474
467
- ' app/models/hydra/datastream/rights_metadata.rb'
475
468
- ' app/models/hydrus/accessible.rb'
476
- - ' app/models/hydrus/collection.rb'
477
469
- ' app/models/hydrus/contentable.rb'
478
470
- ' app/models/hydrus/generic_ds.rb'
479
471
- ' app/models/hydrus/item.rb'
@@ -493,7 +485,7 @@ Style/IfInsideElse:
493
485
- ' app/models/hydrus/item.rb'
494
486
- ' devel/create_test_item.rb'
495
487
496
- # Offense count: 22
488
+ # Offense count: 21
497
489
# Cop supports --auto-correct.
498
490
Style/IfUnlessModifier :
499
491
Exclude :
@@ -531,7 +523,7 @@ Style/LineEndConcatenation:
531
523
Exclude :
532
524
- ' spec/models/hydrus/item_spec.rb'
533
525
534
- # Offense count: 84
526
+ # Offense count: 71
535
527
# Cop supports --auto-correct.
536
528
# Configuration parameters: IgnoredMethods.
537
529
Style/MethodCallWithoutArgsParentheses :
@@ -642,7 +634,7 @@ Style/ParenthesesAroundCondition:
642
634
- ' app/models/hydrus/item.rb'
643
635
- ' app/models/hydrus/object_file.rb'
644
636
645
- # Offense count: 126
637
+ # Offense count: 124
646
638
# Cop supports --auto-correct.
647
639
# Configuration parameters: PreferredDelimiters.
648
640
Style/PercentLiteralDelimiters :
@@ -657,7 +649,7 @@ Style/PercentQLiterals:
657
649
- ' spec/models/hydrus/accessible_spec.rb'
658
650
- ' spec/models/hydrus/item_spec.rb'
659
651
660
- # Offense count: 22
652
+ # Offense count: 21
661
653
# Cop supports --auto-correct.
662
654
# Configuration parameters: EnforcedStyle.
663
655
# SupportedStyles: short, verbose
@@ -668,15 +660,14 @@ Style/PreferredHashMethods:
668
660
- ' app/helpers/hydrus_form_helper.rb'
669
661
- ' devel/create_test_item.rb'
670
662
671
- # Offense count: 3
663
+ # Offense count: 2
672
664
# Cop supports --auto-correct.
673
665
# Configuration parameters: EnforcedStyle.
674
666
# SupportedStyles: compact, exploded
675
667
Style/RaiseArgs :
676
668
Exclude :
677
669
- ' app/controllers/datastreams_controller.rb'
678
670
- ' app/controllers/events_controller.rb'
679
- - ' app/controllers/hydrus_items_controller.rb'
680
671
681
672
# Offense count: 1
682
673
# Cop supports --auto-correct.
@@ -696,7 +687,7 @@ Style/RedundantSelf:
696
687
- ' app/models/hydrus/item.rb'
697
688
- ' app/models/hydrus/user_workflowable.rb'
698
689
699
- # Offense count: 10
690
+ # Offense count: 8
700
691
# Cop supports --auto-correct.
701
692
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
702
693
# SupportedStyles: slashes, percent_r, mixed
@@ -706,11 +697,9 @@ Style/RegexpLiteral:
706
697
- ' app/models/hydrus/generic_object_stuff.rb'
707
698
- ' app/models/hydrus/solr_queryable.rb'
708
699
- ' spec/controllers/hydrus_collections_controller_spec.rb'
709
- - ' spec/controllers/hydrus_items_controller_spec.rb'
710
700
- ' spec/helpers/hydrus_form_helper_spec.rb'
711
701
- ' spec/models/hydrus/item_spec.rb'
712
702
- ' spec/models/hydrus/object_file_spec.rb'
713
- - ' spec/support/helpers.rb'
714
703
715
704
# Offense count: 1
716
705
# Cop supports --auto-correct.
@@ -749,7 +738,7 @@ Style/StringLiteralsInInterpolation:
749
738
Exclude :
750
739
- ' app/helpers/hydrus_form_helper.rb'
751
740
752
- # Offense count: 63
741
+ # Offense count: 64
753
742
# Cop supports --auto-correct.
754
743
# Configuration parameters: MinSize.
755
744
# SupportedStyles: percent, brackets
@@ -784,14 +773,14 @@ Style/TrailingCommaInArguments:
784
773
- ' spec/features/item_create_spec.rb'
785
774
- ' spec/features/item_edit_spec.rb'
786
775
787
- # Offense count: 60
776
+ # Offense count: 59
788
777
# Cop supports --auto-correct.
789
778
# Configuration parameters: EnforcedStyleForMultiline.
790
779
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
791
780
Style/TrailingCommaInArrayLiteral :
792
781
Enabled : false
793
782
794
- # Offense count: 85
783
+ # Offense count: 84
795
784
# Cop supports --auto-correct.
796
785
# Configuration parameters: EnforcedStyleForMultiline.
797
786
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
@@ -854,7 +843,7 @@ Style/WordArray:
854
843
Style/ZeroLengthPredicate :
855
844
Enabled : false
856
845
857
- # Offense count: 940
846
+ # Offense count: 1013
858
847
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
859
848
# URISchemes: http, https
860
849
Metrics/LineLength :
0 commit comments