1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2015-08-19 12:23:54 -0400 using RuboCop version 0.38 .0.
3
+ # on 2019-12-08 10:39:57 -0500 using RuboCop version 0.77 .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
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
+ # Offense count: 8
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
12
+ Bundler/DuplicatedGem :
13
+ Exclude :
14
+ - ' Gemfile'
15
+
16
+ # Offense count: 8
17
+ # Cop supports --auto-correct.
18
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
19
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
20
+ Bundler/OrderedGems :
21
+ Exclude :
22
+ - ' Gemfile'
23
+
24
+ # Offense count: 1
25
+ # Cop supports --auto-correct.
26
+ Layout/EmptyLineAfterGuardClause :
27
+ Exclude :
28
+ - ' app/controllers/grape_swagger_rails/application_controller.rb'
29
+
30
+ # Offense count: 1
31
+ # Cop supports --auto-correct.
32
+ Layout/EmptyLineAfterMagicComment :
33
+ Exclude :
34
+ - ' grape-swagger-rails.gemspec'
35
+
36
+ # Offense count: 1
37
+ # Cop supports --auto-correct.
38
+ Layout/EmptyLinesAroundArguments :
39
+ Exclude :
40
+ - ' lib/grape-swagger-rails.rb'
41
+
42
+ # Offense count: 12
43
+ # Cop supports --auto-correct.
44
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
45
+ # SupportedHashRocketStyles: key, separator, table
46
+ # SupportedColonStyles: key, separator, table
47
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
48
+ Layout/HashAlignment :
49
+ Exclude :
50
+ - ' lib/grape-swagger-rails.rb'
51
+
9
52
# Offense count: 1
10
53
Lint/AmbiguousRegexpLiteral :
11
54
Exclude :
@@ -18,44 +61,119 @@ Lint/AssignmentInCondition:
18
61
- ' spec/dummy/bin/spring'
19
62
20
63
# Offense count: 2
21
- Lint/HandleExceptions :
64
+ # Cop supports --auto-correct.
65
+ Lint/ScriptPermission :
66
+ Exclude :
67
+ - ' Rakefile'
68
+ - ' spec/dummy/Rakefile'
69
+
70
+ # Offense count: 2
71
+ # Configuration parameters: AllowComments.
72
+ Lint/SuppressedException :
22
73
Exclude :
23
74
- ' spec/dummy/bin/rails'
24
75
- ' spec/dummy/bin/rake'
25
76
26
- # Offense count: 31
27
- # Configuration parameters: AllowURI, URISchemes.
28
- Metrics/LineLength :
29
- Max : 129
77
+ # Offense count: 9
78
+ # Configuration parameters: CountComments, ExcludedMethods.
79
+ # ExcludedMethods: refine
80
+ Metrics/BlockLength :
81
+ Max : 282
82
+
83
+ # Offense count: 2
84
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
85
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
86
+ Naming/FileName :
87
+ Exclude :
88
+ - ' lib/grape-swagger-rails.rb'
89
+ - ' spec/features/grape-swagger-rails_spec.rb'
30
90
31
91
# Offense count: 2
32
92
# Cop supports --auto-correct.
33
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
93
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
94
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
95
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
96
+ # FunctionalMethods: let, let!, subject, watch
97
+ # IgnoredMethods: lambda, proc, it
34
98
Style/BlockDelimiters :
35
- Enabled : false
99
+ Exclude :
100
+ - ' lib/tasks/swagger_ui.rake'
36
101
37
- # Offense count: 9
102
+ # Offense count: 4
38
103
Style/Documentation :
39
104
Exclude :
105
+ - ' spec/**/*'
106
+ - ' test/**/*'
40
107
- ' app/controllers/grape_swagger_rails/application_controller.rb'
41
108
- ' lib/grape-swagger-rails.rb'
42
109
- ' lib/grape-swagger-rails/engine.rb'
43
- - ' lib/grape-swagger-rails/version.rb'
44
- - ' spec/dummy/app/api/api.rb'
45
- - ' spec/dummy/app/controllers/application_controller.rb'
110
+
111
+ # Offense count: 2
112
+ # Cop supports --auto-correct.
113
+ # Configuration parameters: EnforcedStyle.
114
+ # SupportedStyles: compact, expanded
115
+ Style/EmptyMethod :
116
+ Exclude :
117
+ - ' app/controllers/grape_swagger_rails/application_controller.rb'
46
118
- ' spec/dummy/app/controllers/welcome_controller.rb'
119
+
120
+ # Offense count: 1
121
+ # Cop supports --auto-correct.
122
+ Style/Encoding :
123
+ Exclude :
124
+ - ' grape-swagger-rails.gemspec'
125
+
126
+ # Offense count: 14
127
+ # Cop supports --auto-correct.
128
+ Style/ExpandPathArguments :
129
+ Exclude :
130
+ - ' Rakefile'
131
+ - ' grape-swagger-rails.gemspec'
132
+ - ' lib/script/rails'
133
+ - ' lib/tasks/swagger_ui.rake'
134
+ - ' spec/dummy/Rakefile'
135
+ - ' spec/dummy/bin/bundle'
136
+ - ' spec/dummy/bin/rails'
137
+ - ' spec/dummy/bin/rake'
47
138
- ' spec/dummy/config/application.rb'
139
+ - ' spec/dummy/config/boot.rb'
140
+ - ' spec/dummy/config/environment.rb'
141
+ - ' spec/spec_helper.rb'
48
142
49
- # Offense count: 2
50
- # Configuration parameters: Exclude.
51
- Style/FileName :
143
+ # Offense count: 37
144
+ # Cop supports --auto-correct.
145
+ # Configuration parameters: EnforcedStyle.
146
+ # SupportedStyles: always, never
147
+ Style/FrozenStringLiteralComment :
148
+ Enabled : false
149
+
150
+ # Offense count: 3
151
+ # Cop supports --auto-correct.
152
+ # Configuration parameters: PreferredDelimiters.
153
+ Style/PercentLiteralDelimiters :
52
154
Exclude :
155
+ - ' grape-swagger-rails.gemspec'
53
156
- ' lib/grape-swagger-rails.rb'
54
- - ' spec/features/grape-swagger-rails_spec .rb'
157
+ - ' spec/features/swagger_spec .rb'
55
158
56
159
# Offense count: 1
57
160
# Cop supports --auto-correct.
58
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
161
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
162
+ # SupportedStyles: slashes, percent_r, mixed
59
163
Style/RegexpLiteral :
60
164
Exclude :
61
165
- ' lib/tasks/swagger_ui.rake'
166
+
167
+ # Offense count: 2
168
+ # Cop supports --auto-correct.
169
+ # Configuration parameters: MinSize.
170
+ # SupportedStyles: percent, brackets
171
+ Style/SymbolArray :
172
+ EnforcedStyle : brackets
173
+
174
+ # Offense count: 48
175
+ # Cop supports --auto-correct.
176
+ # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
177
+ # URISchemes: http, https
178
+ Metrics/LineLength :
179
+ Max : 129
0 commit comments