11# This configuration was generated by
22# `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.
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
@@ -13,7 +13,7 @@ Layout/ClosingHeredocIndentation:
1313 - ' spec/grape/api_spec.rb'
1414 - ' spec/grape/entity_spec.rb'
1515
16- # Offense count: 71
16+ # Offense count: 73
1717# Cop supports --auto-correct.
1818Layout/EmptyLineAfterGuardClause :
1919 Enabled : false
@@ -53,43 +53,37 @@ Lint/NonDeterministicRequireOrder:
5353 Exclude :
5454 - ' spec/spec_helper.rb'
5555
56- # Offense count: 1
57- # Cop supports --auto-correct.
58- Lint/RedundantCopDisableDirective :
59- Exclude :
60- - ' lib/grape/router/attribute_translator.rb'
61-
6256# Offense count: 2
6357# Cop supports --auto-correct.
6458Lint/ToJSON :
6559 Exclude :
6660 - ' spec/grape/middleware/formatter_spec.rb'
6761
68- # Offense count: 47
62+ # Offense count: 50
6963# Configuration parameters: IgnoredMethods.
7064Metrics/AbcSize :
71- Max : 44
65+ Max : 43
7266
7367# Offense count: 6
7468# Configuration parameters: CountComments, ExcludedMethods.
7569# ExcludedMethods: refine
7670Metrics/BlockLength :
7771 Max : 182
7872
79- # Offense count: 10
73+ # Offense count: 11
8074# Configuration parameters: CountComments.
8175Metrics/ClassLength :
82- Max : 305
76+ Max : 304
8377
8478# Offense count: 30
8579# Configuration parameters: IgnoredMethods.
8680Metrics/CyclomaticComplexity :
8781 Max : 14
8882
89- # Offense count: 61
83+ # Offense count: 69
9084# Configuration parameters: CountComments, ExcludedMethods.
9185Metrics/MethodLength :
92- Max : 36
86+ Max : 32
9387
9488# Offense count: 12
9589# Configuration parameters: CountComments.
@@ -120,13 +114,6 @@ Naming/MethodParameterName:
120114 - ' lib/grape/middleware/stack.rb'
121115 - ' spec/grape/api_spec.rb'
122116
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-
130117# Offense count: 3
131118# Cop supports --auto-correct.
132119Performance/InefficientHashSearch :
@@ -157,25 +144,20 @@ Style/ExpandPathArguments:
157144Style/FormatStringToken :
158145 EnforcedStyle : template
159146
160- # Offense count: 23
147+ # Offense count: 19
161148# Cop supports --auto-correct.
162149Style/IfUnlessModifier :
163150 Exclude :
164151 - ' lib/grape/api/instance.rb'
165152 - ' lib/grape/dsl/desc.rb'
166153 - ' lib/grape/dsl/request_response.rb'
167- - ' lib/grape/dsl/routing.rb'
168154 - ' lib/grape/dsl/settings.rb'
169155 - ' lib/grape/endpoint.rb'
170156 - ' lib/grape/error_formatter/json.rb'
171157 - ' lib/grape/error_formatter/xml.rb'
172- - ' lib/grape/middleware/error.rb'
173158 - ' lib/grape/middleware/formatter.rb'
174159 - ' lib/grape/middleware/versioner/accept_version_header.rb'
175160 - ' 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'
179161
180162# Offense count: 1
181163Style/MethodMissingSuper :
@@ -191,7 +173,7 @@ Style/NumericPredicate:
191173 - ' spec/**/*'
192174 - ' lib/grape/middleware/formatter.rb'
193175
194- # Offense count: 11
176+ # Offense count: 10
195177# Cop supports --auto-correct.
196178# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
197179# AllowedMethods: present?, blank?, presence, try, try!
@@ -202,18 +184,9 @@ Style/SafeNavigation:
202184 - ' lib/grape/dsl/inside_route.rb'
203185 - ' lib/grape/dsl/request_response.rb'
204186 - ' lib/grape/endpoint.rb'
205- - ' lib/grape/middleware/error.rb'
206187 - ' lib/grape/middleware/versioner/accept_version_header.rb'
207188 - ' lib/grape/middleware/versioner/header.rb'
208189
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-
217190# Offense count: 10
218191# Cop supports --auto-correct.
219192# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
@@ -223,7 +196,7 @@ Style/WordArray:
223196 - ' spec/grape/validations/validators/except_values_spec.rb'
224197 - ' spec/grape/validations/validators/values_spec.rb'
225198
226- # Offense count: 125
199+ # Offense count: 131
227200# Cop supports --auto-correct.
228201# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
229202# URISchemes: http, https
0 commit comments