Skip to content

Commit bcab9f2

Browse files
committed
Rerun rubocop --auto-gen-config
In a previous commit, spec/integration/**/* was excluded from Rubocop linter rules. .rubocop.yml inherits from .rubocop_todo.yml before looking at exclusions defined in .rubocop.yml, so spec/integration/rails* was not being ignored.
1 parent ddc6eb7 commit bcab9f2

File tree

1 file changed

+15
-74
lines changed

1 file changed

+15
-74
lines changed

.rubocop_todo.yml

Lines changed: 15 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
# This configuration was generated by
22
# `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.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

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-
179
# Offense count: 1
1810
# Cop supports --auto-correct.
1911
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
@@ -29,14 +21,6 @@ Gemspec/RequiredRubyVersion:
2921
Exclude:
3022
- 'annotate.gemspec'
3123

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-
4024
# Offense count: 65
4125
# Cop supports --auto-correct.
4226
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
@@ -56,14 +40,13 @@ Layout/BlockAlignment:
5640
Exclude:
5741
- 'lib/annotate/annotate_models.rb'
5842

59-
# Offense count: 15
43+
# Offense count: 9
6044
# Cop supports --auto-correct.
6145
Layout/EmptyLineAfterGuardClause:
6246
Exclude:
6347
- 'Rakefile'
6448
- 'lib/annotate.rb'
6549
- 'lib/annotate/annotate_models.rb'
66-
- 'spec/integration/rails_6.0.2.1/bin/bundle'
6750

6851
# Offense count: 2
6952
# Cop supports --auto-correct.
@@ -72,12 +55,6 @@ Layout/EmptyLineAfterMagicComment:
7255
- 'annotate.gemspec'
7356
- 'spec/lib/annotate/annotate_models_spec.rb'
7457

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-
8158
# Offense count: 7
8259
# Cop supports --auto-correct.
8360
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
@@ -134,15 +111,6 @@ Layout/SpaceBeforeComment:
134111
Exclude:
135112
- 'lib/annotate/annotate_models.rb'
136113

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-
146114
# Offense count: 4
147115
# Cop supports --auto-correct.
148116
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
@@ -220,7 +188,7 @@ Lint/ShadowingOuterLocalVariable:
220188
Exclude:
221189
- 'Rakefile'
222190

223-
# Offense count: 22
191+
# Offense count: 21
224192
Metrics/AbcSize:
225193
Max: 145
226194

@@ -235,16 +203,16 @@ Metrics/BlockLength:
235203
Metrics/BlockNesting:
236204
Max: 4
237205

238-
# Offense count: 12
206+
# Offense count: 11
239207
Metrics/CyclomaticComplexity:
240208
Max: 37
241209

242-
# Offense count: 31
210+
# Offense count: 29
243211
# Configuration parameters: CountComments, ExcludedMethods.
244212
Metrics/MethodLength:
245213
Max: 71
246214

247-
# Offense count: 9
215+
# Offense count: 8
248216
Metrics/PerceivedComplexity:
249217
Max: 42
250218

@@ -287,15 +255,13 @@ Style/CaseEquality:
287255
Exclude:
288256
- 'lib/annotate/annotate_models.rb'
289257

290-
# Offense count: 3
258+
# Offense count: 1
291259
# Cop supports --auto-correct.
292260
# Configuration parameters: AutoCorrect, EnforcedStyle.
293261
# SupportedStyles: nested, compact
294262
Style/ClassAndModuleChildren:
295263
Exclude:
296264
- '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'
299265

300266
# Offense count: 2
301267
Style/ClassVars:
@@ -327,13 +293,11 @@ Style/Encoding:
327293
- 'annotate.gemspec'
328294
- 'spec/lib/annotate/annotate_models_spec.rb'
329295

330-
# Offense count: 3
296+
# Offense count: 1
331297
# Cop supports --auto-correct.
332298
Style/ExpandPathArguments:
333299
Exclude:
334300
- 'annotate.gemspec'
335-
- 'spec/integration/rails_6.0.2.1/bin/bundle'
336-
- 'spec/spec_helper.rb'
337301

338302
# Offense count: 10
339303
# Cop supports --auto-correct.
@@ -351,7 +315,7 @@ Style/FormatStringToken:
351315
Exclude:
352316
- 'lib/annotate/annotate_models.rb'
353317

354-
# Offense count: 59
318+
# Offense count: 26
355319
# Cop supports --auto-correct.
356320
# Configuration parameters: EnforcedStyle.
357321
# SupportedStyles: when_needed, always, never
@@ -373,15 +337,14 @@ Style/HashSyntax:
373337
- 'lib/tasks/annotate_routes.rake'
374338
- 'spec/lib/annotate/annotate_models_spec.rb'
375339

376-
# Offense count: 11
340+
# Offense count: 8
377341
# Cop supports --auto-correct.
378342
Style/IfUnlessModifier:
379343
Exclude:
380344
- 'Rakefile'
381345
- 'bin/annotate'
382346
- 'lib/annotate/annotate_models.rb'
383347
- 'lib/annotate/annotate_routes.rb'
384-
- 'spec/integration/rails_6.0.2.1/bin/bundle'
385348

386349
# Offense count: 1
387350
# Cop supports --auto-correct.
@@ -405,12 +368,11 @@ Style/MixinUsage:
405368
Exclude:
406369
- 'Rakefile'
407370

408-
# Offense count: 3
371+
# Offense count: 2
409372
Style/MultilineBlockChain:
410373
Exclude:
411374
- 'Rakefile'
412375
- 'lib/annotate/annotate_models.rb'
413-
- 'spec/spec_helper.rb'
414376

415377
# Offense count: 1
416378
# Cop supports --auto-correct.
@@ -430,7 +392,7 @@ Style/NumericPredicate:
430392
- 'lib/annotate.rb'
431393
- 'lib/annotate/annotate_models.rb'
432394

433-
# Offense count: 13
395+
# Offense count: 12
434396
# Cop supports --auto-correct.
435397
# Configuration parameters: PreferredDelimiters.
436398
Style/PercentLiteralDelimiters:
@@ -441,13 +403,6 @@ Style/PercentLiteralDelimiters:
441403
- 'lib/tasks/annotate_models_migrate.rake'
442404
- 'spec/lib/annotate/annotate_models_spec.rb'
443405
- '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'
451406

452407
# Offense count: 1
453408
# Cop supports --auto-correct.
@@ -515,14 +470,6 @@ Style/SafeNavigation:
515470
Exclude:
516471
- 'lib/annotate/annotate_models.rb'
517472

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-
526473
# Offense count: 15
527474
# Cop supports --auto-correct.
528475
Style/StderrPuts:
@@ -531,7 +478,7 @@ Style/StderrPuts:
531478
- 'lib/annotate.rb'
532479
- 'lib/annotate/annotate_models.rb'
533480

534-
# Offense count: 148
481+
# Offense count: 111
535482
# Cop supports --auto-correct.
536483
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
537484
# SupportedStyles: single_quotes, double_quotes
@@ -542,12 +489,6 @@ Style/StringLiterals:
542489
- 'lib/annotate/parser.rb'
543490
- 'lib/tasks/annotate_models_migrate.rake'
544491
- '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'
551492
- 'spec/lib/annotate/annotate_models_spec.rb'
552493
- 'spec/lib/annotate/annotate_routes_spec.rb'
553494
- 'spec/lib/annotate/parser_spec.rb'
@@ -560,7 +501,7 @@ Style/StringLiteralsInInterpolation:
560501
Exclude:
561502
- 'lib/annotate/annotate_models.rb'
562503

563-
# Offense count: 10
504+
# Offense count: 8
564505
# Cop supports --auto-correct.
565506
# Configuration parameters: MinSize.
566507
# SupportedStyles: percent, brackets
@@ -587,7 +528,7 @@ Style/UnneededPercentQ:
587528
Exclude:
588529
- 'annotate.gemspec'
589530

590-
# Offense count: 391
531+
# Offense count: 353
591532
# Cop supports --auto-correct.
592533
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
593534
# URISchemes: http, https

0 commit comments

Comments
 (0)