1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2016-12-14 23:38:08 +0100 using RuboCop version 0.46.0.
3
+ # on 2016-12-15 16:54:50 +0100 using RuboCop version 0.46.0.
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
@@ -36,14 +36,6 @@ Lint/AssignmentInCondition:
36
36
- ' lib/annotate/annotate_models.rb'
37
37
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
38
38
39
- # Offense count: 2
40
- # Cop supports --auto-correct.
41
- # Configuration parameters: AlignWith, SupportedStyles.
42
- # SupportedStyles: either, start_of_block, start_of_line
43
- Lint/BlockAlignment :
44
- Exclude :
45
- - ' spec/annotate/annotate_models_spec.rb'
46
-
47
39
# Offense count: 6
48
40
# Cop supports --auto-correct.
49
41
Lint/DeprecatedClassMethods :
@@ -60,24 +52,15 @@ Lint/DuplicateMethods:
60
52
Exclude :
61
53
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
62
54
63
- # Offense count: 1
64
- # Cop supports --auto-correct.
65
- # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
66
- # SupportedStyles: keyword, variable, start_of_line
67
- Lint/EndAlignment :
68
- Exclude :
69
- - ' lib/annotate.rb'
70
-
71
55
# Offense count: 1
72
56
Lint/HandleExceptions :
73
57
Exclude :
74
58
- ' bin/annotate'
75
59
76
- # Offense count: 9
60
+ # Offense count: 8
77
61
Lint/IneffectiveAccessModifier :
78
62
Exclude :
79
63
- ' lib/annotate/annotate_routes.rb'
80
- - ' spec/integration/common_validation.rb'
81
64
82
65
# Offense count: 1
83
66
# Cop supports --auto-correct.
@@ -87,12 +70,10 @@ Lint/InheritException:
87
70
Exclude :
88
71
- ' lib/annotate/annotate_models.rb'
89
72
90
- # Offense count: 8
73
+ # Offense count: 5
91
74
Lint/RescueException :
92
75
Exclude :
93
76
- ' Rakefile'
94
- - ' bin/annotate'
95
- - ' lib/annotate.rb'
96
77
- ' lib/annotate/annotate_models.rb'
97
78
98
79
# Offense count: 1
@@ -107,12 +88,11 @@ Lint/UnusedBlockArgument:
107
88
Exclude :
108
89
- ' bin/annotate'
109
90
110
- # Offense count: 2
91
+ # Offense count: 1
111
92
# Configuration parameters: ContextCreatingMethods.
112
93
Lint/UselessAccessModifier :
113
94
Exclude :
114
95
- ' lib/annotate/annotate_routes.rb'
115
- - ' spec/integration/common_validation.rb'
116
96
117
97
# Offense count: 16
118
98
Metrics/AbcSize :
@@ -131,7 +111,7 @@ Metrics/BlockNesting:
131
111
Metrics/CyclomaticComplexity :
132
112
Max : 36
133
113
134
- # Offense count: 347
114
+ # Offense count: 334
135
115
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
136
116
# URISchemes: http, https
137
117
Metrics/LineLength :
@@ -153,9 +133,7 @@ Style/AccessorMethodName:
153
133
154
134
# Offense count: 1
155
135
# Cop supports --auto-correct.
156
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
157
- # SupportedStyles: with_first_parameter, with_fixed_indentation
158
- Style/AlignParameters :
136
+ Style/AlignArray :
159
137
Exclude :
160
138
- ' spec/annotate/annotate_models_spec.rb'
161
139
@@ -167,7 +145,7 @@ Style/BarePercentLiterals:
167
145
Exclude :
168
146
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
169
147
170
- # Offense count: 8
148
+ # Offense count: 1
171
149
# Cop supports --auto-correct.
172
150
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
173
151
# SupportedStyles: line_count_based, semantic, braces_for_chaining
@@ -177,15 +155,13 @@ Style/BarePercentLiterals:
177
155
Style/BlockDelimiters :
178
156
Exclude :
179
157
- ' lib/annotate/annotate_models.rb'
180
- - ' spec/annotate/annotate_models_spec.rb'
181
158
182
- # Offense count: 4
159
+ # Offense count: 3
183
160
# Cop supports --auto-correct.
184
161
# Configuration parameters: EnforcedStyle, SupportedStyles.
185
162
# SupportedStyles: braces, no_braces, context_dependent
186
163
Style/BracesAroundHashParameters :
187
164
Exclude :
188
- - ' bin/annotate'
189
165
- ' spec/integration/rails_4.1.1/lib/tasks/auto_annotate_models.rake'
190
166
- ' spec/integration/rails_4.2.0/lib/tasks/auto_annotate_models.rake'
191
167
- ' spec/integration/standalone/config/init.rb'
@@ -229,12 +205,6 @@ Style/ClassVars:
229
205
Exclude :
230
206
- ' lib/tasks/migrate.rake'
231
207
232
- # Offense count: 3
233
- # Cop supports --auto-correct.
234
- Style/ClosingParenthesisIndentation :
235
- Exclude :
236
- - ' spec/annotate/annotate_models_spec.rb'
237
-
238
208
# Offense count: 1
239
209
# Cop supports --auto-correct.
240
210
# Configuration parameters: Keywords.
@@ -264,14 +234,13 @@ Style/Documentation:
264
234
- ' lib/generators/annotate/install_generator.rb'
265
235
- ' lib/tasks/migrate.rake'
266
236
267
- # Offense count: 11
237
+ # Offense count: 9
268
238
# Cop supports --auto-correct.
269
239
# Configuration parameters: EnforcedStyle, SupportedStyles.
270
240
# SupportedStyles: leading, trailing
271
241
Style/DotPosition :
272
242
Exclude :
273
243
- ' lib/annotate/annotate_models.rb'
274
- - ' spec/integration/common_validation.rb'
275
244
276
245
# Offense count: 2
277
246
# Cop supports --auto-correct.
@@ -286,14 +255,12 @@ Style/EmptyLinesAroundAccessModifier:
286
255
Exclude :
287
256
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
288
257
289
- # Offense count: 8
258
+ # Offense count: 6
290
259
# Cop supports --auto-correct.
291
260
# Configuration parameters: EnforcedStyle, SupportedStyles.
292
261
# SupportedStyles: empty_lines, no_empty_lines
293
262
Style/EmptyLinesAroundBlockBody :
294
263
Exclude :
295
- - ' bin/annotate'
296
- - ' spec/annotate/annotate_models_spec.rb'
297
264
- ' spec/integration/rails_2.3_with_bundler/db/schema.rb'
298
265
- ' spec/integration/rails_4.1.1/db/schema.rb'
299
266
- ' spec/integration/rails_4.2.0/db/schema.rb'
@@ -340,7 +307,7 @@ Style/GuardClause:
340
307
- ' lib/tasks/migrate.rake'
341
308
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
342
309
343
- # Offense count: 76
310
+ # Offense count: 58
344
311
# Cop supports --auto-correct.
345
312
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
346
313
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
@@ -354,15 +321,14 @@ Style/IfUnlessModifier:
354
321
Exclude :
355
322
- ' lib/annotate/annotate_models.rb'
356
323
357
- # Offense count: 32
324
+ # Offense count: 6
358
325
# Cop supports --auto-correct.
359
326
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
360
327
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
361
328
Style/IndentArray :
362
329
Exclude :
363
330
- ' lib/annotate/annotate_models.rb'
364
331
- ' lib/annotate/annotate_routes.rb'
365
- - ' spec/annotate/annotate_models_spec.rb'
366
332
367
333
# Offense count: 6
368
334
# Cop supports --auto-correct.
@@ -371,13 +337,12 @@ Style/IndentArray:
371
337
Style/IndentHash :
372
338
EnforcedStyle : consistent
373
339
374
- # Offense count: 7
340
+ # Offense count: 1
375
341
# Cop supports --auto-correct.
376
342
# Configuration parameters: EnforcedStyle, SupportedStyles.
377
343
# SupportedStyles: normal, rails
378
344
Style/IndentationConsistency :
379
345
Exclude :
380
- - ' spec/annotate/annotate_models_spec.rb'
381
346
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
382
347
383
348
# Offense count: 4
@@ -390,7 +355,7 @@ Style/IndentationWidth:
390
355
- ' spec/integration/rails_4.2.0/app/models/sub1/sub2/sub3/event.rb'
391
356
- ' spec/integration/rails_4.2.0/app/models/task.rb'
392
357
393
- # Offense count: 3
358
+ # Offense count: 1
394
359
# Cop supports --auto-correct.
395
360
# Configuration parameters: EnforcedStyle, SupportedStyles.
396
361
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
@@ -410,14 +375,6 @@ Style/MultilineBlockChain:
410
375
- ' lib/annotate/annotate_models.rb'
411
376
- ' spec/spec_helper.rb'
412
377
413
- # Offense count: 3
414
- # Cop supports --auto-correct.
415
- # Configuration parameters: EnforcedStyle, SupportedStyles.
416
- # SupportedStyles: symmetrical, new_line, same_line
417
- Style/MultilineMethodCallBraceLayout :
418
- Exclude :
419
- - ' spec/annotate/annotate_models_spec.rb'
420
-
421
378
# Offense count: 3
422
379
# Cop supports --auto-correct.
423
380
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
@@ -443,12 +400,11 @@ Style/MutableConstant:
443
400
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
444
401
- ' spec/integration/rails_2.3_with_bundler/config/environment.rb'
445
402
446
- # Offense count: 2
403
+ # Offense count: 1
447
404
# Cop supports --auto-correct.
448
405
Style/NegatedIf :
449
406
Exclude :
450
407
- ' lib/annotate/annotate_models.rb'
451
- - ' spec/integration/integration_spec.rb'
452
408
453
409
# Offense count: 1
454
410
# Cop supports --auto-correct.
@@ -485,20 +441,12 @@ Style/ParallelAssignment:
485
441
Exclude :
486
442
- ' lib/annotate/annotate_models.rb'
487
443
488
- # Offense count: 1
489
- # Cop supports --auto-correct.
490
- # Configuration parameters: AllowSafeAssignment.
491
- Style/ParenthesesAroundCondition :
492
- Exclude :
493
- - ' bin/annotate'
494
-
495
- # Offense count: 7
444
+ # Offense count: 6
496
445
# Cop supports --auto-correct.
497
446
# Configuration parameters: PreferredDelimiters.
498
447
Style/PercentLiteralDelimiters :
499
448
Exclude :
500
449
- ' annotate.gemspec'
501
- - ' spec/integration/common_validation.rb'
502
450
503
451
# Offense count: 1
504
452
# Cop supports --auto-correct.
@@ -526,16 +474,13 @@ Style/RedundantParentheses:
526
474
Exclude :
527
475
- ' lib/annotate/annotate_models.rb'
528
476
529
- # Offense count: 6
477
+ # Offense count: 2
530
478
# Cop supports --auto-correct.
531
479
# Configuration parameters: AllowMultipleReturnValues.
532
480
Style/RedundantReturn :
533
481
Exclude :
534
482
- ' lib/annotate/annotate_models.rb'
535
483
- ' lib/annotate/annotate_routes.rb'
536
- - ' spec/annotate/annotate_models_spec.rb'
537
- - ' spec/integration/common_validation.rb'
538
- - ' spec/integration/rails_3.2.8.rb'
539
484
540
485
# Offense count: 3
541
486
# Cop supports --auto-correct.
@@ -561,16 +506,15 @@ Style/RescueModifier:
561
506
- ' lib/annotate/annotate_models.rb'
562
507
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
563
508
564
- # Offense count: 3
509
+ # Offense count: 2
565
510
# Cop supports --auto-correct.
566
511
# Configuration parameters: AllowAsExpressionSeparator.
567
512
Style/Semicolon :
568
513
Exclude :
569
514
- ' bin/annotate'
570
- - ' spec/annotate/annotate_models_spec.rb'
571
515
- ' spec/integration/rails_2.3_with_bundler/config/initializers/unified_initializer.rb'
572
516
573
- # Offense count: 19
517
+ # Offense count: 13
574
518
# Cop supports --auto-correct.
575
519
# Configuration parameters: EnforcedStyle, SupportedStyles.
576
520
# SupportedStyles: space, no_space
@@ -580,12 +524,10 @@ Style/SpaceAroundEqualsInParameterDefault:
580
524
- ' lib/annotate/annotate_routes.rb'
581
525
- ' spec/integration/common_validation.rb'
582
526
583
- # Offense count: 16
527
+ # Offense count: 9
584
528
# Cop supports --auto-correct.
585
529
Style/SpaceAroundKeyword :
586
530
Exclude :
587
- - ' spec/integration/common_validation.rb'
588
- - ' spec/integration/integration_spec.rb'
589
531
- ' spec/integration/rails_2.3_with_bundler/Gemfile'
590
532
- ' spec/integration/rails_3.2.2/Gemfile'
591
533
- ' spec/integration/rails_3.2.8/Gemfile'
@@ -596,16 +538,14 @@ Style/SpaceAroundKeyword:
596
538
- ' spec/integration/rails_4.2.0/Gemfile'
597
539
- ' spec/integration/standalone/Gemfile'
598
540
599
- # Offense count: 13
541
+ # Offense count: 11
600
542
# Cop supports --auto-correct.
601
543
# Configuration parameters: AllowForAlignment.
602
544
Style/SpaceAroundOperators :
603
545
Exclude :
604
- - ' bin/annotate'
605
546
- ' lib/annotate/annotate_models.rb'
606
547
- ' lib/tasks/annotate_models.rake'
607
548
- ' lib/tasks/annotate_routes.rake'
608
- - ' spec/integration/integration_spec.rb'
609
549
610
550
# Offense count: 6
611
551
# Cop supports --auto-correct.
@@ -635,13 +575,12 @@ Style/SpaceInsideBrackets:
635
575
Exclude :
636
576
- ' spec/integration/rails_2.3_with_bundler/config/environment.rb'
637
577
638
- # Offense count: 6
578
+ # Offense count: 4
639
579
# Cop supports --auto-correct.
640
580
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
641
581
# SupportedStyles: space, no_space, compact
642
582
Style/SpaceInsideHashLiteralBraces :
643
583
Exclude :
644
- - ' bin/annotate'
645
584
- ' lib/tasks/annotate_models.rake'
646
585
647
586
# Offense count: 4
@@ -658,15 +597,7 @@ Style/SpaceInsideStringInterpolation:
658
597
Exclude :
659
598
- ' lib/annotate/annotate_models.rb'
660
599
661
- # Offense count: 1
662
- # Cop supports --auto-correct.
663
- # Configuration parameters: EnforcedStyle, SupportedStyles.
664
- # SupportedStyles: use_perl_names, use_english_names
665
- Style/SpecialGlobalVars :
666
- Exclude :
667
- - ' bin/annotate'
668
-
669
- # Offense count: 266
600
+ # Offense count: 252
670
601
# Cop supports --auto-correct.
671
602
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
672
603
# SupportedStyles: single_quotes, double_quotes
@@ -707,7 +638,7 @@ Style/TrailingBlankLines:
707
638
- ' spec/integration/rails_4.2.0/app/models/task_observer.rb'
708
639
- ' spec/integration/rails_4.2.0/config/initializers/cookies_serializer.rb'
709
640
710
- # Offense count: 11
641
+ # Offense count: 3
711
642
# Cop supports --auto-correct.
712
643
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
713
644
# SupportedStyles: comma, consistent_comma, no_comma
@@ -730,10 +661,9 @@ Style/UnneededInterpolation:
730
661
- ' bin/annotate'
731
662
- ' lib/annotate/annotate_routes.rb'
732
663
733
- # Offense count: 9
664
+ # Offense count: 8
734
665
# Cop supports --auto-correct.
735
666
Style/UnneededPercentQ :
736
667
Exclude :
737
668
- ' annotate.gemspec'
738
- - ' spec/integration/common_validation.rb'
739
669
- ' spec/integration/rails_2.3_with_bundler/config/boot.rb'
0 commit comments