apipie-rails 0.9.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -14
- data/.rubocop_todo.yml +102 -213
- data/CHANGELOG.md +17 -6
- data/README.rst +12 -12
- data/app/controllers/apipie/apipies_controller.rb +4 -4
- data/lib/apipie/apipie_module.rb +4 -4
- data/lib/apipie/application.rb +70 -54
- data/lib/apipie/configuration.rb +19 -26
- data/lib/apipie/dsl_definition.rb +4 -5
- data/lib/apipie/extractor/collector.rb +2 -2
- data/lib/apipie/extractor.rb +1 -1
- data/lib/apipie/generator/config.rb +12 -0
- data/lib/apipie/generator/swagger/computed_interface_id.rb +23 -0
- data/lib/apipie/generator/swagger/config.rb +78 -0
- data/lib/apipie/generator/swagger/context.rb +12 -1
- data/lib/apipie/generator/swagger/method_description/api_decorator.rb +20 -0
- data/lib/apipie/generator/swagger/method_description/api_schema_service.rb +86 -0
- data/lib/apipie/generator/swagger/method_description/decorator.rb +22 -0
- data/lib/apipie/generator/swagger/method_description/parameters_service.rb +139 -0
- data/lib/apipie/generator/swagger/method_description/response_schema_service.rb +46 -0
- data/lib/apipie/generator/swagger/method_description/response_service.rb +58 -0
- data/lib/apipie/generator/swagger/method_description.rb +2 -0
- data/lib/apipie/generator/swagger/operation_id.rb +1 -1
- data/lib/apipie/generator/swagger/param_description/builder.rb +4 -4
- data/lib/apipie/generator/swagger/param_description/composite.rb +9 -1
- data/lib/apipie/generator/swagger/param_description/in.rb +1 -1
- data/lib/apipie/generator/swagger/param_description/path_params_composite.rb +61 -0
- data/lib/apipie/generator/swagger/param_description/referenced_composite.rb +36 -0
- data/lib/apipie/generator/swagger/param_description/type.rb +9 -2
- data/lib/apipie/generator/swagger/path_decorator.rb +36 -0
- data/lib/apipie/generator/swagger/referenced_definitions.rb +17 -0
- data/lib/apipie/generator/swagger/resource_description_collection.rb +30 -0
- data/lib/apipie/generator/swagger/resource_description_composite.rb +56 -0
- data/lib/apipie/generator/swagger/schema.rb +63 -0
- data/lib/apipie/generator/swagger/type_extractor.rb +0 -19
- data/lib/apipie/generator/swagger/warning.rb +3 -6
- data/lib/apipie/generator/swagger/warning_writer.rb +7 -1
- data/lib/apipie/method_description.rb +4 -2
- data/lib/apipie/param_description.rb +4 -2
- data/lib/apipie/resource_description.rb +1 -1
- data/lib/apipie/swagger_generator.rb +27 -551
- data/lib/apipie/validator.rb +7 -3
- data/lib/apipie/version.rb +1 -1
- data/lib/apipie-rails.rb +17 -0
- data/lib/tasks/apipie.rake +15 -10
- data/spec/controllers/api/v2/nested/resources_controller_spec.rb +2 -2
- data/spec/controllers/pets_controller_spec.rb +10 -16
- data/spec/controllers/users_controller_spec.rb +2 -2
- data/spec/dummy/app/controllers/pets_controller.rb +4 -4
- data/spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb +2 -2
- data/spec/dummy/app/controllers/twitter_example_controller.rb +2 -2
- data/spec/dummy/app/controllers/users_controller.rb +5 -5
- data/spec/lib/apipie/application_spec.rb +16 -7
- data/spec/lib/apipie/configuration_spec.rb +15 -0
- data/spec/lib/apipie/generator/swagger/config_spec.rb +19 -0
- data/spec/lib/apipie/generator/swagger/context_spec.rb +22 -2
- data/spec/lib/apipie/generator/swagger/method_description/api_schema_service_spec.rb +106 -0
- data/spec/lib/apipie/generator/swagger/method_description/response_schema_service_spec.rb +105 -0
- data/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb +1 -1
- data/spec/lib/apipie/generator/swagger/param_description/composite_spec.rb +2 -2
- data/spec/lib/apipie/generator/swagger/param_description/type_spec.rb +7 -7
- data/spec/lib/apipie/generator/swagger/path_decorator_spec.rb +57 -0
- data/spec/lib/apipie/generator/swagger/referenced_definitions_spec.rb +35 -0
- data/spec/lib/apipie/generator/swagger/resource_description_composite_spec.rb +37 -0
- data/spec/lib/apipie/generator/swagger/resource_descriptions_collection_spec.rb +57 -0
- data/spec/lib/apipie/generator/swagger/schema_spec.rb +89 -0
- data/spec/lib/apipie/generator/swagger/type_extractor_spec.rb +0 -43
- data/spec/lib/apipie/generator/swagger/warning_spec.rb +1 -1
- data/spec/lib/apipie/generator/swagger/warning_writer_spec.rb +19 -7
- data/spec/lib/apipie/method_description_spec.rb +101 -66
- data/spec/lib/apipie/param_description_spec.rb +209 -49
- data/spec/lib/apipie/param_group_spec.rb +1 -0
- data/spec/lib/apipie/resource_description_spec.rb +1 -1
- data/spec/lib/apipie/swagger_generator_spec.rb +94 -0
- data/spec/lib/apipie/validator_spec.rb +47 -11
- data/spec/lib/swagger/rake_swagger_spec.rb +4 -4
- data/spec/lib/swagger/swagger_dsl_spec.rb +7 -7
- data/spec/lib/validators/array_validator_spec.rb +1 -1
- metadata +28 -2
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config --exclude-limit 180`
|
3
|
-
# on 2023-04-
|
3
|
+
# on 2023-04-14 04:21:53 UTC using RuboCop version 1.44.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
|
@@ -17,6 +17,7 @@ Gemspec/DeprecatedAttributeAssignment:
|
|
17
17
|
# Offense count: 9
|
18
18
|
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
|
19
19
|
# SupportedStyles: Gemfile, gems.rb, gemspec
|
20
|
+
# AllowedGems: bundler
|
20
21
|
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
|
21
22
|
Gemspec/DevelopmentDependencies:
|
22
23
|
Exclude:
|
@@ -46,7 +47,7 @@ Gemspec/RequiredRubyVersion:
|
|
46
47
|
Exclude:
|
47
48
|
- 'spec/dummy/components/test_engine/test_engine.gemspec'
|
48
49
|
|
49
|
-
# Offense count:
|
50
|
+
# Offense count: 24
|
50
51
|
# This cop supports safe autocorrection (--autocorrect).
|
51
52
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
52
53
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
@@ -59,13 +60,12 @@ Layout/ArgumentAlignment:
|
|
59
60
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
60
61
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
61
62
|
|
62
|
-
# Offense count:
|
63
|
+
# Offense count: 2
|
63
64
|
# This cop supports safe autocorrection (--autocorrect).
|
64
65
|
# Configuration parameters: EnforcedStyleAlignWith.
|
65
66
|
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
66
67
|
Layout/BlockAlignment:
|
67
68
|
Exclude:
|
68
|
-
- 'lib/apipie/application.rb'
|
69
69
|
- 'lib/apipie/extractor/writer.rb'
|
70
70
|
- 'spec/lib/apipie/param_group_spec.rb'
|
71
71
|
|
@@ -79,12 +79,11 @@ Layout/CaseIndentation:
|
|
79
79
|
- 'lib/apipie/extractor/writer.rb'
|
80
80
|
- 'lib/apipie/helpers.rb'
|
81
81
|
|
82
|
-
# Offense count:
|
82
|
+
# Offense count: 1
|
83
83
|
# This cop supports safe autocorrection (--autocorrect).
|
84
84
|
# Configuration parameters: AllowForAlignment.
|
85
85
|
Layout/CommentIndentation:
|
86
86
|
Exclude:
|
87
|
-
- 'lib/apipie/swagger_generator.rb'
|
88
87
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
89
88
|
|
90
89
|
# Offense count: 1
|
@@ -95,7 +94,7 @@ Layout/DefEndAlignment:
|
|
95
94
|
Exclude:
|
96
95
|
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
97
96
|
|
98
|
-
# Offense count:
|
97
|
+
# Offense count: 27
|
99
98
|
# This cop supports safe autocorrection (--autocorrect).
|
100
99
|
# Configuration parameters: EnforcedStyle.
|
101
100
|
# SupportedStyles: leading, trailing
|
@@ -105,7 +104,6 @@ Layout/DotPosition:
|
|
105
104
|
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
106
105
|
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
107
106
|
- 'lib/apipie/method_description.rb'
|
108
|
-
- 'lib/apipie/swagger_generator.rb'
|
109
107
|
- 'spec/lib/apipie/application_spec.rb'
|
110
108
|
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
|
111
109
|
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
|
@@ -121,7 +119,7 @@ Layout/ElseAlignment:
|
|
121
119
|
- 'lib/apipie/param_description.rb'
|
122
120
|
- 'lib/apipie/resource_description.rb'
|
123
121
|
|
124
|
-
# Offense count:
|
122
|
+
# Offense count: 60
|
125
123
|
# This cop supports safe autocorrection (--autocorrect).
|
126
124
|
Layout/EmptyLineAfterGuardClause:
|
127
125
|
Exclude:
|
@@ -135,14 +133,13 @@ Layout/EmptyLineAfterGuardClause:
|
|
135
133
|
- 'lib/apipie/param_description.rb'
|
136
134
|
- 'lib/apipie/response_description_adapter.rb'
|
137
135
|
- 'lib/apipie/see_description.rb'
|
138
|
-
- 'lib/apipie/swagger_generator.rb'
|
139
136
|
- 'lib/apipie/validator.rb'
|
140
137
|
- 'lib/tasks/apipie.rake'
|
141
138
|
- 'spec/dummy/config/initializers/apipie.rb'
|
142
139
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
143
140
|
- 'spec/spec_helper.rb'
|
144
141
|
|
145
|
-
# Offense count:
|
142
|
+
# Offense count: 13
|
146
143
|
# This cop supports safe autocorrection (--autocorrect).
|
147
144
|
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
148
145
|
Layout/EmptyLineBetweenDefs:
|
@@ -153,13 +150,12 @@ Layout/EmptyLineBetweenDefs:
|
|
153
150
|
- 'lib/apipie/extractor/writer.rb'
|
154
151
|
- 'lib/apipie/response_description.rb'
|
155
152
|
- 'lib/apipie/response_description_adapter.rb'
|
156
|
-
- 'lib/apipie/swagger_generator.rb'
|
157
153
|
- 'lib/apipie/validator.rb'
|
158
154
|
- 'lib/tasks/apipie.rake'
|
159
155
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
160
156
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
161
157
|
|
162
|
-
# Offense count:
|
158
|
+
# Offense count: 57
|
163
159
|
# This cop supports safe autocorrection (--autocorrect).
|
164
160
|
Layout/EmptyLines:
|
165
161
|
Exclude:
|
@@ -170,18 +166,14 @@ Layout/EmptyLines:
|
|
170
166
|
- 'lib/apipie/response_description.rb'
|
171
167
|
- 'lib/apipie/response_description_adapter.rb'
|
172
168
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
173
|
-
- 'lib/apipie/swagger_generator.rb'
|
174
169
|
- 'lib/apipie/validator.rb'
|
175
170
|
- 'lib/tasks/apipie.rake'
|
176
171
|
- 'spec/controllers/included_param_group_controller_spec.rb'
|
177
|
-
- 'spec/controllers/pets_controller_spec.rb'
|
178
172
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
179
173
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
180
174
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
181
175
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
182
176
|
- 'spec/lib/apipie/application_spec.rb'
|
183
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
184
|
-
- 'spec/lib/apipie/param_description_spec.rb'
|
185
177
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
186
178
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
187
179
|
|
@@ -201,7 +193,7 @@ Layout/EmptyLinesAroundAttributeAccessor:
|
|
201
193
|
Exclude:
|
202
194
|
- 'lib/apipie/configuration.rb'
|
203
195
|
|
204
|
-
# Offense count:
|
196
|
+
# Offense count: 93
|
205
197
|
# This cop supports safe autocorrection (--autocorrect).
|
206
198
|
# Configuration parameters: EnforcedStyle.
|
207
199
|
# SupportedStyles: empty_lines, no_empty_lines
|
@@ -224,10 +216,8 @@ Layout/EmptyLinesAroundBlockBody:
|
|
224
216
|
- 'spec/lib/apipie/file_handler_spec.rb'
|
225
217
|
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
|
226
218
|
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
|
227
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
228
219
|
- 'spec/lib/apipie/param_description_spec.rb'
|
229
220
|
- 'spec/lib/apipie/param_group_spec.rb'
|
230
|
-
- 'spec/lib/apipie/resource_description_spec.rb'
|
231
221
|
- 'spec/lib/apipie/validator_spec.rb'
|
232
222
|
- 'spec/lib/rake_spec.rb'
|
233
223
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
@@ -236,14 +226,13 @@ Layout/EmptyLinesAroundBlockBody:
|
|
236
226
|
- 'spec/spec_helper.rb'
|
237
227
|
- 'spec/test_engine/memes_controller_spec.rb'
|
238
228
|
|
239
|
-
# Offense count:
|
229
|
+
# Offense count: 44
|
240
230
|
# This cop supports safe autocorrection (--autocorrect).
|
241
231
|
# Configuration parameters: EnforcedStyle.
|
242
232
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
243
233
|
Layout/EmptyLinesAroundClassBody:
|
244
234
|
Exclude:
|
245
235
|
- 'lib/apipie/application.rb'
|
246
|
-
- 'lib/apipie/configuration.rb'
|
247
236
|
- 'lib/apipie/error_description.rb'
|
248
237
|
- 'lib/apipie/extractor.rb'
|
249
238
|
- 'lib/apipie/extractor/collector.rb'
|
@@ -254,7 +243,6 @@ Layout/EmptyLinesAroundClassBody:
|
|
254
243
|
- 'lib/apipie/response_description.rb'
|
255
244
|
- 'lib/apipie/response_description_adapter.rb'
|
256
245
|
- 'lib/apipie/see_description.rb'
|
257
|
-
- 'lib/apipie/swagger_generator.rb'
|
258
246
|
- 'lib/apipie/tag_list_description.rb'
|
259
247
|
- 'lib/apipie/validator.rb'
|
260
248
|
- 'spec/dummy/app/controllers/application_controller.rb'
|
@@ -267,26 +255,18 @@ Layout/EmptyLinesAroundClassBody:
|
|
267
255
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
268
256
|
- 'spec/dummy/config/initializers/apipie.rb'
|
269
257
|
|
270
|
-
# Offense count:
|
271
|
-
# This cop supports safe autocorrection (--autocorrect).
|
272
|
-
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
273
|
-
Exclude:
|
274
|
-
- 'lib/apipie/swagger_generator.rb'
|
275
|
-
|
276
|
-
# Offense count: 11
|
258
|
+
# Offense count: 6
|
277
259
|
# This cop supports safe autocorrection (--autocorrect).
|
278
260
|
Layout/EmptyLinesAroundMethodBody:
|
279
261
|
Exclude:
|
280
262
|
- 'lib/apipie/application.rb'
|
281
263
|
- 'lib/apipie/dsl_definition.rb'
|
282
264
|
- 'lib/apipie/param_description.rb'
|
283
|
-
- 'lib/apipie/resource_description.rb'
|
284
265
|
- 'lib/apipie/response_description.rb'
|
285
266
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
286
267
|
- 'lib/apipie/static_dispatcher.rb'
|
287
|
-
- 'lib/apipie/swagger_generator.rb'
|
288
268
|
|
289
|
-
# Offense count:
|
269
|
+
# Offense count: 29
|
290
270
|
# This cop supports safe autocorrection (--autocorrect).
|
291
271
|
# Configuration parameters: EnforcedStyle.
|
292
272
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
@@ -299,14 +279,12 @@ Layout/EmptyLinesAroundModuleBody:
|
|
299
279
|
- 'lib/apipie/errors.rb'
|
300
280
|
- 'lib/apipie/extractor.rb'
|
301
281
|
- 'lib/apipie/markup.rb'
|
302
|
-
- 'lib/apipie/method_description.rb'
|
303
282
|
- 'lib/apipie/param_description.rb'
|
304
283
|
- 'lib/apipie/resource_description.rb'
|
305
284
|
- 'lib/apipie/response_description.rb'
|
306
285
|
- 'lib/apipie/response_description_adapter.rb'
|
307
286
|
- 'lib/apipie/see_description.rb'
|
308
287
|
- 'lib/apipie/static_dispatcher.rb'
|
309
|
-
- 'lib/apipie/swagger_generator.rb'
|
310
288
|
- 'lib/apipie/tag_list_description.rb'
|
311
289
|
- 'lib/apipie/validator.rb'
|
312
290
|
|
@@ -324,12 +302,11 @@ Layout/EndAlignment:
|
|
324
302
|
- 'lib/apipie/param_description.rb'
|
325
303
|
- 'lib/apipie/resource_description.rb'
|
326
304
|
|
327
|
-
# Offense count:
|
305
|
+
# Offense count: 28
|
328
306
|
# This cop supports safe autocorrection (--autocorrect).
|
329
307
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
330
308
|
Layout/ExtraSpacing:
|
331
309
|
Exclude:
|
332
|
-
- 'lib/apipie/configuration.rb'
|
333
310
|
- 'lib/apipie/dsl_definition.rb'
|
334
311
|
- 'spec/controllers/users_controller_spec.rb'
|
335
312
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
@@ -348,7 +325,7 @@ Layout/FirstArrayElementIndentation:
|
|
348
325
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
349
326
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
350
327
|
|
351
|
-
# Offense count:
|
328
|
+
# Offense count: 38
|
352
329
|
# This cop supports safe autocorrection (--autocorrect).
|
353
330
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
354
331
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
@@ -358,7 +335,6 @@ Layout/FirstHashElementIndentation:
|
|
358
335
|
- 'lib/apipie/extractor.rb'
|
359
336
|
- 'lib/apipie/response_description.rb'
|
360
337
|
- 'lib/apipie/response_description_adapter.rb'
|
361
|
-
- 'lib/apipie/swagger_generator.rb'
|
362
338
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
363
339
|
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
364
340
|
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
|
@@ -369,7 +345,7 @@ Layout/FirstHashElementIndentation:
|
|
369
345
|
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
|
370
346
|
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
|
371
347
|
|
372
|
-
# Offense count:
|
348
|
+
# Offense count: 122
|
373
349
|
# This cop supports safe autocorrection (--autocorrect).
|
374
350
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
375
351
|
# SupportedHashRocketStyles: key, separator, table
|
@@ -378,7 +354,6 @@ Layout/FirstHashElementIndentation:
|
|
378
354
|
Layout/HashAlignment:
|
379
355
|
Exclude:
|
380
356
|
- 'lib/apipie/dsl_definition.rb'
|
381
|
-
- 'lib/apipie/swagger_generator.rb'
|
382
357
|
- 'lib/tasks/apipie.rake'
|
383
358
|
- 'spec/controllers/users_controller_spec.rb'
|
384
359
|
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
@@ -401,7 +376,7 @@ Layout/IndentationConsistency:
|
|
401
376
|
|
402
377
|
# Offense count: 10
|
403
378
|
# This cop supports safe autocorrection (--autocorrect).
|
404
|
-
# Configuration parameters: Width, AllowedPatterns.
|
379
|
+
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
|
405
380
|
Layout/IndentationWidth:
|
406
381
|
Exclude:
|
407
382
|
- 'app/controllers/apipie/apipies_controller.rb'
|
@@ -421,12 +396,11 @@ Layout/InitialIndentation:
|
|
421
396
|
- 'spec/dummy/app/controllers/extending_concern.rb'
|
422
397
|
- 'spec/dummy/app/controllers/sample_controller.rb'
|
423
398
|
|
424
|
-
# Offense count:
|
399
|
+
# Offense count: 15
|
425
400
|
# This cop supports safe autocorrection (--autocorrect).
|
426
401
|
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
427
402
|
Layout/LeadingCommentSpace:
|
428
403
|
Exclude:
|
429
|
-
- 'lib/apipie/configuration.rb'
|
430
404
|
- 'lib/apipie/dsl_definition.rb'
|
431
405
|
- 'lib/tasks/apipie.rake'
|
432
406
|
|
@@ -456,7 +430,7 @@ Layout/MultilineMethodCallBraceLayout:
|
|
456
430
|
Exclude:
|
457
431
|
- 'lib/tasks/apipie.rake'
|
458
432
|
|
459
|
-
# Offense count:
|
433
|
+
# Offense count: 14
|
460
434
|
# This cop supports safe autocorrection (--autocorrect).
|
461
435
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
462
436
|
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
@@ -465,7 +439,6 @@ Layout/MultilineMethodCallIndentation:
|
|
465
439
|
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
466
440
|
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
467
441
|
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
468
|
-
- 'lib/apipie/swagger_generator.rb'
|
469
442
|
|
470
443
|
# Offense count: 5
|
471
444
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -484,7 +457,7 @@ Layout/SpaceAfterColon:
|
|
484
457
|
Exclude:
|
485
458
|
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
|
486
459
|
|
487
|
-
# Offense count:
|
460
|
+
# Offense count: 42
|
488
461
|
# This cop supports safe autocorrection (--autocorrect).
|
489
462
|
Layout/SpaceAfterComma:
|
490
463
|
Exclude:
|
@@ -499,12 +472,9 @@ Layout/SpaceAfterComma:
|
|
499
472
|
- 'lib/apipie/method_description.rb'
|
500
473
|
- 'lib/apipie/param_description.rb'
|
501
474
|
- 'lib/apipie/static_dispatcher.rb'
|
502
|
-
- 'lib/apipie/swagger_generator.rb'
|
503
475
|
- 'lib/tasks/apipie.rake'
|
504
476
|
- 'spec/controllers/users_controller_spec.rb'
|
505
477
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
506
|
-
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
507
|
-
- 'spec/dummy/app/controllers/users_controller.rb'
|
508
478
|
- 'spec/dummy/config/initializers/apipie.rb'
|
509
479
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
510
480
|
- 'spec/lib/apipie/application_spec.rb'
|
@@ -538,7 +508,7 @@ Layout/SpaceAroundOperators:
|
|
538
508
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
539
509
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
540
510
|
|
541
|
-
# Offense count:
|
511
|
+
# Offense count: 32
|
542
512
|
# This cop supports safe autocorrection (--autocorrect).
|
543
513
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
544
514
|
# SupportedStyles: space, no_space
|
@@ -551,7 +521,6 @@ Layout/SpaceBeforeBlockBraces:
|
|
551
521
|
- 'lib/apipie/param_description.rb'
|
552
522
|
- 'lib/apipie/response_description.rb'
|
553
523
|
- 'lib/apipie/routes_formatter.rb'
|
554
|
-
- 'lib/apipie/swagger_generator.rb'
|
555
524
|
- 'lib/tasks/apipie.rake'
|
556
525
|
- 'spec/controllers/users_controller_spec.rb'
|
557
526
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
@@ -574,7 +543,7 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
|
574
543
|
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
575
544
|
- 'spec/controllers/users_controller_spec.rb'
|
576
545
|
|
577
|
-
# Offense count:
|
546
|
+
# Offense count: 63
|
578
547
|
# This cop supports safe autocorrection (--autocorrect).
|
579
548
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
580
549
|
# SupportedStyles: space, no_space
|
@@ -586,7 +555,6 @@ Layout/SpaceInsideBlockBraces:
|
|
586
555
|
- 'lib/apipie/param_description.rb'
|
587
556
|
- 'lib/apipie/response_description.rb'
|
588
557
|
- 'lib/apipie/routes_formatter.rb'
|
589
|
-
- 'lib/apipie/swagger_generator.rb'
|
590
558
|
- 'lib/apipie/validator.rb'
|
591
559
|
- 'lib/tasks/apipie.rake'
|
592
560
|
- 'spec/controllers/users_controller_spec.rb'
|
@@ -599,20 +567,18 @@ Layout/SpaceInsideBlockBraces:
|
|
599
567
|
- 'spec/spec_helper.rb'
|
600
568
|
- 'spec/support/rake.rb'
|
601
569
|
|
602
|
-
# Offense count:
|
570
|
+
# Offense count: 206
|
603
571
|
# This cop supports safe autocorrection (--autocorrect).
|
604
572
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
605
573
|
# SupportedStyles: space, no_space, compact
|
606
574
|
# SupportedStylesForEmptyBraces: space, no_space
|
607
575
|
Layout/SpaceInsideHashLiteralBraces:
|
608
576
|
Exclude:
|
609
|
-
- 'lib/apipie/dsl_definition.rb'
|
610
577
|
- 'lib/apipie/extractor.rb'
|
611
578
|
- 'lib/apipie/extractor/collector.rb'
|
612
579
|
- 'lib/apipie/extractor/recorder.rb'
|
613
580
|
- 'lib/apipie/response_description.rb'
|
614
581
|
- 'lib/apipie/see_description.rb'
|
615
|
-
- 'lib/apipie/swagger_generator.rb'
|
616
582
|
- 'lib/tasks/apipie.rake'
|
617
583
|
- 'spec/controllers/users_controller_spec.rb'
|
618
584
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
@@ -621,7 +587,6 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
621
587
|
- 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
|
622
588
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
623
589
|
- 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
|
624
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
625
590
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
626
591
|
|
627
592
|
# Offense count: 5
|
@@ -668,7 +633,7 @@ Layout/TrailingWhitespace:
|
|
668
633
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
669
634
|
|
670
635
|
# Offense count: 10
|
671
|
-
# This cop supports
|
636
|
+
# This cop supports safe autocorrection (--autocorrect).
|
672
637
|
# Configuration parameters: AllowSafeAssignment.
|
673
638
|
Lint/AssignmentInCondition:
|
674
639
|
Exclude:
|
@@ -759,14 +724,14 @@ Lint/ToJSON:
|
|
759
724
|
- 'lib/apipie/validator.rb'
|
760
725
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
761
726
|
|
762
|
-
# Offense count:
|
727
|
+
# Offense count: 2
|
763
728
|
# Configuration parameters: AllowKeywordBlockArguments.
|
764
729
|
Lint/UnderscorePrefixedVariableName:
|
765
730
|
Exclude:
|
766
731
|
- 'lib/apipie/application.rb'
|
767
732
|
- 'lib/apipie/dsl_definition.rb'
|
768
733
|
|
769
|
-
# Offense count:
|
734
|
+
# Offense count: 26
|
770
735
|
# This cop supports safe autocorrection (--autocorrect).
|
771
736
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
772
737
|
Lint/UnusedBlockArgument:
|
@@ -777,7 +742,6 @@ Lint/UnusedBlockArgument:
|
|
777
742
|
- 'lib/apipie/param_description.rb'
|
778
743
|
- 'lib/apipie/resource_description.rb'
|
779
744
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
780
|
-
- 'lib/apipie/swagger_generator.rb'
|
781
745
|
- 'lib/tasks/apipie.rake'
|
782
746
|
- 'spec/controllers/users_controller_spec.rb'
|
783
747
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
@@ -785,7 +749,7 @@ Lint/UnusedBlockArgument:
|
|
785
749
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
786
750
|
- 'spec/spec_helper.rb'
|
787
751
|
|
788
|
-
# Offense count:
|
752
|
+
# Offense count: 26
|
789
753
|
# This cop supports safe autocorrection (--autocorrect).
|
790
754
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
791
755
|
Lint/UnusedMethodArgument:
|
@@ -793,7 +757,6 @@ Lint/UnusedMethodArgument:
|
|
793
757
|
- 'lib/apipie/application.rb'
|
794
758
|
- 'lib/apipie/dsl_definition.rb'
|
795
759
|
- 'lib/apipie/response_description_adapter.rb'
|
796
|
-
- 'lib/apipie/swagger_generator.rb'
|
797
760
|
- 'lib/apipie/validator.rb'
|
798
761
|
- 'spec/dummy/config/initializers/apipie.rb'
|
799
762
|
- 'spec/support/custom_bool_validator.rb'
|
@@ -818,10 +781,10 @@ Lint/Void:
|
|
818
781
|
Exclude:
|
819
782
|
- 'spec/controllers/users_controller_spec.rb'
|
820
783
|
|
821
|
-
# Offense count:
|
822
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
784
|
+
# Offense count: 58
|
785
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
823
786
|
Metrics/AbcSize:
|
824
|
-
Max:
|
787
|
+
Max: 96
|
825
788
|
|
826
789
|
# Offense count: 4
|
827
790
|
# Configuration parameters: CountBlocks.
|
@@ -829,12 +792,12 @@ Metrics/BlockNesting:
|
|
829
792
|
Max: 4
|
830
793
|
|
831
794
|
# Offense count: 25
|
832
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
795
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
833
796
|
Metrics/CyclomaticComplexity:
|
834
797
|
Max: 24
|
835
798
|
|
836
|
-
# Offense count:
|
837
|
-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
799
|
+
# Offense count: 77
|
800
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
838
801
|
Metrics/MethodLength:
|
839
802
|
Max: 58
|
840
803
|
|
@@ -843,14 +806,14 @@ Metrics/MethodLength:
|
|
843
806
|
Metrics/ModuleLength:
|
844
807
|
Max: 119
|
845
808
|
|
846
|
-
# Offense count:
|
809
|
+
# Offense count: 4
|
847
810
|
# Configuration parameters: CountKeywordArgs.
|
848
811
|
Metrics/ParameterLists:
|
849
812
|
MaxOptionalParameters: 5
|
850
813
|
Max: 6
|
851
814
|
|
852
|
-
# Offense count:
|
853
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
815
|
+
# Offense count: 21
|
816
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
854
817
|
Metrics/PerceivedComplexity:
|
855
818
|
Max: 25
|
856
819
|
|
@@ -877,22 +840,21 @@ Naming/HeredocDelimiterCase:
|
|
877
840
|
Exclude:
|
878
841
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
879
842
|
|
880
|
-
# Offense count:
|
843
|
+
# Offense count: 6
|
881
844
|
# Configuration parameters: ForbiddenDelimiters.
|
882
|
-
# ForbiddenDelimiters: (
|
845
|
+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
883
846
|
Naming/HeredocDelimiterNaming:
|
884
847
|
Exclude:
|
885
848
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
886
849
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
887
850
|
|
888
|
-
# Offense count:
|
851
|
+
# Offense count: 3
|
889
852
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
890
853
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
891
854
|
Naming/MemoizedInstanceVariableName:
|
892
855
|
Exclude:
|
893
856
|
- 'lib/apipie/apipie_module.rb'
|
894
857
|
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
895
|
-
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
896
858
|
|
897
859
|
# Offense count: 3
|
898
860
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
@@ -918,7 +880,7 @@ Naming/PredicateName:
|
|
918
880
|
# Offense count: 1
|
919
881
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
920
882
|
# SupportedStyles: snake_case, normalcase, non_integer
|
921
|
-
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
883
|
+
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
922
884
|
Naming/VariableNumber:
|
923
885
|
Exclude:
|
924
886
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
@@ -971,15 +933,14 @@ Performance/RegexpMatch:
|
|
971
933
|
- 'lib/apipie/extractor/writer.rb'
|
972
934
|
- 'lib/apipie/helpers.rb'
|
973
935
|
|
974
|
-
# Offense count:
|
936
|
+
# Offense count: 7
|
975
937
|
# This cop supports safe autocorrection (--autocorrect).
|
976
938
|
Performance/StringIdentifierArgument:
|
977
939
|
Exclude:
|
978
940
|
- 'lib/apipie/extractor/writer.rb'
|
979
941
|
- 'spec/controllers/users_controller_spec.rb'
|
980
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
981
942
|
|
982
|
-
# Offense count:
|
943
|
+
# Offense count: 6
|
983
944
|
# This cop supports safe autocorrection (--autocorrect).
|
984
945
|
Performance/StringReplacement:
|
985
946
|
Exclude:
|
@@ -988,7 +949,6 @@ Performance/StringReplacement:
|
|
988
949
|
- 'lib/apipie/extractor/writer.rb'
|
989
950
|
- 'lib/apipie/generator/swagger/operation_id.rb'
|
990
951
|
- 'lib/apipie/static_dispatcher.rb'
|
991
|
-
- 'lib/apipie/swagger_generator.rb'
|
992
952
|
- 'lib/tasks/apipie.rake'
|
993
953
|
|
994
954
|
# Offense count: 2
|
@@ -1004,7 +964,7 @@ RSpec/Be:
|
|
1004
964
|
- 'spec/controllers/concerns_controller_spec.rb'
|
1005
965
|
- 'spec/controllers/users_controller_spec.rb'
|
1006
966
|
|
1007
|
-
# Offense count:
|
967
|
+
# Offense count: 59
|
1008
968
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1009
969
|
RSpec/BeEq:
|
1010
970
|
Exclude:
|
@@ -1016,7 +976,6 @@ RSpec/BeEq:
|
|
1016
976
|
- 'spec/lib/apipie/method_description_spec.rb'
|
1017
977
|
- 'spec/lib/apipie/param_description_spec.rb'
|
1018
978
|
- 'spec/lib/apipie/param_group_spec.rb'
|
1019
|
-
- 'spec/lib/apipie/resource_description_spec.rb'
|
1020
979
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1021
980
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1022
981
|
|
@@ -1025,7 +984,7 @@ RSpec/BeforeAfterAll:
|
|
1025
984
|
Exclude:
|
1026
985
|
- 'spec/controllers/users_controller_spec.rb'
|
1027
986
|
|
1028
|
-
# Offense count:
|
987
|
+
# Offense count: 52
|
1029
988
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
1030
989
|
# Prefixes: when, with, without
|
1031
990
|
RSpec/ContextWording:
|
@@ -1053,7 +1012,7 @@ RSpec/DescribeClass:
|
|
1053
1012
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1054
1013
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1055
1014
|
|
1056
|
-
# Offense count:
|
1015
|
+
# Offense count: 76
|
1057
1016
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1058
1017
|
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
1059
1018
|
# SupportedStyles: described_class, explicit
|
@@ -1080,12 +1039,11 @@ RSpec/EmptyExampleGroup:
|
|
1080
1039
|
Exclude:
|
1081
1040
|
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
|
1082
1041
|
|
1083
|
-
# Offense count:
|
1042
|
+
# Offense count: 2
|
1084
1043
|
# This cop supports safe autocorrection (--autocorrect).
|
1085
1044
|
RSpec/EmptyLineAfterExampleGroup:
|
1086
1045
|
Exclude:
|
1087
1046
|
- 'spec/controllers/users_controller_spec.rb'
|
1088
|
-
- 'spec/lib/apipie/param_description_spec.rb'
|
1089
1047
|
|
1090
1048
|
# Offense count: 1
|
1091
1049
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1093,20 +1051,19 @@ RSpec/EmptyLineAfterFinalLet:
|
|
1093
1051
|
Exclude:
|
1094
1052
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1095
1053
|
|
1096
|
-
# Offense count:
|
1054
|
+
# Offense count: 3
|
1097
1055
|
# This cop supports safe autocorrection (--autocorrect).
|
1098
1056
|
# Configuration parameters: AllowConsecutiveOneLiners.
|
1099
1057
|
RSpec/EmptyLineAfterHook:
|
1100
1058
|
Exclude:
|
1101
1059
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1102
|
-
- 'spec/lib/apipie/application_spec.rb'
|
1103
1060
|
|
1104
|
-
# Offense count:
|
1061
|
+
# Offense count: 51
|
1105
1062
|
# Configuration parameters: CountAsOne.
|
1106
1063
|
RSpec/ExampleLength:
|
1107
1064
|
Max: 85
|
1108
1065
|
|
1109
|
-
# Offense count:
|
1066
|
+
# Offense count: 159
|
1110
1067
|
# This cop supports safe autocorrection (--autocorrect).
|
1111
1068
|
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
|
1112
1069
|
# DisallowedExamples: works
|
@@ -1140,25 +1097,20 @@ RSpec/ExpectInHook:
|
|
1140
1097
|
Exclude:
|
1141
1098
|
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1142
1099
|
|
1143
|
-
# Offense count:
|
1100
|
+
# Offense count: 2
|
1144
1101
|
# This cop supports safe autocorrection (--autocorrect).
|
1145
1102
|
# Configuration parameters: EnforcedStyle.
|
1146
1103
|
# SupportedStyles: implicit, each, example
|
1147
1104
|
RSpec/HookArgument:
|
1148
1105
|
Exclude:
|
1149
|
-
- 'spec/controllers/pets_controller_spec.rb'
|
1150
1106
|
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1151
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
1152
|
-
- 'spec/lib/apipie/resource_description_spec.rb'
|
1153
1107
|
|
1154
|
-
# Offense count:
|
1108
|
+
# Offense count: 3
|
1155
1109
|
# This cop supports safe autocorrection (--autocorrect).
|
1156
1110
|
RSpec/HooksBeforeExamples:
|
1157
1111
|
Exclude:
|
1158
1112
|
- 'spec/controllers/users_controller_spec.rb'
|
1159
|
-
- 'spec/lib/apipie/application_spec.rb'
|
1160
1113
|
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1161
|
-
- 'spec/lib/apipie/param_description_spec.rb'
|
1162
1114
|
|
1163
1115
|
# Offense count: 2
|
1164
1116
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1168,15 +1120,13 @@ RSpec/ImplicitSubject:
|
|
1168
1120
|
Exclude:
|
1169
1121
|
- 'spec/lib/apipie/application_spec.rb'
|
1170
1122
|
|
1171
|
-
# Offense count:
|
1123
|
+
# Offense count: 2
|
1172
1124
|
# Configuration parameters: AssignmentOnly.
|
1173
1125
|
RSpec/InstanceVariable:
|
1174
1126
|
Exclude:
|
1175
1127
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1176
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
1177
|
-
- 'spec/lib/apipie/resource_description_spec.rb'
|
1178
1128
|
|
1179
|
-
# Offense count:
|
1129
|
+
# Offense count: 8
|
1180
1130
|
# This cop supports safe autocorrection (--autocorrect).
|
1181
1131
|
RSpec/LeadingSubject:
|
1182
1132
|
Exclude:
|
@@ -1186,7 +1136,6 @@ RSpec/LeadingSubject:
|
|
1186
1136
|
- 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
|
1187
1137
|
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
|
1188
1138
|
- 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
|
1189
|
-
- 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
|
1190
1139
|
- 'spec/support/rake.rb'
|
1191
1140
|
|
1192
1141
|
# Offense count: 1
|
@@ -1200,16 +1149,16 @@ RSpec/LeakyConstantDeclaration:
|
|
1200
1149
|
RSpec/MessageSpies:
|
1201
1150
|
EnforcedStyle: receive
|
1202
1151
|
|
1203
|
-
# Offense count:
|
1152
|
+
# Offense count: 94
|
1204
1153
|
RSpec/MultipleExpectations:
|
1205
1154
|
Max: 19
|
1206
1155
|
|
1207
|
-
# Offense count:
|
1156
|
+
# Offense count: 154
|
1208
1157
|
# Configuration parameters: AllowSubject.
|
1209
1158
|
RSpec/MultipleMemoizedHelpers:
|
1210
1159
|
Max: 15
|
1211
1160
|
|
1212
|
-
# Offense count:
|
1161
|
+
# Offense count: 83
|
1213
1162
|
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
1214
1163
|
# SupportedStyles: always, named_only
|
1215
1164
|
RSpec/NamedSubject:
|
@@ -1221,7 +1170,6 @@ RSpec/NamedSubject:
|
|
1221
1170
|
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
|
1222
1171
|
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
|
1223
1172
|
- 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
|
1224
|
-
- 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
|
1225
1173
|
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
|
1226
1174
|
- 'spec/lib/apipie/generator/swagger/warning_writer_spec.rb'
|
1227
1175
|
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
|
@@ -1231,7 +1179,7 @@ RSpec/NamedSubject:
|
|
1231
1179
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1232
1180
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1233
1181
|
|
1234
|
-
# Offense count:
|
1182
|
+
# Offense count: 89
|
1235
1183
|
# Configuration parameters: AllowedGroups.
|
1236
1184
|
RSpec/NestedGroups:
|
1237
1185
|
Max: 6
|
@@ -1244,14 +1192,13 @@ RSpec/NoExpectationExample:
|
|
1244
1192
|
- 'spec/controllers/users_controller_spec.rb'
|
1245
1193
|
- 'spec/test_engine/memes_controller_spec.rb'
|
1246
1194
|
|
1247
|
-
# Offense count:
|
1195
|
+
# Offense count: 2
|
1248
1196
|
# This cop supports safe autocorrection (--autocorrect).
|
1249
1197
|
# Configuration parameters: EnforcedStyle.
|
1250
1198
|
# SupportedStyles: not_to, to_not
|
1251
1199
|
RSpec/NotToNot:
|
1252
1200
|
Exclude:
|
1253
1201
|
- 'spec/lib/apipie/file_handler_spec.rb'
|
1254
|
-
- 'spec/lib/apipie/param_description_spec.rb'
|
1255
1202
|
|
1256
1203
|
# Offense count: 1
|
1257
1204
|
RSpec/OverwritingSetup:
|
@@ -1279,22 +1226,15 @@ RSpec/Rails/InferredSpecType:
|
|
1279
1226
|
Exclude:
|
1280
1227
|
- 'spec/controllers/pets_controller_spec.rb'
|
1281
1228
|
|
1282
|
-
# Offense count: 4
|
1283
|
-
RSpec/RepeatedExample:
|
1284
|
-
Exclude:
|
1285
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
1286
|
-
- 'spec/lib/apipie/resource_description_spec.rb'
|
1287
|
-
|
1288
1229
|
# Offense count: 2
|
1289
1230
|
RSpec/RepeatedExampleGroupBody:
|
1290
1231
|
Exclude:
|
1291
1232
|
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
|
1292
1233
|
|
1293
|
-
# Offense count:
|
1234
|
+
# Offense count: 2
|
1294
1235
|
RSpec/RepeatedExampleGroupDescription:
|
1295
1236
|
Exclude:
|
1296
1237
|
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1297
|
-
- 'spec/lib/apipie/application_spec.rb'
|
1298
1238
|
|
1299
1239
|
# Offense count: 2
|
1300
1240
|
RSpec/StubbedMock:
|
@@ -1357,23 +1297,16 @@ Rails/HttpStatus:
|
|
1357
1297
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
1358
1298
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
1359
1299
|
|
1360
|
-
# Offense count:
|
1361
|
-
# This cop supports safe autocorrection (--autocorrect).
|
1362
|
-
Rails/IndexBy:
|
1363
|
-
Exclude:
|
1364
|
-
- 'lib/apipie/swagger_generator.rb'
|
1365
|
-
|
1366
|
-
# Offense count: 6
|
1300
|
+
# Offense count: 4
|
1367
1301
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1368
1302
|
Rails/NegateInclude:
|
1369
1303
|
Exclude:
|
1370
1304
|
- 'lib/apipie/extractor/collector.rb'
|
1371
1305
|
- 'lib/apipie/extractor/writer.rb'
|
1372
1306
|
- 'lib/apipie/generator/swagger/warning.rb'
|
1373
|
-
- 'lib/apipie/swagger_generator.rb'
|
1374
1307
|
- 'spec/spec_helper.rb'
|
1375
1308
|
|
1376
|
-
# Offense count:
|
1309
|
+
# Offense count: 7
|
1377
1310
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1378
1311
|
# Configuration parameters: Include.
|
1379
1312
|
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
@@ -1382,22 +1315,21 @@ Rails/Output:
|
|
1382
1315
|
- 'lib/apipie/apipie_module.rb'
|
1383
1316
|
- 'lib/apipie/extractor.rb'
|
1384
1317
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1385
|
-
- 'lib/apipie/swagger_generator.rb'
|
1386
1318
|
|
1387
1319
|
# Offense count: 2
|
1388
1320
|
Rails/OutputSafety:
|
1389
1321
|
Exclude:
|
1390
1322
|
- 'lib/apipie/helpers.rb'
|
1391
1323
|
|
1392
|
-
# Offense count:
|
1393
|
-
# This cop supports
|
1324
|
+
# Offense count: 3
|
1325
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1394
1326
|
Rails/Pluck:
|
1395
1327
|
Exclude:
|
1396
1328
|
- 'lib/apipie/extractor/writer.rb'
|
1397
1329
|
- 'spec/lib/apipie/method_description_spec.rb'
|
1398
1330
|
- 'spec/lib/apipie/resource_description_spec.rb'
|
1399
1331
|
|
1400
|
-
# Offense count:
|
1332
|
+
# Offense count: 4
|
1401
1333
|
# This cop supports safe autocorrection (--autocorrect).
|
1402
1334
|
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
1403
1335
|
Rails/Present:
|
@@ -1454,7 +1386,7 @@ Style/AndOr:
|
|
1454
1386
|
|
1455
1387
|
# Offense count: 17
|
1456
1388
|
# This cop supports safe autocorrection (--autocorrect).
|
1457
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
1389
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
1458
1390
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
1459
1391
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
1460
1392
|
# FunctionalMethods: let, let!, subject, watch
|
@@ -1474,7 +1406,7 @@ Style/CaseEquality:
|
|
1474
1406
|
Exclude:
|
1475
1407
|
- 'lib/apipie/validator.rb'
|
1476
1408
|
|
1477
|
-
# Offense count:
|
1409
|
+
# Offense count: 43
|
1478
1410
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1479
1411
|
# Configuration parameters: EnforcedStyle.
|
1480
1412
|
# SupportedStyles: nested, compact
|
@@ -1483,7 +1415,15 @@ Style/ClassAndModuleChildren:
|
|
1483
1415
|
- 'lib/apipie/core_ext/route.rb'
|
1484
1416
|
- 'lib/apipie/extractor.rb'
|
1485
1417
|
- 'lib/apipie/generator/generator.rb'
|
1418
|
+
- 'lib/apipie/generator/swagger/computed_interface_id.rb'
|
1486
1419
|
- 'lib/apipie/generator/swagger/context.rb'
|
1420
|
+
- 'lib/apipie/generator/swagger/method_description.rb'
|
1421
|
+
- 'lib/apipie/generator/swagger/method_description/api_decorator.rb'
|
1422
|
+
- 'lib/apipie/generator/swagger/method_description/api_schema_service.rb'
|
1423
|
+
- 'lib/apipie/generator/swagger/method_description/decorator.rb'
|
1424
|
+
- 'lib/apipie/generator/swagger/method_description/parameters_service.rb'
|
1425
|
+
- 'lib/apipie/generator/swagger/method_description/response_schema_service.rb'
|
1426
|
+
- 'lib/apipie/generator/swagger/method_description/response_service.rb'
|
1487
1427
|
- 'lib/apipie/generator/swagger/operation_id.rb'
|
1488
1428
|
- 'lib/apipie/generator/swagger/param_description.rb'
|
1489
1429
|
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
@@ -1491,7 +1431,14 @@ Style/ClassAndModuleChildren:
|
|
1491
1431
|
- 'lib/apipie/generator/swagger/param_description/description.rb'
|
1492
1432
|
- 'lib/apipie/generator/swagger/param_description/in.rb'
|
1493
1433
|
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
1434
|
+
- 'lib/apipie/generator/swagger/param_description/path_params_composite.rb'
|
1435
|
+
- 'lib/apipie/generator/swagger/param_description/referenced_composite.rb'
|
1494
1436
|
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
1437
|
+
- 'lib/apipie/generator/swagger/path_decorator.rb'
|
1438
|
+
- 'lib/apipie/generator/swagger/referenced_definitions.rb'
|
1439
|
+
- 'lib/apipie/generator/swagger/resource_description_collection.rb'
|
1440
|
+
- 'lib/apipie/generator/swagger/resource_description_composite.rb'
|
1441
|
+
- 'lib/apipie/generator/swagger/schema.rb'
|
1495
1442
|
- 'lib/apipie/generator/swagger/swagger.rb'
|
1496
1443
|
- 'lib/apipie/generator/swagger/type.rb'
|
1497
1444
|
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
@@ -1516,25 +1463,18 @@ Style/ClassCheck:
|
|
1516
1463
|
|
1517
1464
|
# Offense count: 2
|
1518
1465
|
# This cop supports safe autocorrection (--autocorrect).
|
1519
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
1466
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
1520
1467
|
# AllowedMethods: ==, equal?, eql?
|
1521
1468
|
Style/ClassEqualityComparison:
|
1522
1469
|
Exclude:
|
1523
1470
|
- 'lib/apipie/application.rb'
|
1524
1471
|
- 'lib/apipie/validator.rb'
|
1525
1472
|
|
1526
|
-
# Offense count:
|
1527
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1528
|
-
Style/CollectionCompact:
|
1529
|
-
Exclude:
|
1530
|
-
- 'lib/apipie/swagger_generator.rb'
|
1531
|
-
|
1532
|
-
# Offense count: 20
|
1473
|
+
# Offense count: 19
|
1533
1474
|
# This cop supports safe autocorrection (--autocorrect).
|
1534
1475
|
Style/ColonMethodCall:
|
1535
1476
|
Exclude:
|
1536
1477
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1537
|
-
- 'lib/apipie/swagger_generator.rb'
|
1538
1478
|
- 'lib/apipie/validator.rb'
|
1539
1479
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
1540
1480
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
@@ -1557,7 +1497,7 @@ Style/CommentedKeyword:
|
|
1557
1497
|
- 'lib/apipie/dsl_definition.rb'
|
1558
1498
|
- 'lib/apipie/extractor/recorder.rb'
|
1559
1499
|
|
1560
|
-
# Offense count:
|
1500
|
+
# Offense count: 9
|
1561
1501
|
# This cop supports safe autocorrection (--autocorrect).
|
1562
1502
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
1563
1503
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
@@ -1568,7 +1508,6 @@ Style/ConditionalAssignment:
|
|
1568
1508
|
- 'lib/apipie/param_description.rb'
|
1569
1509
|
- 'lib/apipie/response_description.rb'
|
1570
1510
|
- 'lib/apipie/see_description.rb'
|
1571
|
-
- 'lib/apipie/swagger_generator.rb'
|
1572
1511
|
- 'lib/tasks/apipie.rake'
|
1573
1512
|
|
1574
1513
|
# Offense count: 1
|
@@ -1579,7 +1518,7 @@ Style/DoubleNegation:
|
|
1579
1518
|
Exclude:
|
1580
1519
|
- 'lib/apipie/response_description_adapter.rb'
|
1581
1520
|
|
1582
|
-
# Offense count:
|
1521
|
+
# Offense count: 2
|
1583
1522
|
# This cop supports safe autocorrection (--autocorrect).
|
1584
1523
|
Style/EachWithObject:
|
1585
1524
|
Exclude:
|
@@ -1645,24 +1584,22 @@ Style/FileWrite:
|
|
1645
1584
|
Exclude:
|
1646
1585
|
- 'lib/tasks/apipie.rake'
|
1647
1586
|
|
1648
|
-
# Offense count:
|
1587
|
+
# Offense count: 2
|
1649
1588
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1650
1589
|
# Configuration parameters: EnforcedStyle.
|
1651
1590
|
# SupportedStyles: each, for
|
1652
1591
|
Style/For:
|
1653
1592
|
Exclude:
|
1654
1593
|
- 'lib/apipie/response_description_adapter.rb'
|
1655
|
-
- 'lib/apipie/swagger_generator.rb'
|
1656
1594
|
|
1657
|
-
# Offense count:
|
1595
|
+
# Offense count: 7
|
1658
1596
|
# This cop supports safe autocorrection (--autocorrect).
|
1659
|
-
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
1597
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
1660
1598
|
# SupportedStyles: annotated, template, unannotated
|
1661
|
-
# AllowedMethods: redirect
|
1662
1599
|
Style/FormatStringToken:
|
1663
1600
|
EnforcedStyle: template
|
1664
1601
|
|
1665
|
-
# Offense count:
|
1602
|
+
# Offense count: 33
|
1666
1603
|
# This cop supports safe autocorrection (--autocorrect).
|
1667
1604
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
1668
1605
|
Style/GuardClause:
|
@@ -1678,41 +1615,30 @@ Style/GuardClause:
|
|
1678
1615
|
- 'lib/apipie/resource_description.rb'
|
1679
1616
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1680
1617
|
- 'lib/apipie/static_dispatcher.rb'
|
1681
|
-
- 'lib/apipie/swagger_generator.rb'
|
1682
1618
|
- 'lib/apipie/validator.rb'
|
1683
1619
|
- 'spec/dummy/app/controllers/application_controller.rb'
|
1684
1620
|
- 'spec/dummy/config/initializers/apipie.rb'
|
1685
1621
|
|
1686
|
-
# Offense count: 1
|
1687
|
-
# This cop supports safe autocorrection (--autocorrect).
|
1688
|
-
# Configuration parameters: AllowSplatArgument.
|
1689
|
-
Style/HashConversion:
|
1690
|
-
Exclude:
|
1691
|
-
- 'lib/apipie/swagger_generator.rb'
|
1692
|
-
|
1693
1622
|
# Offense count: 1
|
1694
1623
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1695
1624
|
Style/HashExcept:
|
1696
1625
|
Exclude:
|
1697
1626
|
- 'lib/apipie/param_description.rb'
|
1698
1627
|
|
1699
|
-
# Offense count:
|
1628
|
+
# Offense count: 1
|
1700
1629
|
# This cop supports safe autocorrection (--autocorrect).
|
1701
1630
|
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
1702
1631
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
1703
1632
|
# SupportedShorthandSyntax: always, never, either, consistent
|
1704
1633
|
Style/HashSyntax:
|
1705
1634
|
Exclude:
|
1706
|
-
- 'lib/apipie/swagger_generator.rb'
|
1707
1635
|
- 'spec/dummy/config/routes.rb'
|
1708
1636
|
|
1709
|
-
# Offense count:
|
1637
|
+
# Offense count: 1
|
1710
1638
|
# This cop supports safe autocorrection (--autocorrect).
|
1711
1639
|
# Configuration parameters: AllowIfModifier.
|
1712
1640
|
Style/IfInsideElse:
|
1713
1641
|
Exclude:
|
1714
|
-
- 'lib/apipie/application.rb'
|
1715
|
-
- 'lib/apipie/swagger_generator.rb'
|
1716
1642
|
- 'spec/spec_helper.rb'
|
1717
1643
|
|
1718
1644
|
# Offense count: 4
|
@@ -1738,7 +1664,7 @@ Style/Lambda:
|
|
1738
1664
|
|
1739
1665
|
# Offense count: 2
|
1740
1666
|
# This cop supports safe autocorrection (--autocorrect).
|
1741
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
1667
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
1742
1668
|
Style/MethodCallWithoutArgsParentheses:
|
1743
1669
|
Exclude:
|
1744
1670
|
- 'lib/apipie/extractor/recorder.rb'
|
@@ -1764,13 +1690,6 @@ Style/MultilineBlockChain:
|
|
1764
1690
|
Exclude:
|
1765
1691
|
- 'lib/apipie/param_description.rb'
|
1766
1692
|
|
1767
|
-
# Offense count: 1
|
1768
|
-
# This cop supports safe autocorrection (--autocorrect).
|
1769
|
-
# Configuration parameters: AllowMethodComparison.
|
1770
|
-
Style/MultipleComparison:
|
1771
|
-
Exclude:
|
1772
|
-
- 'lib/apipie/validator.rb'
|
1773
|
-
|
1774
1693
|
# Offense count: 7
|
1775
1694
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1776
1695
|
# Configuration parameters: EnforcedStyle.
|
@@ -1784,7 +1703,7 @@ Style/MutableConstant:
|
|
1784
1703
|
- 'lib/apipie/routes_formatter.rb'
|
1785
1704
|
- 'lib/apipie/version.rb'
|
1786
1705
|
|
1787
|
-
# Offense count:
|
1706
|
+
# Offense count: 8
|
1788
1707
|
# This cop supports safe autocorrection (--autocorrect).
|
1789
1708
|
# Configuration parameters: EnforcedStyle.
|
1790
1709
|
# SupportedStyles: both, prefix, postfix
|
@@ -1796,7 +1715,6 @@ Style/NegatedIf:
|
|
1796
1715
|
- 'lib/apipie/method_description/apis_service.rb'
|
1797
1716
|
- 'lib/apipie/param_description.rb'
|
1798
1717
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1799
|
-
- 'lib/apipie/swagger_generator.rb'
|
1800
1718
|
- 'lib/apipie/validator.rb'
|
1801
1719
|
|
1802
1720
|
# Offense count: 2
|
@@ -1820,14 +1738,13 @@ Style/NestedParenthesizedCalls:
|
|
1820
1738
|
Style/NumericLiterals:
|
1821
1739
|
MinDigits: 6
|
1822
1740
|
|
1823
|
-
# Offense count:
|
1741
|
+
# Offense count: 7
|
1824
1742
|
# Configuration parameters: AllowedMethods.
|
1825
1743
|
# AllowedMethods: respond_to_missing?
|
1826
1744
|
Style/OptionalBooleanParameter:
|
1827
1745
|
Exclude:
|
1828
1746
|
- 'lib/apipie/apipie_module.rb'
|
1829
1747
|
- 'lib/apipie/application.rb'
|
1830
|
-
- 'lib/apipie/swagger_generator.rb'
|
1831
1748
|
- 'lib/tasks/apipie.rake'
|
1832
1749
|
|
1833
1750
|
# Offense count: 3
|
@@ -1898,20 +1815,18 @@ Style/RedundantConditional:
|
|
1898
1815
|
- 'lib/apipie/validator.rb'
|
1899
1816
|
- 'lib/tasks/apipie.rake'
|
1900
1817
|
|
1901
|
-
# Offense count:
|
1818
|
+
# Offense count: 3
|
1902
1819
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1903
1820
|
Style/RedundantInterpolation:
|
1904
1821
|
Exclude:
|
1905
|
-
- 'lib/apipie/swagger_generator.rb'
|
1906
1822
|
- 'lib/tasks/apipie.rake'
|
1907
1823
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1908
1824
|
|
1909
|
-
# Offense count:
|
1825
|
+
# Offense count: 1
|
1910
1826
|
# This cop supports safe autocorrection (--autocorrect).
|
1911
1827
|
Style/RedundantParentheses:
|
1912
1828
|
Exclude:
|
1913
1829
|
- 'lib/apipie/extractor/collector.rb'
|
1914
|
-
- 'lib/apipie/swagger_generator.rb'
|
1915
1830
|
|
1916
1831
|
# Offense count: 2
|
1917
1832
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1919,13 +1834,12 @@ Style/RedundantPercentQ:
|
|
1919
1834
|
Exclude:
|
1920
1835
|
- 'apipie-rails.gemspec'
|
1921
1836
|
|
1922
|
-
# Offense count:
|
1837
|
+
# Offense count: 29
|
1923
1838
|
# This cop supports safe autocorrection (--autocorrect).
|
1924
1839
|
# Configuration parameters: AllowMultipleReturnValues.
|
1925
1840
|
Style/RedundantReturn:
|
1926
1841
|
Exclude:
|
1927
1842
|
- 'lib/apipie/application.rb'
|
1928
|
-
- 'lib/apipie/configuration.rb'
|
1929
1843
|
- 'lib/apipie/dsl_definition.rb'
|
1930
1844
|
- 'lib/apipie/extractor.rb'
|
1931
1845
|
- 'lib/apipie/extractor/collector.rb'
|
@@ -1933,7 +1847,6 @@ Style/RedundantReturn:
|
|
1933
1847
|
- 'lib/apipie/method_description.rb'
|
1934
1848
|
- 'lib/apipie/middleware/checksum_in_headers.rb'
|
1935
1849
|
- 'lib/apipie/param_description.rb'
|
1936
|
-
- 'lib/apipie/swagger_generator.rb'
|
1937
1850
|
- 'lib/apipie/validator.rb'
|
1938
1851
|
- 'lib/tasks/apipie.rake'
|
1939
1852
|
|
@@ -2015,16 +1928,15 @@ Style/SoleNestedConditional:
|
|
2015
1928
|
Style/SpecialGlobalVars:
|
2016
1929
|
EnforcedStyle: use_perl_names
|
2017
1930
|
|
2018
|
-
# Offense count:
|
1931
|
+
# Offense count: 4
|
2019
1932
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2020
1933
|
# Configuration parameters: Mode.
|
2021
1934
|
Style/StringConcatenation:
|
2022
1935
|
Exclude:
|
2023
1936
|
- 'lib/apipie/application.rb'
|
2024
1937
|
- 'lib/apipie/extractor/writer.rb'
|
2025
|
-
- 'lib/apipie/swagger_generator.rb'
|
2026
1938
|
|
2027
|
-
# Offense count:
|
1939
|
+
# Offense count: 1196
|
2028
1940
|
# This cop supports safe autocorrection (--autocorrect).
|
2029
1941
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
2030
1942
|
# SupportedStyles: single_quotes, double_quotes
|
@@ -2053,7 +1965,6 @@ Style/StringLiterals:
|
|
2053
1965
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
2054
1966
|
- 'lib/apipie/see_description.rb'
|
2055
1967
|
- 'lib/apipie/static_dispatcher.rb'
|
2056
|
-
- 'lib/apipie/swagger_generator.rb'
|
2057
1968
|
- 'lib/apipie/validator.rb'
|
2058
1969
|
- 'lib/apipie/version.rb'
|
2059
1970
|
- 'lib/generators/apipie/install/install_generator.rb'
|
@@ -2109,7 +2020,7 @@ Style/StringLiterals:
|
|
2109
2020
|
- 'spec/support/rake.rb'
|
2110
2021
|
- 'spec/test_engine/memes_controller_spec.rb'
|
2111
2022
|
|
2112
|
-
# Offense count:
|
2023
|
+
# Offense count: 35
|
2113
2024
|
# This cop supports safe autocorrection (--autocorrect).
|
2114
2025
|
# Configuration parameters: MinSize.
|
2115
2026
|
# SupportedStyles: percent, brackets
|
@@ -2125,7 +2036,7 @@ Style/TrailingCommaInArrayLiteral:
|
|
2125
2036
|
- 'spec/controllers/users_controller_spec.rb'
|
2126
2037
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
2127
2038
|
|
2128
|
-
# Offense count:
|
2039
|
+
# Offense count: 4
|
2129
2040
|
# This cop supports safe autocorrection (--autocorrect).
|
2130
2041
|
# Configuration parameters: EnforcedStyleForMultiline.
|
2131
2042
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
@@ -2134,7 +2045,6 @@ Style/TrailingCommaInHashLiteral:
|
|
2134
2045
|
- 'lib/apipie/generator/swagger/param_description.rb'
|
2135
2046
|
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
2136
2047
|
- 'lib/apipie/response_description.rb'
|
2137
|
-
- 'lib/apipie/swagger_generator.rb'
|
2138
2048
|
- 'spec/controllers/users_controller_spec.rb'
|
2139
2049
|
|
2140
2050
|
# Offense count: 1
|
@@ -2153,30 +2063,9 @@ Style/UnlessElse:
|
|
2153
2063
|
- 'lib/apipie/validator.rb'
|
2154
2064
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
2155
2065
|
|
2156
|
-
# Offense count:
|
2157
|
-
# This cop supports safe autocorrection (--autocorrect).
|
2158
|
-
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
2159
|
-
# SupportedStyles: percent, brackets
|
2160
|
-
Style/WordArray:
|
2161
|
-
Exclude:
|
2162
|
-
- 'lib/apipie/generator/swagger/param_description/in.rb'
|
2163
|
-
- 'lib/apipie/swagger_generator.rb'
|
2164
|
-
- 'spec/controllers/users_controller_spec.rb'
|
2165
|
-
- 'spec/dummy/app/controllers/pets_controller.rb'
|
2166
|
-
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
2167
|
-
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
2168
|
-
- 'spec/dummy/app/controllers/users_controller.rb'
|
2169
|
-
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
|
2170
|
-
- 'spec/lib/apipie/method_description_spec.rb'
|
2171
|
-
- 'spec/lib/apipie/resource_description_spec.rb'
|
2172
|
-
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
2173
|
-
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
2174
|
-
- 'spec/lib/validators/array_validator_spec.rb'
|
2175
|
-
|
2176
|
-
# Offense count: 3
|
2066
|
+
# Offense count: 2
|
2177
2067
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2178
2068
|
Style/ZeroLengthPredicate:
|
2179
2069
|
Exclude:
|
2180
2070
|
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
2181
|
-
- 'lib/apipie/swagger_generator.rb'
|
2182
2071
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|