1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2020-05-26 08:28:37 -0400 using RuboCop version 0.84.0.
3
+ # on 2020-09-30 12:54:06 -0400 using RuboCop version 0.84.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
@@ -13,7 +13,7 @@ Layout/ClosingHeredocIndentation:
13
13
- ' spec/grape/api_spec.rb'
14
14
- ' spec/grape/entity_spec.rb'
15
15
16
- # Offense count: 71
16
+ # Offense count: 73
17
17
# Cop supports --auto-correct.
18
18
Layout/EmptyLineAfterGuardClause :
19
19
Enabled : false
@@ -53,43 +53,37 @@ Lint/NonDeterministicRequireOrder:
53
53
Exclude :
54
54
- ' spec/spec_helper.rb'
55
55
56
- # Offense count: 1
57
- # Cop supports --auto-correct.
58
- Lint/RedundantCopDisableDirective :
59
- Exclude :
60
- - ' lib/grape/router/attribute_translator.rb'
61
-
62
56
# Offense count: 2
63
57
# Cop supports --auto-correct.
64
58
Lint/ToJSON :
65
59
Exclude :
66
60
- ' spec/grape/middleware/formatter_spec.rb'
67
61
68
- # Offense count: 47
62
+ # Offense count: 50
69
63
# Configuration parameters: IgnoredMethods.
70
64
Metrics/AbcSize :
71
- Max : 44
65
+ Max : 43
72
66
73
67
# Offense count: 6
74
68
# Configuration parameters: CountComments, ExcludedMethods.
75
69
# ExcludedMethods: refine
76
70
Metrics/BlockLength :
77
71
Max : 182
78
72
79
- # Offense count: 10
73
+ # Offense count: 11
80
74
# Configuration parameters: CountComments.
81
75
Metrics/ClassLength :
82
- Max : 305
76
+ Max : 304
83
77
84
78
# Offense count: 30
85
79
# Configuration parameters: IgnoredMethods.
86
80
Metrics/CyclomaticComplexity :
87
81
Max : 14
88
82
89
- # Offense count: 61
83
+ # Offense count: 69
90
84
# Configuration parameters: CountComments, ExcludedMethods.
91
85
Metrics/MethodLength :
92
- Max : 36
86
+ Max : 32
93
87
94
88
# Offense count: 12
95
89
# Configuration parameters: CountComments.
@@ -120,13 +114,6 @@ Naming/MethodParameterName:
120
114
- ' lib/grape/middleware/stack.rb'
121
115
- ' spec/grape/api_spec.rb'
122
116
123
- # Offense count: 1
124
- # Cop supports --auto-correct.
125
- # Configuration parameters: PreferredName.
126
- Naming/RescuedExceptionsVariableName :
127
- Exclude :
128
- - ' lib/grape/middleware/error.rb'
129
-
130
117
# Offense count: 3
131
118
# Cop supports --auto-correct.
132
119
Performance/InefficientHashSearch :
@@ -157,25 +144,20 @@ Style/ExpandPathArguments:
157
144
Style/FormatStringToken :
158
145
EnforcedStyle : template
159
146
160
- # Offense count: 23
147
+ # Offense count: 19
161
148
# Cop supports --auto-correct.
162
149
Style/IfUnlessModifier :
163
150
Exclude :
164
151
- ' lib/grape/api/instance.rb'
165
152
- ' lib/grape/dsl/desc.rb'
166
153
- ' lib/grape/dsl/request_response.rb'
167
- - ' lib/grape/dsl/routing.rb'
168
154
- ' lib/grape/dsl/settings.rb'
169
155
- ' lib/grape/endpoint.rb'
170
156
- ' lib/grape/error_formatter/json.rb'
171
157
- ' lib/grape/error_formatter/xml.rb'
172
- - ' lib/grape/middleware/error.rb'
173
158
- ' lib/grape/middleware/formatter.rb'
174
159
- ' lib/grape/middleware/versioner/accept_version_header.rb'
175
160
- ' lib/grape/validations/params_scope.rb'
176
- - ' lib/grape/validations/validators/base.rb'
177
- - ' lib/grape/validations/validators/default.rb'
178
- - ' spec/support/versioned_helpers.rb'
179
161
180
162
# Offense count: 1
181
163
Style/MethodMissingSuper :
@@ -191,7 +173,7 @@ Style/NumericPredicate:
191
173
- ' spec/**/*'
192
174
- ' lib/grape/middleware/formatter.rb'
193
175
194
- # Offense count: 11
176
+ # Offense count: 10
195
177
# Cop supports --auto-correct.
196
178
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
197
179
# AllowedMethods: present?, blank?, presence, try, try!
@@ -202,18 +184,9 @@ Style/SafeNavigation:
202
184
- ' lib/grape/dsl/inside_route.rb'
203
185
- ' lib/grape/dsl/request_response.rb'
204
186
- ' lib/grape/endpoint.rb'
205
- - ' lib/grape/middleware/error.rb'
206
187
- ' lib/grape/middleware/versioner/accept_version_header.rb'
207
188
- ' lib/grape/middleware/versioner/header.rb'
208
189
209
- # Offense count: 2
210
- # Cop supports --auto-correct.
211
- # Configuration parameters: EnforcedStyleForMultiline.
212
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
213
- Style/TrailingCommaInHashLiteral :
214
- Exclude :
215
- - ' lib/grape/middleware/error.rb'
216
-
217
190
# Offense count: 10
218
191
# Cop supports --auto-correct.
219
192
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
@@ -223,7 +196,7 @@ Style/WordArray:
223
196
- ' spec/grape/validations/validators/except_values_spec.rb'
224
197
- ' spec/grape/validations/validators/values_spec.rb'
225
198
226
- # Offense count: 125
199
+ # Offense count: 131
227
200
# Cop supports --auto-correct.
228
201
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
229
202
# URISchemes: http, https
0 commit comments