Skip to content

Commit dce2ac6

Browse files
authored
Refactor test cases of AnnotateRoutes (#760)
This is the final completed version of refactoring AnnotateRoutes.
1 parent 47d4d4a commit dce2ac6

File tree

2 files changed

+499
-381
lines changed

2 files changed

+499
-381
lines changed

.rubocop_todo.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2020-02-13 18:10:52 +0900 using RuboCop version 0.68.1.
3+
# on 2020-02-13 20:05:34 +0900 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
@@ -64,14 +64,6 @@ Layout/ExtraSpacing:
6464
- 'lib/annotate/annotate_models.rb'
6565
- 'lib/tasks/annotate_routes.rake'
6666

67-
# Offense count: 4
68-
# Cop supports --auto-correct.
69-
# Configuration parameters: EnforcedStyle, IndentationWidth.
70-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
71-
Layout/MultilineMethodCallIndentation:
72-
Exclude:
73-
- 'spec/lib/annotate/annotate_routes_spec.rb'
74-
7567
# Offense count: 5
7668
# Cop supports --auto-correct.
7769
# Configuration parameters: EnforcedStyle, IndentationWidth.
@@ -221,7 +213,7 @@ Naming/AccessorMethodName:
221213
Exclude:
222214
- 'lib/annotate.rb'
223215

224-
# Offense count: 93
216+
# Offense count: 103
225217
# Configuration parameters: Blacklist.
226218
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
227219
Naming/HeredocDelimiterNaming:
@@ -478,7 +470,7 @@ Style/StderrPuts:
478470
- 'lib/annotate.rb'
479471
- 'lib/annotate/annotate_models.rb'
480472

481-
# Offense count: 111
473+
# Offense count: 107
482474
# Cop supports --auto-correct.
483475
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
484476
# SupportedStyles: single_quotes, double_quotes
@@ -490,7 +482,6 @@ Style/StringLiterals:
490482
- 'lib/tasks/annotate_models_migrate.rake'
491483
- 'lib/tasks/annotate_routes.rake'
492484
- 'spec/lib/annotate/annotate_models_spec.rb'
493-
- 'spec/lib/annotate/annotate_routes_spec.rb'
494485
- 'spec/lib/annotate/parser_spec.rb'
495486

496487
# Offense count: 1
@@ -528,7 +519,7 @@ Style/UnneededPercentQ:
528519
Exclude:
529520
- 'annotate.gemspec'
530521

531-
# Offense count: 346
522+
# Offense count: 377
532523
# Cop supports --auto-correct.
533524
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
534525
# URISchemes: http, https

0 commit comments

Comments
 (0)