@@ -96,25 +96,6 @@ Naming/PredicateName:
96
96
- ' app/models/port_type.rb'
97
97
- ' app/models/server.rb'
98
98
99
- # Offense count: 1
100
- # This cop supports safe autocorrection (--autocorrect).
101
- # Configuration parameters: PreferredName.
102
- Naming/RescuedExceptionsVariableName :
103
- Exclude :
104
- - ' app/controllers/servers_grids_controller.rb'
105
-
106
- # Offense count: 1
107
- # Configuration parameters: MinSize.
108
- Performance/CollectionLiteralInLoop :
109
- Exclude :
110
- - ' lib/tasks/update_pdu_lines.rake'
111
-
112
- # Offense count: 1
113
- # This cop supports safe autocorrection (--autocorrect).
114
- Performance/CompareWithBlock :
115
- Exclude :
116
- - ' app/models/frame.rb'
117
-
118
99
# Offense count: 2
119
100
# This cop supports unsafe autocorrection (--autocorrect-all).
120
101
Performance/Detect :
@@ -128,13 +109,6 @@ Performance/MapCompact:
128
109
Exclude :
129
110
- ' app/models/server.rb'
130
111
131
- # Offense count: 1
132
- # This cop supports unsafe autocorrection (--autocorrect-all).
133
- # Configuration parameters: MaxKeyValuePairs.
134
- Performance/RedundantMerge :
135
- Exclude :
136
- - ' app/controllers/servers_controller.rb'
137
-
138
112
# Offense count: 3
139
113
# This cop supports safe autocorrection (--autocorrect).
140
114
Performance/StringReplacement :
@@ -252,14 +226,6 @@ Rails/DynamicFindBy:
252
226
- ' db/migrate/20180110152701_add_attributes_to_servers.rb'
253
227
- ' lib/tasks/update_pdu_lines.rake'
254
228
255
- # Offense count: 1
256
- # This cop supports safe autocorrection (--autocorrect).
257
- # Configuration parameters: Include.
258
- # Include: app/models/**/*.rb
259
- Rails/EnumHash :
260
- Exclude :
261
- - ' app/models/user.rb'
262
-
263
229
# Offense count: 4
264
230
# This cop supports safe autocorrection (--autocorrect).
265
231
# Configuration parameters: EnforcedStyle.
@@ -319,13 +285,6 @@ Rails/InverseOf:
319
285
- ' app/models/move.rb'
320
286
- ' app/models/server.rb'
321
287
322
- # Offense count: 1
323
- # Configuration parameters: Include.
324
- # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
325
- Rails/LexicallyScopedActionFilter :
326
- Exclude :
327
- - ' app/controllers/users/sessions_controller.rb'
328
-
329
288
# Offense count: 19
330
289
# This cop supports unsafe autocorrection (--autocorrect-all).
331
290
# Configuration parameters: Include.
@@ -362,12 +321,6 @@ Rails/RedundantActiveRecordAllMethod:
362
321
- ' db/migrate/20170803155630_init_cables_from_current_ports.rb'
363
322
- ' db/migrate/20180110152701_add_attributes_to_servers.rb'
364
323
365
- # Offense count: 1
366
- # This cop supports safe autocorrection (--autocorrect).
367
- Rails/RedundantForeignKey :
368
- Exclude :
369
- - ' app/models/move.rb'
370
-
371
324
# Offense count: 6
372
325
# This cop supports safe autocorrection (--autocorrect).
373
326
# Configuration parameters: EnforcedStyle, Include.
@@ -430,23 +383,11 @@ Rails/WhereNot:
430
383
- ' app/models/server.rb'
431
384
- ' lib/tasks/update_pdu_lines.rake'
432
385
433
- # Offense count: 1
434
- # Configuration parameters: Severity.
435
- Rails/WhereNotWithMultipleConditions :
436
- Exclude :
437
- - ' app/controllers/connections_controller.rb'
438
-
439
386
# Offense count: 2
440
387
Rake/ClassDefinitionInTask :
441
388
Exclude :
442
389
- ' lib/tasks/convert_activities_to_changelog_entries.rake'
443
390
444
- # Offense count: 1
445
- # This cop supports safe autocorrection (--autocorrect).
446
- Rake/Desc :
447
- Exclude :
448
- - ' lib/tasks/convert_activities_to_changelog_entries.rake'
449
-
450
391
# Offense count: 2
451
392
Rake/MethodDefinitionInTask :
452
393
Exclude :
@@ -477,25 +418,11 @@ Style/ConditionalAssignment:
477
418
Style/Documentation :
478
419
Enabled : false
479
420
480
- # Offense count: 1
481
- # This cop supports safe autocorrection (--autocorrect).
482
- Style/EmptyLambdaParameter :
483
- Exclude :
484
- - ' app/models/card.rb'
485
-
486
421
# Offense count: 37
487
422
# This cop supports safe autocorrection (--autocorrect).
488
423
Style/ExpandPathArguments :
489
424
Enabled : false
490
425
491
- # Offense count: 1
492
- # This cop supports safe autocorrection (--autocorrect).
493
- # Configuration parameters: EnforcedStyle.
494
- # SupportedStyles: format, sprintf, percent
495
- Style/FormatString :
496
- Exclude :
497
- - ' app/helpers/modeles_helper.rb'
498
-
499
426
# Offense count: 3
500
427
# This cop supports safe autocorrection (--autocorrect).
501
428
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
@@ -585,20 +512,6 @@ Style/IfUnlessModifier:
585
512
- ' app/services/import_equipment_by_csv.rb'
586
513
- ' db/migrate/20221220143609_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.active_storage.rb'
587
514
588
- # Offense count: 1
589
- # This cop supports safe autocorrection (--autocorrect).
590
- Style/KeywordParametersOrder :
591
- Exclude :
592
- - ' spec/support/shared_examples/models/changelogable.rb'
593
-
594
- # Offense count: 1
595
- # This cop supports safe autocorrection (--autocorrect).
596
- # Configuration parameters: EnforcedStyle.
597
- # SupportedStyles: line_count_dependent, lambda, literal
598
- Style/Lambda :
599
- Exclude :
600
- - ' test/services/omniauth_dynamic_full_host_test.rb'
601
-
602
515
# Offense count: 5
603
516
# This cop supports safe autocorrection (--autocorrect).
604
517
Style/MultilineIfModifier :
@@ -623,12 +536,6 @@ Style/MutableConstant:
623
536
- ' app/models/pdu.rb'
624
537
- ' app/models/server.rb'
625
538
626
- # Offense count: 1
627
- # This cop supports safe autocorrection (--autocorrect).
628
- Style/NestedTernaryOperator :
629
- Exclude :
630
- - ' app/helpers/servers_helper.rb'
631
-
632
539
# Offense count: 9
633
540
# This cop supports safe autocorrection (--autocorrect).
634
541
# Configuration parameters: EnforcedStyle, MinBodyLength.
@@ -660,19 +567,6 @@ Style/NumericPredicate:
660
567
- ' app/controllers/ports_controller.rb'
661
568
- ' app/helpers/servers_helper.rb'
662
569
663
- # Offense count: 1
664
- # This cop supports safe autocorrection (--autocorrect).
665
- Style/OrAssignment :
666
- Exclude :
667
- - ' app/controllers/servers_controller.rb'
668
-
669
- # Offense count: 1
670
- # This cop supports safe autocorrection (--autocorrect).
671
- # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
672
- Style/ParenthesesAroundCondition :
673
- Exclude :
674
- - ' app/services/import_equipment_by_csv.rb'
675
-
676
570
# Offense count: 2
677
571
# This cop supports safe autocorrection (--autocorrect).
678
572
# Configuration parameters: PreferredDelimiters.
@@ -681,36 +575,6 @@ Style/PercentLiteralDelimiters:
681
575
- ' app/controllers/servers_grids_controller.rb'
682
576
- ' app/helpers/servers_helper.rb'
683
577
684
- # Offense count: 1
685
- # This cop supports safe autocorrection (--autocorrect).
686
- Style/Proc :
687
- Exclude :
688
- - ' lib/omniauth/dynamic_full_host.rb'
689
-
690
- # Offense count: 1
691
- # This cop supports safe autocorrection (--autocorrect).
692
- Style/RedundantBegin :
693
- Exclude :
694
- - ' app/services/import_equipment_by_csv.rb'
695
-
696
- # Offense count: 1
697
- # This cop supports safe autocorrection (--autocorrect).
698
- Style/RedundantCapitalW :
699
- Exclude :
700
- - ' app/controllers/servers_grids_controller.rb'
701
-
702
- # Offense count: 1
703
- # This cop supports safe autocorrection (--autocorrect).
704
- Style/RedundantCondition :
705
- Exclude :
706
- - ' app/helpers/servers_helper.rb'
707
-
708
- # Offense count: 1
709
- # This cop supports safe autocorrection (--autocorrect).
710
- Style/RedundantConstantBase :
711
- Exclude :
712
- - ' config/environments/production.rb'
713
-
714
578
# Offense count: 13
715
579
# This cop supports safe autocorrection (--autocorrect).
716
580
Style/RedundantFreeze :
@@ -771,14 +635,6 @@ Style/RescueStandardError:
771
635
- ' app/controllers/servers_grids_controller.rb'
772
636
- ' lib/tasks/convert_activities_to_changelog_entries.rake'
773
637
774
- # Offense count: 1
775
- # This cop supports unsafe autocorrection (--autocorrect-all).
776
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
777
- # AllowedMethods: present?, blank?, presence, try, try!
778
- Style/SafeNavigation :
779
- Exclude :
780
- - ' app/models/server.rb'
781
-
782
638
# Offense count: 2
783
639
# This cop supports safe autocorrection (--autocorrect).
784
640
# Configuration parameters: AllowAsExpressionSeparator.
0 commit comments