1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2019-06-16 12:01:03 -0700 using RuboCop version 0.68.1.
3
+ # on 2019-09-02 16:23:56 -0700 using RuboCop version 0.68.1.
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
@@ -49,9 +49,9 @@ Gemspec/RequiredRubyVersion:
49
49
# Cop supports --auto-correct.
50
50
Layout/AlignArray :
51
51
Exclude :
52
- - ' spec/annotate/annotate_models_spec.rb'
52
+ - ' spec/lib/ annotate/annotate_models_spec.rb'
53
53
54
- # Offense count: 104
54
+ # Offense count: 107
55
55
# Cop supports --auto-correct.
56
56
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
57
57
# SupportedHashRocketStyles: key, separator, table
@@ -60,11 +60,11 @@ Layout/AlignArray:
60
60
Layout/AlignHash :
61
61
Exclude :
62
62
- ' lib/generators/annotate/templates/auto_annotate_models.rake'
63
- - ' spec/annotate/annotate_models_spec.rb'
64
63
- ' spec/integration/rails_2.3_with_bundler/config/initializers/unified_initializer.rb'
65
64
- ' spec/integration/rails_4.1.1/lib/tasks/auto_annotate_models.rake'
66
65
- ' spec/integration/rails_4.2.0/lib/tasks/auto_annotate_models.rake'
67
66
- ' spec/integration/standalone/config/init.rb'
67
+ - ' spec/lib/annotate/annotate_models_spec.rb'
68
68
69
69
# Offense count: 1
70
70
# Cop supports --auto-correct.
@@ -78,16 +78,16 @@ Layout/BlockAlignment:
78
78
# Cop supports --auto-correct.
79
79
Layout/ClosingHeredocIndentation :
80
80
Exclude :
81
- - ' spec/annotate/annotate_models_spec.rb'
82
81
- ' spec/integration/rails_2.3_with_bundler.rb'
83
82
- ' spec/integration/rails_3.2.2.rb'
84
83
- ' spec/integration/rails_3.2.8.rb'
85
84
- ' spec/integration/rails_3.2_autoloading_factory_girl.rb'
86
85
- ' spec/integration/rails_3.2_custom_inflections.rb'
87
86
- ' spec/integration/rails_3.2_with_asset_pipeline.rb'
88
87
- ' spec/integration/standalone.rb'
88
+ - ' spec/lib/annotate/annotate_models_spec.rb'
89
89
90
- # Offense count: 14
90
+ # Offense count: 13
91
91
# Cop supports --auto-correct.
92
92
Layout/EmptyLineAfterGuardClause :
93
93
Exclude :
@@ -102,7 +102,6 @@ Layout/EmptyLineAfterGuardClause:
102
102
Layout/EmptyLineAfterMagicComment :
103
103
Exclude :
104
104
- ' annotate.gemspec'
105
- - ' spec/annotate/annotate_models_spec.rb'
106
105
- ' spec/integration/rails_3.2.2/db/schema.rb'
107
106
- ' spec/integration/rails_3.2.8/db/schema.rb'
108
107
- ' spec/integration/rails_3.2_autoloading_factory_girl/db/schema.rb'
@@ -111,6 +110,7 @@ Layout/EmptyLineAfterMagicComment:
111
110
- ' spec/integration/rails_4.1.1/db/schema.rb'
112
111
- ' spec/integration/rails_4.2.0/db/schema.rb'
113
112
- ' spec/integration/standalone/db/schema.rb'
113
+ - ' spec/lib/annotate/annotate_models_spec.rb'
114
114
115
115
# Offense count: 2
116
116
# Cop supports --auto-correct.
@@ -129,7 +129,7 @@ Layout/EmptyLinesAroundAccessModifier:
129
129
# Cop supports --auto-correct.
130
130
Layout/EmptyLinesAroundArguments :
131
131
Exclude :
132
- - ' spec/annotate/annotate_routes_spec.rb'
132
+ - ' spec/lib/ annotate/annotate_routes_spec.rb'
133
133
134
134
# Offense count: 6
135
135
# Cop supports --auto-correct.
@@ -179,7 +179,6 @@ Layout/IndentFirstHashElement:
179
179
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
180
180
Layout/IndentHeredoc :
181
181
Exclude :
182
- - ' spec/annotate/annotate_models_spec.rb'
183
182
- ' spec/integration/integration_spec.rb'
184
183
- ' spec/integration/rails_2.3_with_bundler.rb'
185
184
- ' spec/integration/rails_3.2.2.rb'
@@ -188,6 +187,7 @@ Layout/IndentHeredoc:
188
187
- ' spec/integration/rails_3.2_custom_inflections.rb'
189
188
- ' spec/integration/rails_3.2_with_asset_pipeline.rb'
190
189
- ' spec/integration/standalone.rb'
190
+ - ' spec/lib/annotate/annotate_models_spec.rb'
191
191
192
192
# Offense count: 1
193
193
# Cop supports --auto-correct.
@@ -214,7 +214,7 @@ Layout/IndentationWidth:
214
214
# SupportedStyles: aligned, indented, indented_relative_to_receiver
215
215
Layout/MultilineMethodCallIndentation :
216
216
Exclude :
217
- - ' spec/annotate/annotate_routes_spec.rb'
217
+ - ' spec/lib/ annotate/annotate_routes_spec.rb'
218
218
219
219
# Offense count: 5
220
220
# Cop supports --auto-correct.
@@ -339,8 +339,8 @@ Layout/TrailingBlankLines:
339
339
# Configuration parameters: AllowInHeredoc.
340
340
Layout/TrailingWhitespace :
341
341
Exclude :
342
- - ' spec/annotate/annotate_routes_spec.rb'
343
342
- ' spec/integration/rails_2.3_with_bundler/db/schema.rb'
343
+ - ' spec/lib/annotate/annotate_routes_spec.rb'
344
344
345
345
# Offense count: 3
346
346
# Configuration parameters: AllowSafeAssignment.
@@ -349,12 +349,6 @@ Lint/AssignmentInCondition:
349
349
- ' lib/annotate/annotate_models.rb'
350
350
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
351
351
352
- # Offense count: 2
353
- # Cop supports --auto-correct.
354
- Lint/BigDecimalNew :
355
- Exclude :
356
- - ' spec/annotate/annotate_models_spec.rb'
357
-
358
352
# Offense count: 6
359
353
# Cop supports --auto-correct.
360
354
Lint/DeprecatedClassMethods :
@@ -412,18 +406,11 @@ Lint/ShadowingOuterLocalVariable:
412
406
Exclude :
413
407
- ' Rakefile'
414
408
415
- # Offense count: 7
416
- # Cop supports --auto-correct.
417
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
418
- Lint/UnusedBlockArgument :
419
- Exclude :
420
- - ' bin/annotate'
421
-
422
- # Offense count: 19
409
+ # Offense count: 20
423
410
Metrics/AbcSize :
424
411
Max : 138
425
412
426
- # Offense count: 27
413
+ # Offense count: 28
427
414
# Configuration parameters: CountComments, ExcludedMethods.
428
415
# ExcludedMethods: refine
429
416
Metrics/BlockLength :
@@ -438,7 +425,7 @@ Metrics/BlockNesting:
438
425
Metrics/CyclomaticComplexity :
439
426
Max : 36
440
427
441
- # Offense count: 29
428
+ # Offense count: 30
442
429
# Configuration parameters: CountComments, ExcludedMethods.
443
430
Metrics/MethodLength :
444
431
Max : 75
@@ -457,8 +444,8 @@ Naming/AccessorMethodName:
457
444
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
458
445
Naming/HeredocDelimiterNaming :
459
446
Exclude :
460
- - ' spec/annotate/annotate_models_spec.rb'
461
- - ' spec/annotate/annotate_routes_spec.rb'
447
+ - ' spec/lib/ annotate/annotate_models_spec.rb'
448
+ - ' spec/lib/ annotate/annotate_routes_spec.rb'
462
449
463
450
# Offense count: 2
464
451
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
@@ -531,14 +518,6 @@ Style/ClassVars:
531
518
Exclude :
532
519
- ' lib/tasks/annotate_models_migrate.rake'
533
520
534
- # Offense count: 1
535
- # Cop supports --auto-correct.
536
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
537
- # SupportedStyles: assign_to_condition, assign_inside_condition
538
- Style/ConditionalAssignment :
539
- Exclude :
540
- - ' bin/annotate'
541
-
542
521
# Offense count: 1
543
522
# Cop supports --auto-correct.
544
523
Style/Dir :
@@ -562,7 +541,6 @@ Style/Documentation:
562
541
Style/Encoding :
563
542
Exclude :
564
543
- ' annotate.gemspec'
565
- - ' spec/annotate/annotate_models_spec.rb'
566
544
- ' spec/integration/rails_3.2.2/db/schema.rb'
567
545
- ' spec/integration/rails_3.2.8/db/schema.rb'
568
546
- ' spec/integration/rails_3.2_autoloading_factory_girl/db/schema.rb'
@@ -571,6 +549,7 @@ Style/Encoding:
571
549
- ' spec/integration/rails_4.1.1/db/schema.rb'
572
550
- ' spec/integration/rails_4.2.0/db/schema.rb'
573
551
- ' spec/integration/standalone/db/schema.rb'
552
+ - ' spec/lib/annotate/annotate_models_spec.rb'
574
553
575
554
# Offense count: 48
576
555
# Cop supports --auto-correct.
@@ -593,7 +572,7 @@ Style/FormatStringToken:
593
572
Exclude :
594
573
- ' lib/annotate/annotate_models.rb'
595
574
596
- # Offense count: 184
575
+ # Offense count: 186
597
576
# Cop supports --auto-correct.
598
577
# Configuration parameters: EnforcedStyle.
599
578
# SupportedStyles: when_needed, always, never
@@ -690,26 +669,25 @@ Style/NumericPredicate:
690
669
- ' lib/annotate.rb'
691
670
- ' lib/annotate/annotate_models.rb'
692
671
693
- # Offense count: 24
672
+ # Offense count: 20
694
673
# Cop supports --auto-correct.
695
674
# Configuration parameters: PreferredDelimiters.
696
675
Style/PercentLiteralDelimiters :
697
676
Exclude :
698
677
- ' annotate.gemspec'
699
- - ' bin/annotate'
700
678
- ' lib/annotate/annotate_models.rb'
701
679
- ' lib/annotate/annotate_routes.rb'
702
680
- ' lib/tasks/annotate_models_migrate.rake'
703
- - ' spec/annotate/annotate_models_spec.rb'
704
681
- ' spec/integration/rails_3.2.2/config/application.rb'
705
682
- ' spec/integration/rails_3.2.8/config/application.rb'
706
683
- ' spec/integration/rails_3.2_autoloading_factory_girl/config/application.rb'
707
684
- ' spec/integration/rails_3.2_custom_inflections/config/application.rb'
708
685
- ' spec/integration/rails_3.2_with_asset_pipeline/config/application.rb'
709
686
- ' spec/integration/rails_4.1.1/app/models/task.rb'
710
687
- ' spec/integration/rails_4.2.0/app/models/task.rb'
688
+ - ' spec/lib/annotate/annotate_models_spec.rb'
689
+ - ' spec/lib/tasks/annotate_models_migrate_spec.rb'
711
690
- ' spec/spec_helper.rb'
712
- - ' spec/tasks/annotate_models_migrate_spec.rb'
713
691
714
692
# Offense count: 1
715
693
# Cop supports --auto-correct.
@@ -730,7 +708,7 @@ Style/RaiseArgs:
730
708
Style/RedundantBegin :
731
709
Exclude :
732
710
- ' lib/annotate/annotate_models.rb'
733
- - ' spec/annotate/annotate_models_spec.rb'
711
+ - ' spec/lib/ annotate/annotate_models_spec.rb'
734
712
735
713
# Offense count: 1
736
714
# Cop supports --auto-correct.
@@ -784,12 +762,11 @@ Style/SafeNavigation:
784
762
Exclude :
785
763
- ' lib/annotate/annotate_models.rb'
786
764
787
- # Offense count: 2
765
+ # Offense count: 1
788
766
# Cop supports --auto-correct.
789
767
# Configuration parameters: AllowAsExpressionSeparator.
790
768
Style/Semicolon :
791
769
Exclude :
792
- - ' bin/annotate'
793
770
- ' spec/integration/rails_2.3_with_bundler/config/initializers/unified_initializer.rb'
794
771
795
772
# Offense count: 18
@@ -801,7 +778,7 @@ Style/StderrPuts:
801
778
- ' lib/annotate/annotate_models.rb'
802
779
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
803
780
804
- # Offense count: 243
781
+ # Offense count: 247
805
782
# Cop supports --auto-correct.
806
783
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
807
784
# SupportedStyles: single_quotes, double_quotes
@@ -827,15 +804,15 @@ Style/SymbolArray:
827
804
# Cop supports --auto-correct.
828
805
Style/SymbolLiteral :
829
806
Exclude :
830
- - ' spec/annotate/annotate_models_spec.rb'
807
+ - ' spec/lib/ annotate/annotate_models_spec.rb'
831
808
832
809
# Offense count: 1
833
810
# Cop supports --auto-correct.
834
811
# Configuration parameters: EnforcedStyleForMultiline.
835
812
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
836
813
Style/TrailingCommaInArrayLiteral :
837
814
Exclude :
838
- - ' spec/annotate/annotate_models_spec.rb'
815
+ - ' spec/lib/ annotate/annotate_models_spec.rb'
839
816
840
817
# Offense count: 2
841
818
# Cop supports --auto-correct.
@@ -846,20 +823,14 @@ Style/TrailingCommaInHashLiteral:
846
823
- ' spec/integration/rails_4.1.1/lib/tasks/auto_annotate_models.rake'
847
824
- ' spec/integration/rails_4.2.0/lib/tasks/auto_annotate_models.rake'
848
825
849
- # Offense count: 2
850
- # Cop supports --auto-correct.
851
- Style/UnneededInterpolation :
852
- Exclude :
853
- - ' bin/annotate'
854
-
855
826
# Offense count: 4
856
827
# Cop supports --auto-correct.
857
828
Style/UnneededPercentQ :
858
829
Exclude :
859
830
- ' annotate.gemspec'
860
831
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
861
832
862
- # Offense count: 431
833
+ # Offense count: 465
863
834
# Cop supports --auto-correct.
864
835
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
865
836
# URISchemes: http, https
0 commit comments