1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2024-06-15 15:12:21 UTC using RuboCop version 1.64.1.
3
+ # on 2024-06-22 17:26:10 UTC using RuboCop version 1.64.1.
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
@@ -14,57 +14,19 @@ Gemspec/RequireMFA:
14
14
Exclude :
15
15
- ' grape.gemspec'
16
16
17
- # Offense count: 1
18
- # This cop supports safe autocorrection (--autocorrect).
19
- # Configuration parameters: AllowedMethods, AllowedPatterns.
20
- Lint/AmbiguousBlockAssociation :
21
- Exclude :
22
- - ' spec/grape/dsl/routing_spec.rb'
23
-
24
17
# Offense count: 1
25
18
# Configuration parameters: AllowedMethods.
26
19
# AllowedMethods: enums
27
20
Lint/ConstantDefinitionInBlock :
28
21
Exclude :
29
22
- ' spec/grape/validations/validators/except_values_spec.rb'
30
23
31
- # Offense count: 3
32
- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
33
- Lint/DuplicateBranch :
34
- Exclude :
35
- - ' spec/support/versioned_helpers.rb'
36
-
37
- # Offense count: 1
38
- # Configuration parameters: AllowComments.
39
- Lint/EmptyClass :
40
- Exclude :
41
- - ' lib/grape/dsl/parameters.rb'
42
-
43
24
# Offense count: 1
44
25
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
45
26
Metrics/MethodLength :
46
27
Exclude :
47
28
- ' lib/grape/endpoint.rb'
48
29
49
- # Offense count: 2
50
- # This cop supports unsafe autocorrection (--autocorrect-all).
51
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
52
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
53
- Naming/MemoizedInstanceVariableName :
54
- Exclude :
55
- - ' lib/grape/api/instance.rb'
56
- - ' lib/grape/middleware/base.rb'
57
-
58
- # Offense count: 5
59
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
60
- # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
61
- Naming/MethodParameterName :
62
- Exclude :
63
- - ' lib/grape/endpoint.rb'
64
- - ' lib/grape/middleware/error.rb'
65
- - ' lib/grape/middleware/stack.rb'
66
- - ' spec/grape/api_spec.rb'
67
-
68
30
# Offense count: 18
69
31
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
70
32
# SupportedStyles: snake_case, normalcase, non_integer
@@ -117,10 +79,9 @@ RSpec/ExpectActual:
117
79
- ' spec/grape/endpoint/declared_spec.rb'
118
80
- ' spec/grape/middleware/exception_spec.rb'
119
81
120
- # Offense count: 3
82
+ # Offense count: 1
121
83
RSpec/ExpectInHook :
122
84
Exclude :
123
- - ' spec/grape/api_spec.rb'
124
85
- ' spec/grape/validations/validators/values_spec.rb'
125
86
126
87
# Offense count: 6
@@ -147,31 +108,16 @@ RSpec/LeakyConstantDeclaration:
147
108
Exclude :
148
109
- ' spec/grape/validations/validators/except_values_spec.rb'
149
110
150
- # Offense count: 2
111
+ # Offense count: 1
151
112
RSpec/MessageChain :
152
113
Exclude :
153
114
- ' spec/grape/middleware/formatter_spec.rb'
154
115
155
- # Offense count: 144
156
- # Configuration parameters: .
157
- # SupportedStyles: have_received, receive
158
- RSpec/MessageSpies :
159
- EnforcedStyle : receive
160
-
161
116
# Offense count: 12
162
117
RSpec/MissingExampleGroupArgument :
163
118
Exclude :
164
119
- ' spec/grape/middleware/exception_spec.rb'
165
120
166
- # Offense count: 17
167
- # Configuration parameters: AllowedPatterns.
168
- # AllowedPatterns: ^expect_, ^assert_
169
- RSpec/NoExpectationExample :
170
- Exclude :
171
- - ' spec/grape/api_remount_spec.rb'
172
- - ' spec/grape/api_spec.rb'
173
- - ' spec/grape/validations_spec.rb'
174
-
175
121
# Offense count: 12
176
122
RSpec/RepeatedDescription :
177
123
Exclude :
@@ -180,10 +126,9 @@ RSpec/RepeatedDescription:
180
126
- ' spec/grape/validations/validators/allow_blank_spec.rb'
181
127
- ' spec/grape/validations/validators/values_spec.rb'
182
128
183
- # Offense count: 8
129
+ # Offense count: 6
184
130
RSpec/RepeatedExample :
185
131
Exclude :
186
- - ' spec/grape/api_spec.rb'
187
132
- ' spec/grape/middleware/versioner/accept_version_header_spec.rb'
188
133
- ' spec/grape/validations/validators/allow_blank_spec.rb'
189
134
@@ -195,13 +140,6 @@ RSpec/RepeatedExampleGroupDescription:
195
140
- ' spec/grape/util/inheritable_setting_spec.rb'
196
141
- ' spec/grape/validations/validators/values_spec.rb'
197
142
198
- # Offense count: 2
199
- # This cop supports safe autocorrection (--autocorrect).
200
- # Configuration parameters: AutoCorrect.
201
- RSpec/ScatteredSetup :
202
- Exclude :
203
- - ' spec/grape/util/inheritable_setting_spec.rb'
204
-
205
143
# Offense count: 5
206
144
RSpec/StubbedMock :
207
145
Exclude :
@@ -228,7 +166,7 @@ RSpec/SubjectStub:
228
166
- ' spec/grape/middleware/stack_spec.rb'
229
167
- ' spec/grape/parser_spec.rb'
230
168
231
- # Offense count: 24
169
+ # Offense count: 23
232
170
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
233
171
RSpec/VerifiedDoubles :
234
172
Exclude :
@@ -251,13 +189,6 @@ Style/CombinableLoops:
251
189
Exclude :
252
190
- ' spec/grape/endpoint_spec.rb'
253
191
254
- # Offense count: 2
255
- # This cop supports safe autocorrection (--autocorrect).
256
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
257
- # SupportedStyles: annotated, template, unannotated
258
- Style/FormatStringToken :
259
- EnforcedStyle : template
260
-
261
192
# Offense count: 12
262
193
# Configuration parameters: AllowedMethods.
263
194
# AllowedMethods: respond_to_missing?
@@ -274,55 +205,3 @@ Style/OptionalBooleanParameter:
274
205
- ' lib/grape/validations/types/dry_type_coercer.rb'
275
206
- ' lib/grape/validations/types/primitive_coercer.rb'
276
207
- ' lib/grape/validations/types/set_coercer.rb'
277
-
278
- # Offense count: 29
279
- # This cop supports safe autocorrection (--autocorrect).
280
- Style/RedundantConstantBase :
281
- Exclude :
282
- - ' spec/grape/api/invalid_format_spec.rb'
283
- - ' spec/grape/api_spec.rb'
284
- - ' spec/grape/dsl/logger_spec.rb'
285
- - ' spec/grape/endpoint/declared_spec.rb'
286
- - ' spec/grape/endpoint_spec.rb'
287
- - ' spec/grape/middleware/formatter_spec.rb'
288
- - ' spec/grape/validations/validators/coerce_spec.rb'
289
- - ' spec/grape/validations/validators/default_spec.rb'
290
- - ' spec/integration/multi_json/json_spec.rb'
291
- - ' spec/integration/multi_xml/xml_spec.rb'
292
-
293
- # Offense count: 2
294
- # This cop supports safe autocorrection (--autocorrect).
295
- # Configuration parameters: AllowAsExpressionSeparator.
296
- Style/Semicolon :
297
- Exclude :
298
- - ' spec/grape/api_spec.rb'
299
-
300
- # Offense count: 2
301
- # This cop supports safe autocorrection (--autocorrect).
302
- Style/SuperArguments :
303
- Exclude :
304
- - ' lib/grape/api.rb'
305
- - ' spec/support/deprecated_warning_handlers.rb'
306
-
307
- # Offense count: 2
308
- # This cop supports unsafe autocorrection (--autocorrect-all).
309
- # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
310
- # AllowedMethods: define_method
311
- Style/SymbolProc :
312
- Exclude :
313
- - ' benchmark/large_model.rb'
314
- - ' spec/grape/validations/params_scope_spec.rb'
315
-
316
- # Offense count: 1
317
- # This cop supports unsafe autocorrection (--autocorrect-all).
318
- # Configuration parameters: EnforcedStyle.
319
- # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
320
- Style/YodaCondition :
321
- Exclude :
322
- - ' lib/grape/api.rb'
323
-
324
- # Offense count: 1
325
- # This cop supports unsafe autocorrection (--autocorrect-all).
326
- Style/ZeroLengthPredicate :
327
- Exclude :
328
- - ' lib/grape/validations/validators/exactly_one_of_validator.rb'
0 commit comments