1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2020-01-31 22:49:42 -1000 using RuboCop version 0.68.1.
3
+ # on 2020-02-05 17:13:49 -1000 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
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 1
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
- Bundler/OrderedGems :
14
- Exclude :
15
- - ' spec/integration/rails_6.0.2.1/Gemfile'
16
-
17
9
# Offense count: 1
18
10
# Cop supports --auto-correct.
19
11
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
@@ -29,14 +21,6 @@ Gemspec/RequiredRubyVersion:
29
21
Exclude :
30
22
- ' annotate.gemspec'
31
23
32
- # Offense count: 1
33
- # Cop supports --auto-correct.
34
- # Configuration parameters: EnforcedStyle, IndentationWidth.
35
- # SupportedStyles: outdent, indent
36
- Layout/AccessModifierIndentation :
37
- Exclude :
38
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
39
-
40
24
# Offense count: 65
41
25
# Cop supports --auto-correct.
42
26
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
@@ -56,14 +40,13 @@ Layout/BlockAlignment:
56
40
Exclude :
57
41
- ' lib/annotate/annotate_models.rb'
58
42
59
- # Offense count: 15
43
+ # Offense count: 9
60
44
# Cop supports --auto-correct.
61
45
Layout/EmptyLineAfterGuardClause :
62
46
Exclude :
63
47
- ' Rakefile'
64
48
- ' lib/annotate.rb'
65
49
- ' lib/annotate/annotate_models.rb'
66
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
67
50
68
51
# Offense count: 2
69
52
# Cop supports --auto-correct.
@@ -72,12 +55,6 @@ Layout/EmptyLineAfterMagicComment:
72
55
- ' annotate.gemspec'
73
56
- ' spec/lib/annotate/annotate_models_spec.rb'
74
57
75
- # Offense count: 1
76
- # Cop supports --auto-correct.
77
- Layout/EmptyLines :
78
- Exclude :
79
- - ' spec/integration/rails_6.0.2.1/config/environments/development.rb'
80
-
81
58
# Offense count: 7
82
59
# Cop supports --auto-correct.
83
60
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
@@ -134,15 +111,6 @@ Layout/SpaceBeforeComment:
134
111
Exclude :
135
112
- ' lib/annotate/annotate_models.rb'
136
113
137
- # Offense count: 2
138
- # Cop supports --auto-correct.
139
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
140
- # SupportedStyles: space, no_space, compact
141
- # SupportedStylesForEmptyBrackets: space, no_space
142
- Layout/SpaceInsideArrayLiteralBrackets :
143
- Exclude :
144
- - ' spec/integration/rails_6.0.2.1/config/environments/production.rb'
145
-
146
114
# Offense count: 4
147
115
# Cop supports --auto-correct.
148
116
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
@@ -220,7 +188,7 @@ Lint/ShadowingOuterLocalVariable:
220
188
Exclude :
221
189
- ' Rakefile'
222
190
223
- # Offense count: 22
191
+ # Offense count: 21
224
192
Metrics/AbcSize :
225
193
Max : 145
226
194
@@ -235,16 +203,16 @@ Metrics/BlockLength:
235
203
Metrics/BlockNesting :
236
204
Max : 4
237
205
238
- # Offense count: 12
206
+ # Offense count: 11
239
207
Metrics/CyclomaticComplexity :
240
208
Max : 37
241
209
242
- # Offense count: 31
210
+ # Offense count: 29
243
211
# Configuration parameters: CountComments, ExcludedMethods.
244
212
Metrics/MethodLength :
245
213
Max : 71
246
214
247
- # Offense count: 9
215
+ # Offense count: 8
248
216
Metrics/PerceivedComplexity :
249
217
Max : 42
250
218
@@ -287,15 +255,13 @@ Style/CaseEquality:
287
255
Exclude :
288
256
- ' lib/annotate/annotate_models.rb'
289
257
290
- # Offense count: 3
258
+ # Offense count: 1
291
259
# Cop supports --auto-correct.
292
260
# Configuration parameters: AutoCorrect, EnforcedStyle.
293
261
# SupportedStyles: nested, compact
294
262
Style/ClassAndModuleChildren :
295
263
Exclude :
296
264
- ' lib/annotate/active_record_patch.rb'
297
- - ' spec/integration/rails_6.0.2.1/test/channels/application_cable/connection_test.rb'
298
- - ' spec/integration/rails_6.0.2.1/test/test_helper.rb'
299
265
300
266
# Offense count: 2
301
267
Style/ClassVars :
@@ -327,13 +293,11 @@ Style/Encoding:
327
293
- ' annotate.gemspec'
328
294
- ' spec/lib/annotate/annotate_models_spec.rb'
329
295
330
- # Offense count: 3
296
+ # Offense count: 1
331
297
# Cop supports --auto-correct.
332
298
Style/ExpandPathArguments :
333
299
Exclude :
334
300
- ' annotate.gemspec'
335
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
336
- - ' spec/spec_helper.rb'
337
301
338
302
# Offense count: 10
339
303
# Cop supports --auto-correct.
@@ -351,7 +315,7 @@ Style/FormatStringToken:
351
315
Exclude :
352
316
- ' lib/annotate/annotate_models.rb'
353
317
354
- # Offense count: 59
318
+ # Offense count: 26
355
319
# Cop supports --auto-correct.
356
320
# Configuration parameters: EnforcedStyle.
357
321
# SupportedStyles: when_needed, always, never
@@ -373,15 +337,14 @@ Style/HashSyntax:
373
337
- ' lib/tasks/annotate_routes.rake'
374
338
- ' spec/lib/annotate/annotate_models_spec.rb'
375
339
376
- # Offense count: 11
340
+ # Offense count: 8
377
341
# Cop supports --auto-correct.
378
342
Style/IfUnlessModifier :
379
343
Exclude :
380
344
- ' Rakefile'
381
345
- ' bin/annotate'
382
346
- ' lib/annotate/annotate_models.rb'
383
347
- ' lib/annotate/annotate_routes.rb'
384
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
385
348
386
349
# Offense count: 1
387
350
# Cop supports --auto-correct.
@@ -405,12 +368,11 @@ Style/MixinUsage:
405
368
Exclude :
406
369
- ' Rakefile'
407
370
408
- # Offense count: 3
371
+ # Offense count: 2
409
372
Style/MultilineBlockChain :
410
373
Exclude :
411
374
- ' Rakefile'
412
375
- ' lib/annotate/annotate_models.rb'
413
- - ' spec/spec_helper.rb'
414
376
415
377
# Offense count: 1
416
378
# Cop supports --auto-correct.
@@ -430,7 +392,7 @@ Style/NumericPredicate:
430
392
- ' lib/annotate.rb'
431
393
- ' lib/annotate/annotate_models.rb'
432
394
433
- # Offense count: 13
395
+ # Offense count: 12
434
396
# Cop supports --auto-correct.
435
397
# Configuration parameters: PreferredDelimiters.
436
398
Style/PercentLiteralDelimiters :
@@ -441,13 +403,6 @@ Style/PercentLiteralDelimiters:
441
403
- ' lib/tasks/annotate_models_migrate.rake'
442
404
- ' spec/lib/annotate/annotate_models_spec.rb'
443
405
- ' spec/lib/tasks/annotate_models_migrate_spec.rb'
444
- - ' spec/spec_helper.rb'
445
-
446
- # Offense count: 1
447
- # Cop supports --auto-correct.
448
- Style/PerlBackrefs :
449
- Exclude :
450
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
451
406
452
407
# Offense count: 1
453
408
# Cop supports --auto-correct.
@@ -515,14 +470,6 @@ Style/SafeNavigation:
515
470
Exclude :
516
471
- ' lib/annotate/annotate_models.rb'
517
472
518
- # Offense count: 1
519
- # Cop supports --auto-correct.
520
- # Configuration parameters: EnforcedStyle.
521
- # SupportedStyles: use_perl_names, use_english_names
522
- Style/SpecialGlobalVars :
523
- Exclude :
524
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
525
-
526
473
# Offense count: 15
527
474
# Cop supports --auto-correct.
528
475
Style/StderrPuts :
@@ -531,7 +478,7 @@ Style/StderrPuts:
531
478
- ' lib/annotate.rb'
532
479
- ' lib/annotate/annotate_models.rb'
533
480
534
- # Offense count: 148
481
+ # Offense count: 111
535
482
# Cop supports --auto-correct.
536
483
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
537
484
# SupportedStyles: single_quotes, double_quotes
@@ -542,12 +489,6 @@ Style/StringLiterals:
542
489
- ' lib/annotate/parser.rb'
543
490
- ' lib/tasks/annotate_models_migrate.rake'
544
491
- ' lib/tasks/annotate_routes.rake'
545
- - ' spec/integration/rails_6.0.2.1/bin/bundle'
546
- - ' spec/integration/rails_6.0.2.1/config/application.rb'
547
- - ' spec/integration/rails_6.0.2.1/config/environments/production.rb'
548
- - ' spec/integration/rails_6.0.2.1/config/puma.rb'
549
- - ' spec/integration/rails_6.0.2.1/test/application_system_test_case.rb'
550
- - ' spec/integration/rails_6.0.2.1/test/channels/application_cable/connection_test.rb'
551
492
- ' spec/lib/annotate/annotate_models_spec.rb'
552
493
- ' spec/lib/annotate/annotate_routes_spec.rb'
553
494
- ' spec/lib/annotate/parser_spec.rb'
@@ -560,7 +501,7 @@ Style/StringLiteralsInInterpolation:
560
501
Exclude :
561
502
- ' lib/annotate/annotate_models.rb'
562
503
563
- # Offense count: 10
504
+ # Offense count: 8
564
505
# Cop supports --auto-correct.
565
506
# Configuration parameters: MinSize.
566
507
# SupportedStyles: percent, brackets
@@ -587,7 +528,7 @@ Style/UnneededPercentQ:
587
528
Exclude :
588
529
- ' annotate.gemspec'
589
530
590
- # Offense count: 391
531
+ # Offense count: 353
591
532
# Cop supports --auto-correct.
592
533
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
593
534
# URISchemes: http, https
0 commit comments