apipie-rails 0.9.1 → 0.9.2
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 +75 -0
- data/.rubocop_todo.yml +780 -201
- data/CHANGELOG.md +8 -0
- data/app/controllers/apipie/apipies_controller.rb +5 -6
- data/lib/apipie/apipie_module.rb +2 -2
- data/lib/apipie/application.rb +6 -6
- data/lib/apipie/configuration.rb +11 -11
- data/lib/apipie/dsl_definition.rb +11 -10
- data/lib/apipie/error_description.rb +2 -2
- data/lib/apipie/extractor/writer.rb +11 -11
- data/lib/apipie/generator/swagger/context.rb +27 -0
- data/lib/apipie/generator/swagger/operation_id.rb +51 -0
- data/lib/apipie/generator/swagger/param_description/builder.rb +105 -0
- data/lib/apipie/generator/swagger/param_description/composite.rb +111 -0
- data/lib/apipie/generator/swagger/param_description/description.rb +15 -0
- data/lib/apipie/generator/swagger/param_description/in.rb +37 -0
- data/lib/apipie/generator/swagger/param_description/name.rb +18 -0
- data/lib/apipie/generator/swagger/param_description/type.rb +108 -0
- data/lib/apipie/generator/swagger/param_description.rb +18 -0
- data/lib/apipie/generator/swagger/type_extractor.rb +2 -2
- data/lib/apipie/method_description.rb +4 -5
- data/lib/apipie/param_description.rb +7 -7
- data/lib/apipie/resource_description.rb +3 -3
- data/lib/apipie/response_description.rb +2 -2
- data/lib/apipie/response_description_adapter.rb +7 -5
- data/lib/apipie/swagger_generator.rb +54 -202
- data/lib/apipie/validator.rb +3 -3
- data/lib/apipie/version.rb +1 -1
- data/lib/apipie-rails.rb +9 -0
- data/lib/tasks/apipie.rake +5 -6
- data/spec/controllers/users_controller_spec.rb +3 -2
- data/spec/lib/generator/swagger/context_spec.rb +35 -0
- data/spec/lib/generator/swagger/operation_id_spec.rb +63 -0
- data/spec/lib/generator/swagger/param_description/builder_spec.rb +163 -0
- data/spec/lib/generator/swagger/param_description/composite_spec.rb +95 -0
- data/spec/lib/generator/swagger/param_description/description_spec.rb +79 -0
- data/spec/lib/generator/swagger/param_description/in_spec.rb +86 -0
- data/spec/lib/generator/swagger/param_description/name_spec.rb +81 -0
- data/spec/lib/generator/swagger/param_description/type_spec.rb +178 -0
- data/spec/lib/generator/swagger/param_description_spec.rb +28 -0
- data/spec/lib/generator/swagger/type_extractor_spec.rb +38 -18
- data/spec/lib/param_group_spec.rb +5 -5
- metadata +20 -2
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
2
|
+
# `rubocop --auto-gen-config --exclude-limit 200`
|
3
|
+
# on 2023-01-23 11:25:29 UTC using RuboCop version 1.44.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
|
@@ -8,12 +8,21 @@
|
|
8
8
|
|
9
9
|
# Offense count: 1
|
10
10
|
# This cop supports safe autocorrection (--autocorrect).
|
11
|
-
# Configuration parameters: Include.
|
11
|
+
# Configuration parameters: Severity, Include.
|
12
12
|
# Include: **/*.gemspec
|
13
13
|
Gemspec/DeprecatedAttributeAssignment:
|
14
14
|
Exclude:
|
15
15
|
- 'apipie-rails.gemspec'
|
16
16
|
|
17
|
+
# Offense count: 6
|
18
|
+
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
|
19
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
20
|
+
# AllowedGems: bundler
|
21
|
+
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
|
22
|
+
Gemspec/DevelopmentDependencies:
|
23
|
+
Exclude:
|
24
|
+
- 'apipie-rails.gemspec'
|
25
|
+
|
17
26
|
# Offense count: 1
|
18
27
|
# This cop supports safe autocorrection (--autocorrect).
|
19
28
|
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
@@ -24,27 +33,29 @@ Gemspec/OrderedDependencies:
|
|
24
33
|
|
25
34
|
# Offense count: 2
|
26
35
|
# This cop supports safe autocorrection (--autocorrect).
|
27
|
-
# Configuration parameters: Include.
|
36
|
+
# Configuration parameters: Severity, Include.
|
28
37
|
# Include: **/*.gemspec
|
29
38
|
Gemspec/RequireMFA:
|
30
39
|
Exclude:
|
31
40
|
- 'apipie-rails.gemspec'
|
32
41
|
- 'spec/dummy/components/test_engine/test_engine.gemspec'
|
33
42
|
|
34
|
-
# Offense count:
|
35
|
-
# Configuration parameters: Include.
|
43
|
+
# Offense count: 2
|
44
|
+
# Configuration parameters: Severity, Include.
|
36
45
|
# Include: **/*.gemspec
|
37
46
|
Gemspec/RequiredRubyVersion:
|
38
47
|
Exclude:
|
48
|
+
- 'apipie-rails.gemspec'
|
39
49
|
- 'spec/dummy/components/test_engine/test_engine.gemspec'
|
40
50
|
|
41
|
-
# Offense count:
|
51
|
+
# Offense count: 27
|
42
52
|
# This cop supports safe autocorrection (--autocorrect).
|
43
53
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
44
54
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
45
55
|
Layout/ArgumentAlignment:
|
46
56
|
Exclude:
|
47
57
|
- 'lib/apipie/configuration.rb'
|
58
|
+
- 'lib/apipie/method_description/api.rb'
|
48
59
|
- 'lib/apipie/resource_description.rb'
|
49
60
|
- 'spec/controllers/users_controller_spec.rb'
|
50
61
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
@@ -78,14 +89,28 @@ Layout/CommentIndentation:
|
|
78
89
|
- 'lib/apipie/swagger_generator.rb'
|
79
90
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
80
91
|
|
81
|
-
# Offense count:
|
92
|
+
# Offense count: 1
|
93
|
+
# This cop supports safe autocorrection (--autocorrect).
|
94
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
95
|
+
# SupportedStylesAlignWith: start_of_line, def
|
96
|
+
Layout/DefEndAlignment:
|
97
|
+
Exclude:
|
98
|
+
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
99
|
+
|
100
|
+
# Offense count: 36
|
82
101
|
# This cop supports safe autocorrection (--autocorrect).
|
83
102
|
# Configuration parameters: EnforcedStyle.
|
84
103
|
# SupportedStyles: leading, trailing
|
85
104
|
Layout/DotPosition:
|
86
105
|
Exclude:
|
106
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
107
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
108
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
87
109
|
- 'lib/apipie/method_description.rb'
|
110
|
+
- 'lib/apipie/swagger_generator.rb'
|
88
111
|
- 'spec/lib/application_spec.rb'
|
112
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
113
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
89
114
|
|
90
115
|
# Offense count: 7
|
91
116
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -98,10 +123,26 @@ Layout/ElseAlignment:
|
|
98
123
|
- 'lib/apipie/param_description.rb'
|
99
124
|
- 'lib/apipie/resource_description.rb'
|
100
125
|
|
101
|
-
# Offense count:
|
126
|
+
# Offense count: 64
|
102
127
|
# This cop supports safe autocorrection (--autocorrect).
|
103
128
|
Layout/EmptyLineAfterGuardClause:
|
104
|
-
|
129
|
+
Exclude:
|
130
|
+
- 'app/controllers/apipie/apipies_controller.rb'
|
131
|
+
- 'lib/apipie/application.rb'
|
132
|
+
- 'lib/apipie/dsl_definition.rb'
|
133
|
+
- 'lib/apipie/extractor/recorder.rb'
|
134
|
+
- 'lib/apipie/extractor/writer.rb'
|
135
|
+
- 'lib/apipie/helpers.rb'
|
136
|
+
- 'lib/apipie/method_description.rb'
|
137
|
+
- 'lib/apipie/param_description.rb'
|
138
|
+
- 'lib/apipie/response_description_adapter.rb'
|
139
|
+
- 'lib/apipie/see_description.rb'
|
140
|
+
- 'lib/apipie/swagger_generator.rb'
|
141
|
+
- 'lib/apipie/validator.rb'
|
142
|
+
- 'lib/tasks/apipie.rake'
|
143
|
+
- 'spec/dummy/config/initializers/apipie.rb'
|
144
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
145
|
+
- 'spec/spec_helper.rb'
|
105
146
|
|
106
147
|
# Offense count: 3
|
107
148
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -111,7 +152,7 @@ Layout/EmptyLineAfterMagicComment:
|
|
111
152
|
- 'lib/apipie/validator.rb'
|
112
153
|
- 'lib/tasks/apipie.rake'
|
113
154
|
|
114
|
-
# Offense count:
|
155
|
+
# Offense count: 17
|
115
156
|
# This cop supports safe autocorrection (--autocorrect).
|
116
157
|
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
117
158
|
Layout/EmptyLineBetweenDefs:
|
@@ -128,10 +169,31 @@ Layout/EmptyLineBetweenDefs:
|
|
128
169
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
129
170
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
130
171
|
|
131
|
-
# Offense count:
|
172
|
+
# Offense count: 74
|
132
173
|
# This cop supports safe autocorrection (--autocorrect).
|
133
174
|
Layout/EmptyLines:
|
134
|
-
|
175
|
+
Exclude:
|
176
|
+
- 'app/controllers/apipie/apipies_controller.rb'
|
177
|
+
- 'lib/apipie/apipie_module.rb'
|
178
|
+
- 'lib/apipie/dsl_definition.rb'
|
179
|
+
- 'lib/apipie/extractor/writer.rb'
|
180
|
+
- 'lib/apipie/response_description.rb'
|
181
|
+
- 'lib/apipie/response_description_adapter.rb'
|
182
|
+
- 'lib/apipie/rspec/response_validation_helper.rb'
|
183
|
+
- 'lib/apipie/swagger_generator.rb'
|
184
|
+
- 'lib/apipie/validator.rb'
|
185
|
+
- 'lib/tasks/apipie.rake'
|
186
|
+
- 'spec/controllers/apipies_controller_spec.rb'
|
187
|
+
- 'spec/controllers/included_param_group_controller_spec.rb'
|
188
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
189
|
+
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
190
|
+
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
191
|
+
- 'spec/lib/application_spec.rb'
|
192
|
+
- 'spec/lib/method_description_spec.rb'
|
193
|
+
- 'spec/lib/param_description_spec.rb'
|
194
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
195
|
+
- 'spec/lib/swagger/response_validation_spec.rb'
|
196
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
135
197
|
|
136
198
|
# Offense count: 1
|
137
199
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -141,28 +203,79 @@ Layout/EmptyLinesAroundAccessModifier:
|
|
141
203
|
Exclude:
|
142
204
|
- 'app/controllers/apipie/apipies_controller.rb'
|
143
205
|
|
144
|
-
# Offense count:
|
206
|
+
# Offense count: 5
|
145
207
|
# This cop supports safe autocorrection (--autocorrect).
|
146
208
|
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
147
209
|
# AllowedMethods: alias_method, public, protected, private
|
148
210
|
Layout/EmptyLinesAroundAttributeAccessor:
|
149
211
|
Exclude:
|
150
212
|
- 'lib/apipie/configuration.rb'
|
151
|
-
- 'lib/apipie/swagger_generator.rb'
|
152
213
|
|
153
|
-
# Offense count:
|
214
|
+
# Offense count: 107
|
154
215
|
# This cop supports safe autocorrection (--autocorrect).
|
155
216
|
# Configuration parameters: EnforcedStyle.
|
156
217
|
# SupportedStyles: empty_lines, no_empty_lines
|
157
218
|
Layout/EmptyLinesAroundBlockBody:
|
158
|
-
|
219
|
+
Exclude:
|
220
|
+
- 'app/controllers/apipie/apipies_controller.rb'
|
221
|
+
- 'lib/tasks/apipie.rake'
|
222
|
+
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
223
|
+
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
224
|
+
- 'spec/controllers/apipies_controller_spec.rb'
|
225
|
+
- 'spec/controllers/concerns_controller_spec.rb'
|
226
|
+
- 'spec/controllers/extended_controller_spec.rb'
|
227
|
+
- 'spec/controllers/included_param_group_controller_spec.rb'
|
228
|
+
- 'spec/controllers/memes_controller_spec.rb'
|
229
|
+
- 'spec/controllers/users_controller_spec.rb'
|
230
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
231
|
+
- 'spec/dummy/config/routes.rb'
|
232
|
+
- 'spec/lib/application_spec.rb'
|
233
|
+
- 'spec/lib/extractor/writer_spec.rb'
|
234
|
+
- 'spec/lib/file_handler_spec.rb'
|
235
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
236
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
237
|
+
- 'spec/lib/method_description_spec.rb'
|
238
|
+
- 'spec/lib/param_description_spec.rb'
|
239
|
+
- 'spec/lib/param_group_spec.rb'
|
240
|
+
- 'spec/lib/rake_spec.rb'
|
241
|
+
- 'spec/lib/resource_description_spec.rb'
|
242
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
243
|
+
- 'spec/lib/swagger/response_validation_spec.rb'
|
244
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
245
|
+
- 'spec/lib/validator_spec.rb'
|
246
|
+
- 'spec/lib/validators/array_validator_spec.rb'
|
247
|
+
- 'spec/spec_helper.rb'
|
159
248
|
|
160
|
-
# Offense count:
|
249
|
+
# Offense count: 47
|
161
250
|
# This cop supports safe autocorrection (--autocorrect).
|
162
251
|
# Configuration parameters: EnforcedStyle.
|
163
252
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
164
253
|
Layout/EmptyLinesAroundClassBody:
|
165
|
-
|
254
|
+
Exclude:
|
255
|
+
- 'lib/apipie/application.rb'
|
256
|
+
- 'lib/apipie/configuration.rb'
|
257
|
+
- 'lib/apipie/error_description.rb'
|
258
|
+
- 'lib/apipie/extractor.rb'
|
259
|
+
- 'lib/apipie/extractor/collector.rb'
|
260
|
+
- 'lib/apipie/extractor/writer.rb'
|
261
|
+
- 'lib/apipie/markup.rb'
|
262
|
+
- 'lib/apipie/param_description.rb'
|
263
|
+
- 'lib/apipie/resource_description.rb'
|
264
|
+
- 'lib/apipie/response_description.rb'
|
265
|
+
- 'lib/apipie/response_description_adapter.rb'
|
266
|
+
- 'lib/apipie/see_description.rb'
|
267
|
+
- 'lib/apipie/swagger_generator.rb'
|
268
|
+
- 'lib/apipie/tag_list_description.rb'
|
269
|
+
- 'lib/apipie/validator.rb'
|
270
|
+
- 'spec/dummy/app/controllers/application_controller.rb'
|
271
|
+
- 'spec/dummy/app/controllers/concerns_controller.rb'
|
272
|
+
- 'spec/dummy/app/controllers/extended_controller.rb'
|
273
|
+
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
|
274
|
+
- 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
|
275
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
276
|
+
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
277
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
278
|
+
- 'spec/dummy/config/initializers/apipie.rb'
|
166
279
|
|
167
280
|
# Offense count: 1
|
168
281
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -188,7 +301,24 @@ Layout/EmptyLinesAroundMethodBody:
|
|
188
301
|
# Configuration parameters: EnforcedStyle.
|
189
302
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
190
303
|
Layout/EmptyLinesAroundModuleBody:
|
191
|
-
|
304
|
+
Exclude:
|
305
|
+
- 'app/helpers/apipie_helper.rb'
|
306
|
+
- 'lib/apipie/application.rb'
|
307
|
+
- 'lib/apipie/dsl_definition.rb'
|
308
|
+
- 'lib/apipie/error_description.rb'
|
309
|
+
- 'lib/apipie/errors.rb'
|
310
|
+
- 'lib/apipie/extractor.rb'
|
311
|
+
- 'lib/apipie/markup.rb'
|
312
|
+
- 'lib/apipie/method_description.rb'
|
313
|
+
- 'lib/apipie/param_description.rb'
|
314
|
+
- 'lib/apipie/resource_description.rb'
|
315
|
+
- 'lib/apipie/response_description.rb'
|
316
|
+
- 'lib/apipie/response_description_adapter.rb'
|
317
|
+
- 'lib/apipie/see_description.rb'
|
318
|
+
- 'lib/apipie/static_dispatcher.rb'
|
319
|
+
- 'lib/apipie/swagger_generator.rb'
|
320
|
+
- 'lib/apipie/tag_list_description.rb'
|
321
|
+
- 'lib/apipie/validator.rb'
|
192
322
|
|
193
323
|
# Offense count: 7
|
194
324
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -204,19 +334,19 @@ Layout/EndAlignment:
|
|
204
334
|
- 'lib/apipie/param_description.rb'
|
205
335
|
- 'lib/apipie/resource_description.rb'
|
206
336
|
|
207
|
-
# Offense count:
|
337
|
+
# Offense count: 29
|
208
338
|
# This cop supports safe autocorrection (--autocorrect).
|
209
339
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
210
340
|
Layout/ExtraSpacing:
|
211
341
|
Exclude:
|
212
342
|
- 'lib/apipie/configuration.rb'
|
213
343
|
- 'lib/apipie/dsl_definition.rb'
|
214
|
-
- 'lib/apipie/swagger_generator.rb'
|
215
344
|
- 'spec/controllers/users_controller_spec.rb'
|
216
345
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
217
346
|
- 'spec/dummy/config.ru'
|
218
347
|
- 'spec/dummy/config/environments/test.rb'
|
219
348
|
- 'spec/dummy/script/rails'
|
349
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
220
350
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
221
351
|
|
222
352
|
# Offense count: 9
|
@@ -228,7 +358,7 @@ Layout/FirstArrayElementIndentation:
|
|
228
358
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
229
359
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
230
360
|
|
231
|
-
# Offense count:
|
361
|
+
# Offense count: 45
|
232
362
|
# This cop supports safe autocorrection (--autocorrect).
|
233
363
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
234
364
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
@@ -241,6 +371,13 @@ Layout/FirstHashElementIndentation:
|
|
241
371
|
- 'lib/apipie/swagger_generator.rb'
|
242
372
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
243
373
|
- 'spec/lib/extractor/writer_spec.rb'
|
374
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
375
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
376
|
+
- 'spec/lib/generator/swagger/param_description/description_spec.rb'
|
377
|
+
- 'spec/lib/generator/swagger/param_description/in_spec.rb'
|
378
|
+
- 'spec/lib/generator/swagger/param_description/name_spec.rb'
|
379
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
380
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
244
381
|
|
245
382
|
# Offense count: 117
|
246
383
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -263,15 +400,16 @@ Layout/HeredocIndentation:
|
|
263
400
|
- 'lib/tasks/apipie.rake'
|
264
401
|
- 'spec/controllers/users_controller_spec.rb'
|
265
402
|
|
266
|
-
# Offense count:
|
403
|
+
# Offense count: 2
|
267
404
|
# This cop supports safe autocorrection (--autocorrect).
|
268
405
|
# Configuration parameters: EnforcedStyle.
|
269
406
|
# SupportedStyles: normal, indented_internal_methods
|
270
407
|
Layout/IndentationConsistency:
|
271
408
|
Exclude:
|
409
|
+
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
272
410
|
- 'spec/lib/param_group_spec.rb'
|
273
411
|
|
274
|
-
# Offense count:
|
412
|
+
# Offense count: 10
|
275
413
|
# This cop supports safe autocorrection (--autocorrect).
|
276
414
|
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
|
277
415
|
Layout/IndentationWidth:
|
@@ -280,6 +418,7 @@ Layout/IndentationWidth:
|
|
280
418
|
- 'lib/apipie/apipie_module.rb'
|
281
419
|
- 'lib/apipie/application.rb'
|
282
420
|
- 'lib/apipie/extractor/writer.rb'
|
421
|
+
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
283
422
|
- 'lib/apipie/method_description.rb'
|
284
423
|
- 'lib/apipie/param_description.rb'
|
285
424
|
- 'lib/apipie/resource_description.rb'
|
@@ -327,13 +466,25 @@ Layout/MultilineMethodCallBraceLayout:
|
|
327
466
|
Exclude:
|
328
467
|
- 'lib/tasks/apipie.rake'
|
329
468
|
|
330
|
-
# Offense count:
|
469
|
+
# Offense count: 22
|
470
|
+
# This cop supports safe autocorrection (--autocorrect).
|
471
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
472
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
473
|
+
Layout/MultilineMethodCallIndentation:
|
474
|
+
Exclude:
|
475
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
476
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
477
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
478
|
+
- 'lib/apipie/swagger_generator.rb'
|
479
|
+
|
480
|
+
# Offense count: 5
|
331
481
|
# This cop supports safe autocorrection (--autocorrect).
|
332
482
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
333
483
|
# SupportedStyles: aligned, indented
|
334
484
|
Layout/MultilineOperationIndentation:
|
335
485
|
Exclude:
|
336
486
|
- 'lib/apipie/application.rb'
|
487
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
337
488
|
- 'lib/apipie/param_description.rb'
|
338
489
|
- 'lib/tasks/apipie.rake'
|
339
490
|
|
@@ -343,10 +494,33 @@ Layout/SpaceAfterColon:
|
|
343
494
|
Exclude:
|
344
495
|
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
|
345
496
|
|
346
|
-
# Offense count:
|
497
|
+
# Offense count: 81
|
347
498
|
# This cop supports safe autocorrection (--autocorrect).
|
348
499
|
Layout/SpaceAfterComma:
|
349
|
-
|
500
|
+
Exclude:
|
501
|
+
- 'apipie-rails.gemspec'
|
502
|
+
- 'lib/apipie/application.rb'
|
503
|
+
- 'lib/apipie/dsl_definition.rb'
|
504
|
+
- 'lib/apipie/extractor.rb'
|
505
|
+
- 'lib/apipie/extractor/collector.rb'
|
506
|
+
- 'lib/apipie/extractor/recorder.rb'
|
507
|
+
- 'lib/apipie/extractor/writer.rb'
|
508
|
+
- 'lib/apipie/helpers.rb'
|
509
|
+
- 'lib/apipie/method_description.rb'
|
510
|
+
- 'lib/apipie/param_description.rb'
|
511
|
+
- 'lib/apipie/static_dispatcher.rb'
|
512
|
+
- 'lib/apipie/swagger_generator.rb'
|
513
|
+
- 'lib/tasks/apipie.rake'
|
514
|
+
- 'spec/controllers/apipies_controller_spec.rb'
|
515
|
+
- 'spec/controllers/users_controller_spec.rb'
|
516
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
517
|
+
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
518
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
519
|
+
- 'spec/dummy/config/initializers/apipie.rb'
|
520
|
+
- 'spec/lib/application_spec.rb'
|
521
|
+
- 'spec/lib/param_description_spec.rb'
|
522
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
523
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
350
524
|
|
351
525
|
# Offense count: 4
|
352
526
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -357,7 +531,7 @@ Layout/SpaceAfterNot:
|
|
357
531
|
- 'lib/apipie/extractor/collector.rb'
|
358
532
|
- 'lib/apipie/extractor/writer.rb'
|
359
533
|
|
360
|
-
# Offense count:
|
534
|
+
# Offense count: 35
|
361
535
|
# This cop supports safe autocorrection (--autocorrect).
|
362
536
|
# Configuration parameters: EnforcedStyle.
|
363
537
|
# SupportedStyles: space, no_space
|
@@ -401,7 +575,7 @@ Layout/SpaceAroundOperators:
|
|
401
575
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
402
576
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
403
577
|
|
404
|
-
# Offense count:
|
578
|
+
# Offense count: 39
|
405
579
|
# This cop supports safe autocorrection (--autocorrect).
|
406
580
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
407
581
|
# SupportedStyles: space, no_space
|
@@ -428,7 +602,7 @@ Layout/SpaceBeforeComma:
|
|
428
602
|
Exclude:
|
429
603
|
- 'spec/controllers/users_controller_spec.rb'
|
430
604
|
|
431
|
-
# Offense count:
|
605
|
+
# Offense count: 4
|
432
606
|
# This cop supports safe autocorrection (--autocorrect).
|
433
607
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
434
608
|
# SupportedStyles: space, no_space, compact
|
@@ -436,31 +610,70 @@ Layout/SpaceBeforeComma:
|
|
436
610
|
Layout/SpaceInsideArrayLiteralBrackets:
|
437
611
|
Exclude:
|
438
612
|
- 'lib/apipie/extractor/writer.rb'
|
613
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
439
614
|
- 'spec/controllers/users_controller_spec.rb'
|
440
615
|
|
441
|
-
# Offense count:
|
616
|
+
# Offense count: 93
|
442
617
|
# This cop supports safe autocorrection (--autocorrect).
|
443
618
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
444
619
|
# SupportedStyles: space, no_space
|
445
620
|
# SupportedStylesForEmptyBraces: space, no_space
|
446
621
|
Layout/SpaceInsideBlockBraces:
|
447
|
-
|
622
|
+
Exclude:
|
623
|
+
- 'lib/apipie/dsl_definition.rb'
|
624
|
+
- 'lib/apipie/extractor/writer.rb'
|
625
|
+
- 'lib/apipie/param_description.rb'
|
626
|
+
- 'lib/apipie/response_description.rb'
|
627
|
+
- 'lib/apipie/routes_formatter.rb'
|
628
|
+
- 'lib/apipie/swagger_generator.rb'
|
629
|
+
- 'lib/apipie/validator.rb'
|
630
|
+
- 'lib/tasks/apipie.rake'
|
631
|
+
- 'spec/controllers/users_controller_spec.rb'
|
632
|
+
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
633
|
+
- 'spec/lib/application_spec.rb'
|
634
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
635
|
+
- 'spec/lib/generator/swagger/warning_spec.rb'
|
636
|
+
- 'spec/lib/method_description_spec.rb'
|
637
|
+
- 'spec/lib/resource_description_spec.rb'
|
638
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
639
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
640
|
+
- 'spec/spec_helper.rb'
|
641
|
+
- 'spec/support/rake.rb'
|
448
642
|
|
449
|
-
# Offense count:
|
643
|
+
# Offense count: 222
|
450
644
|
# This cop supports safe autocorrection (--autocorrect).
|
451
645
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
452
646
|
# SupportedStyles: space, no_space, compact
|
453
647
|
# SupportedStylesForEmptyBraces: space, no_space
|
454
648
|
Layout/SpaceInsideHashLiteralBraces:
|
455
|
-
|
649
|
+
Exclude:
|
650
|
+
- 'lib/apipie/dsl_definition.rb'
|
651
|
+
- 'lib/apipie/extractor.rb'
|
652
|
+
- 'lib/apipie/extractor/collector.rb'
|
653
|
+
- 'lib/apipie/extractor/recorder.rb'
|
654
|
+
- 'lib/apipie/response_description.rb'
|
655
|
+
- 'lib/apipie/see_description.rb'
|
656
|
+
- 'lib/apipie/swagger_generator.rb'
|
657
|
+
- 'lib/tasks/apipie.rake'
|
658
|
+
- 'spec/controllers/apipies_controller_spec.rb'
|
659
|
+
- 'spec/controllers/users_controller_spec.rb'
|
660
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
661
|
+
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
662
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
663
|
+
- 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
|
664
|
+
- 'spec/lib/extractor/middleware_spec.rb'
|
665
|
+
- 'spec/lib/method_description_spec.rb'
|
666
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
456
667
|
|
457
|
-
# Offense count:
|
668
|
+
# Offense count: 5
|
458
669
|
# This cop supports safe autocorrection (--autocorrect).
|
459
670
|
# Configuration parameters: EnforcedStyle.
|
460
671
|
# SupportedStyles: space, compact, no_space
|
461
672
|
Layout/SpaceInsideParens:
|
462
673
|
Exclude:
|
463
674
|
- 'lib/apipie/middleware/checksum_in_headers.rb'
|
675
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
676
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
464
677
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
465
678
|
|
466
679
|
# Offense count: 1
|
@@ -471,7 +684,7 @@ Layout/SpaceInsideStringInterpolation:
|
|
471
684
|
Exclude:
|
472
685
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
473
686
|
|
474
|
-
# Offense count:
|
687
|
+
# Offense count: 15
|
475
688
|
# This cop supports safe autocorrection (--autocorrect).
|
476
689
|
# Configuration parameters: EnforcedStyle.
|
477
690
|
# SupportedStyles: final_newline, final_blank_line
|
@@ -479,6 +692,7 @@ Layout/TrailingEmptyLines:
|
|
479
692
|
Exclude:
|
480
693
|
- 'Rakefile'
|
481
694
|
- 'lib/apipie/extractor/collector.rb'
|
695
|
+
- 'lib/apipie/method_description/apis_service.rb'
|
482
696
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
483
697
|
- 'spec/controllers/concerns_controller_spec.rb'
|
484
698
|
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
|
@@ -488,6 +702,8 @@ Layout/TrailingEmptyLines:
|
|
488
702
|
- 'spec/dummy/config/boot.rb'
|
489
703
|
- 'spec/dummy/config/environments/development.rb'
|
490
704
|
- 'spec/dummy/config/initializers/secret_token.rb'
|
705
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
706
|
+
- 'spec/lib/generator/swagger/param_description_spec.rb'
|
491
707
|
- 'spec/lib/param_group_spec.rb'
|
492
708
|
|
493
709
|
# Offense count: 18
|
@@ -502,6 +718,7 @@ Layout/TrailingWhitespace:
|
|
502
718
|
- 'spec/lib/application_spec.rb'
|
503
719
|
|
504
720
|
# Offense count: 10
|
721
|
+
# This cop supports safe autocorrection (--autocorrect).
|
505
722
|
# Configuration parameters: AllowSafeAssignment.
|
506
723
|
Lint/AssignmentInCondition:
|
507
724
|
Exclude:
|
@@ -521,21 +738,23 @@ Lint/ConstantDefinitionInBlock:
|
|
521
738
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
522
739
|
- 'spec/controllers/users_controller_spec.rb'
|
523
740
|
|
524
|
-
# Offense count: 5
|
525
|
-
# This cop supports safe autocorrection (--autocorrect).
|
526
|
-
Lint/DeprecatedClassMethods:
|
527
|
-
Exclude:
|
528
|
-
- 'app/controllers/apipie/apipies_controller.rb'
|
529
|
-
- 'lib/apipie/extractor/writer.rb'
|
530
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
531
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
532
|
-
|
533
741
|
# Offense count: 9
|
534
742
|
Lint/DuplicateMethods:
|
535
743
|
Exclude:
|
536
744
|
- 'lib/apipie/configuration.rb'
|
537
745
|
- 'lib/apipie/method_description.rb'
|
538
746
|
|
747
|
+
# Offense count: 8
|
748
|
+
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
749
|
+
Lint/EmptyBlock:
|
750
|
+
Exclude:
|
751
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
752
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
753
|
+
- 'spec/lib/generator/swagger/param_description/description_spec.rb'
|
754
|
+
- 'spec/lib/generator/swagger/param_description/name_spec.rb'
|
755
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
756
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
757
|
+
|
539
758
|
# Offense count: 1
|
540
759
|
# This cop supports safe autocorrection (--autocorrect).
|
541
760
|
Lint/IdentityComparison:
|
@@ -549,11 +768,6 @@ Lint/MissingSuper:
|
|
549
768
|
- 'lib/apipie/response_description_adapter.rb'
|
550
769
|
- 'lib/apipie/validator.rb'
|
551
770
|
|
552
|
-
# Offense count: 1
|
553
|
-
Lint/NestedMethodDefinition:
|
554
|
-
Exclude:
|
555
|
-
- 'lib/apipie/swagger_generator.rb'
|
556
|
-
|
557
771
|
# Offense count: 11
|
558
772
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
559
773
|
Lint/NonAtomicFileOperation:
|
@@ -562,17 +776,21 @@ Lint/NonAtomicFileOperation:
|
|
562
776
|
- 'spec/lib/extractor/writer_spec.rb'
|
563
777
|
|
564
778
|
# Offense count: 1
|
565
|
-
|
566
|
-
Lint/NonDeterministicRequireOrder:
|
779
|
+
Lint/NonLocalExitFromIterator:
|
567
780
|
Exclude:
|
568
|
-
- '
|
781
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
569
782
|
|
570
|
-
# Offense count:
|
783
|
+
# Offense count: 1
|
571
784
|
# This cop supports safe autocorrection (--autocorrect).
|
572
785
|
Lint/ParenthesesAsGroupedExpression:
|
573
786
|
Exclude:
|
574
787
|
- 'lib/apipie/param_description.rb'
|
575
|
-
|
788
|
+
|
789
|
+
# Offense count: 1
|
790
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
791
|
+
Lint/RedundantDirGlobSort:
|
792
|
+
Exclude:
|
793
|
+
- 'lib/apipie/application.rb'
|
576
794
|
|
577
795
|
# Offense count: 2
|
578
796
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -595,11 +813,10 @@ Lint/ShadowingOuterLocalVariable:
|
|
595
813
|
- 'lib/apipie/extractor/writer.rb'
|
596
814
|
- 'lib/apipie/swagger_generator.rb'
|
597
815
|
|
598
|
-
# Offense count:
|
816
|
+
# Offense count: 4
|
599
817
|
# This cop supports safe autocorrection (--autocorrect).
|
600
818
|
Lint/ToJSON:
|
601
819
|
Exclude:
|
602
|
-
- 'lib/apipie/error_description.rb'
|
603
820
|
- 'lib/apipie/response_description_adapter.rb'
|
604
821
|
- 'lib/apipie/see_description.rb'
|
605
822
|
- 'lib/apipie/validator.rb'
|
@@ -612,16 +829,6 @@ Lint/UnderscorePrefixedVariableName:
|
|
612
829
|
- 'lib/apipie/application.rb'
|
613
830
|
- 'lib/apipie/dsl_definition.rb'
|
614
831
|
|
615
|
-
# Offense count: 8
|
616
|
-
# This cop supports safe autocorrection (--autocorrect).
|
617
|
-
Lint/UnifiedInteger:
|
618
|
-
Exclude:
|
619
|
-
- 'spec/controllers/users_controller_spec.rb'
|
620
|
-
- 'spec/dummy/app/controllers/users_controller.rb'
|
621
|
-
- 'spec/dummy/config/initializers/apipie.rb'
|
622
|
-
- 'spec/lib/param_description_spec.rb'
|
623
|
-
- 'spec/lib/validator_spec.rb'
|
624
|
-
|
625
832
|
# Offense count: 29
|
626
833
|
# This cop supports safe autocorrection (--autocorrect).
|
627
834
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
@@ -678,49 +885,38 @@ Lint/Void:
|
|
678
885
|
# Offense count: 57
|
679
886
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
680
887
|
Metrics/AbcSize:
|
681
|
-
Max:
|
682
|
-
|
683
|
-
# Offense count: 8
|
684
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, inherit_mode.
|
685
|
-
# AllowedMethods: refine
|
686
|
-
Metrics/BlockLength:
|
687
|
-
Max: 272
|
888
|
+
Max: 90
|
688
889
|
|
689
890
|
# Offense count: 4
|
690
891
|
# Configuration parameters: CountBlocks.
|
691
892
|
Metrics/BlockNesting:
|
692
893
|
Max: 4
|
693
894
|
|
694
|
-
# Offense count:
|
695
|
-
# Configuration parameters: CountComments, CountAsOne.
|
696
|
-
Metrics/ClassLength:
|
697
|
-
Max: 488
|
698
|
-
|
699
|
-
# Offense count: 28
|
895
|
+
# Offense count: 25
|
700
896
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
701
897
|
Metrics/CyclomaticComplexity:
|
702
898
|
Max: 24
|
703
899
|
|
704
|
-
# Offense count:
|
900
|
+
# Offense count: 71
|
705
901
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
706
902
|
Metrics/MethodLength:
|
707
|
-
Max:
|
903
|
+
Max: 58
|
708
904
|
|
709
905
|
# Offense count: 1
|
710
906
|
# Configuration parameters: CountComments, CountAsOne.
|
711
907
|
Metrics/ModuleLength:
|
712
908
|
Max: 119
|
713
909
|
|
714
|
-
# Offense count:
|
910
|
+
# Offense count: 5
|
715
911
|
# Configuration parameters: CountKeywordArgs.
|
716
912
|
Metrics/ParameterLists:
|
717
913
|
MaxOptionalParameters: 5
|
718
914
|
Max: 6
|
719
915
|
|
720
|
-
# Offense count:
|
916
|
+
# Offense count: 23
|
721
917
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
722
918
|
Metrics/PerceivedComplexity:
|
723
|
-
Max:
|
919
|
+
Max: 25
|
724
920
|
|
725
921
|
# Offense count: 5
|
726
922
|
Naming/AccessorMethodName:
|
@@ -729,6 +925,16 @@ Naming/AccessorMethodName:
|
|
729
925
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
730
926
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
731
927
|
|
928
|
+
# Offense count: 15
|
929
|
+
# This cop supports safe autocorrection (--autocorrect).
|
930
|
+
# Configuration parameters: EnforcedStyle, BlockForwardingName.
|
931
|
+
# SupportedStyles: anonymous, explicit
|
932
|
+
Naming/BlockForwarding:
|
933
|
+
Exclude:
|
934
|
+
- 'lib/apipie/apipie_module.rb'
|
935
|
+
- 'lib/apipie/dsl_definition.rb'
|
936
|
+
- 'lib/apipie/resource_description.rb'
|
937
|
+
|
732
938
|
# Offense count: 1
|
733
939
|
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
734
940
|
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
@@ -753,21 +959,21 @@ Naming/HeredocDelimiterNaming:
|
|
753
959
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
754
960
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
755
961
|
|
756
|
-
# Offense count:
|
962
|
+
# Offense count: 4
|
757
963
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
758
964
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
759
965
|
Naming/MemoizedInstanceVariableName:
|
760
966
|
Exclude:
|
761
967
|
- 'lib/apipie/apipie_module.rb'
|
762
|
-
- 'lib/apipie/
|
968
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
969
|
+
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
763
970
|
|
764
|
-
# Offense count:
|
971
|
+
# Offense count: 3
|
765
972
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
766
|
-
# AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to
|
973
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
767
974
|
Naming/MethodParameterName:
|
768
975
|
Exclude:
|
769
976
|
- 'lib/apipie/method_description.rb'
|
770
|
-
- 'lib/apipie/swagger_generator.rb'
|
771
977
|
- 'spec/controllers/users_controller_spec.rb'
|
772
978
|
|
773
979
|
# Offense count: 7
|
@@ -791,6 +997,12 @@ Naming/VariableNumber:
|
|
791
997
|
Exclude:
|
792
998
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
793
999
|
|
1000
|
+
# Offense count: 1
|
1001
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1002
|
+
Performance/BindCall:
|
1003
|
+
Exclude:
|
1004
|
+
- 'lib/apipie/dsl_definition.rb'
|
1005
|
+
|
794
1006
|
# Offense count: 1
|
795
1007
|
# This cop supports safe autocorrection (--autocorrect).
|
796
1008
|
Performance/BlockGivenWithExplicitBlock:
|
@@ -818,17 +1030,33 @@ Performance/Detect:
|
|
818
1030
|
Exclude:
|
819
1031
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
820
1032
|
|
1033
|
+
# Offense count: 1
|
1034
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1035
|
+
Performance/InefficientHashSearch:
|
1036
|
+
Exclude:
|
1037
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
1038
|
+
|
1039
|
+
# Offense count: 5
|
1040
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1041
|
+
Performance/MapCompact:
|
1042
|
+
Exclude:
|
1043
|
+
- 'lib/apipie/application.rb'
|
1044
|
+
- 'lib/apipie/param_description.rb'
|
1045
|
+
- 'lib/apipie/response_description.rb'
|
1046
|
+
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
1047
|
+
|
821
1048
|
# Offense count: 1
|
822
1049
|
# This cop supports safe autocorrection (--autocorrect).
|
823
1050
|
Performance/RedundantBlockCall:
|
824
1051
|
Exclude:
|
825
1052
|
- 'lib/apipie/extractor/recorder.rb'
|
826
1053
|
|
827
|
-
# Offense count:
|
1054
|
+
# Offense count: 2
|
828
1055
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
829
1056
|
# Configuration parameters: MaxKeyValuePairs.
|
830
1057
|
Performance/RedundantMerge:
|
831
1058
|
Exclude:
|
1059
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
832
1060
|
- 'lib/apipie/middleware/checksum_in_headers.rb'
|
833
1061
|
|
834
1062
|
# Offense count: 8
|
@@ -860,6 +1088,7 @@ Performance/StringReplacement:
|
|
860
1088
|
- 'app/controllers/apipie/apipies_controller.rb'
|
861
1089
|
- 'lib/apipie/application.rb'
|
862
1090
|
- 'lib/apipie/extractor/writer.rb'
|
1091
|
+
- 'lib/apipie/generator/swagger/operation_id.rb'
|
863
1092
|
- 'lib/apipie/static_dispatcher.rb'
|
864
1093
|
- 'lib/apipie/swagger_generator.rb'
|
865
1094
|
- 'lib/tasks/apipie.rake'
|
@@ -877,12 +1106,15 @@ RSpec/Be:
|
|
877
1106
|
- 'spec/controllers/concerns_controller_spec.rb'
|
878
1107
|
- 'spec/controllers/users_controller_spec.rb'
|
879
1108
|
|
880
|
-
# Offense count:
|
881
|
-
# This cop supports
|
1109
|
+
# Offense count: 56
|
1110
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
882
1111
|
RSpec/BeEq:
|
883
1112
|
Exclude:
|
884
1113
|
- 'spec/controllers/apipies_controller_spec.rb'
|
885
1114
|
- 'spec/controllers/users_controller_spec.rb'
|
1115
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
1116
|
+
- 'spec/lib/generator/swagger/param_description_spec.rb'
|
1117
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
886
1118
|
- 'spec/lib/method_description_spec.rb'
|
887
1119
|
- 'spec/lib/param_description_spec.rb'
|
888
1120
|
- 'spec/lib/param_group_spec.rb'
|
@@ -895,7 +1127,7 @@ RSpec/BeforeAfterAll:
|
|
895
1127
|
Exclude:
|
896
1128
|
- 'spec/controllers/users_controller_spec.rb'
|
897
1129
|
|
898
|
-
# Offense count:
|
1130
|
+
# Offense count: 47
|
899
1131
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
900
1132
|
# Prefixes: when, with, without
|
901
1133
|
RSpec/ContextWording:
|
@@ -904,6 +1136,10 @@ RSpec/ContextWording:
|
|
904
1136
|
- 'spec/controllers/apipies_controller_spec.rb'
|
905
1137
|
- 'spec/controllers/users_controller_spec.rb'
|
906
1138
|
- 'spec/lib/file_handler_spec.rb'
|
1139
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
1140
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
1141
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
1142
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
907
1143
|
- 'spec/lib/param_description_spec.rb'
|
908
1144
|
- 'spec/lib/param_group_spec.rb'
|
909
1145
|
- 'spec/lib/validator_spec.rb'
|
@@ -940,12 +1176,19 @@ RSpec/DescribedClass:
|
|
940
1176
|
- 'spec/lib/resource_description_spec.rb'
|
941
1177
|
- 'spec/lib/validators/array_validator_spec.rb'
|
942
1178
|
|
943
|
-
# Offense count:
|
1179
|
+
# Offense count: 1
|
1180
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1181
|
+
RSpec/EmptyExampleGroup:
|
1182
|
+
Exclude:
|
1183
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1184
|
+
|
1185
|
+
# Offense count: 11
|
944
1186
|
# This cop supports safe autocorrection (--autocorrect).
|
945
1187
|
# Configuration parameters: AllowConsecutiveOneLiners.
|
946
1188
|
RSpec/EmptyLineAfterExample:
|
947
1189
|
Exclude:
|
948
1190
|
- 'spec/controllers/apipies_controller_spec.rb'
|
1191
|
+
- 'spec/lib/generator/swagger/context_spec.rb'
|
949
1192
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
950
1193
|
|
951
1194
|
# Offense count: 6
|
@@ -976,9 +1219,26 @@ RSpec/ExampleLength:
|
|
976
1219
|
|
977
1220
|
# Offense count: 165
|
978
1221
|
# This cop supports safe autocorrection (--autocorrect).
|
979
|
-
# Configuration parameters: CustomTransform, IgnoredWords.
|
1222
|
+
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
|
1223
|
+
# DisallowedExamples: works
|
980
1224
|
RSpec/ExampleWording:
|
981
|
-
|
1225
|
+
Exclude:
|
1226
|
+
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
1227
|
+
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
1228
|
+
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
1229
|
+
- 'spec/controllers/concerns_controller_spec.rb'
|
1230
|
+
- 'spec/controllers/extended_controller_spec.rb'
|
1231
|
+
- 'spec/controllers/included_param_group_controller_spec.rb'
|
1232
|
+
- 'spec/controllers/memes_controller_spec.rb'
|
1233
|
+
- 'spec/controllers/users_controller_spec.rb'
|
1234
|
+
- 'spec/lib/application_spec.rb'
|
1235
|
+
- 'spec/lib/extractor/writer_spec.rb'
|
1236
|
+
- 'spec/lib/method_description_spec.rb'
|
1237
|
+
- 'spec/lib/param_description_spec.rb'
|
1238
|
+
- 'spec/lib/param_group_spec.rb'
|
1239
|
+
- 'spec/lib/resource_description_spec.rb'
|
1240
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1241
|
+
- 'spec/lib/validator_spec.rb'
|
982
1242
|
|
983
1243
|
# Offense count: 1
|
984
1244
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -991,7 +1251,7 @@ RSpec/ExpectInHook:
|
|
991
1251
|
Exclude:
|
992
1252
|
- 'spec/lib/extractor/writer_spec.rb'
|
993
1253
|
|
994
|
-
# Offense count:
|
1254
|
+
# Offense count: 25
|
995
1255
|
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
996
1256
|
# Include: **/*_spec*rb*, **/spec/**/*
|
997
1257
|
RSpec/FilePath:
|
@@ -1003,6 +1263,19 @@ RSpec/FilePath:
|
|
1003
1263
|
- 'spec/lib/extractor/middleware_spec.rb'
|
1004
1264
|
- 'spec/lib/extractor/writer_spec.rb'
|
1005
1265
|
- 'spec/lib/file_handler_spec.rb'
|
1266
|
+
- 'spec/lib/generator/swagger/context_spec.rb'
|
1267
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
1268
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
1269
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1270
|
+
- 'spec/lib/generator/swagger/param_description/description_spec.rb'
|
1271
|
+
- 'spec/lib/generator/swagger/param_description/in_spec.rb'
|
1272
|
+
- 'spec/lib/generator/swagger/param_description/name_spec.rb'
|
1273
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
1274
|
+
- 'spec/lib/generator/swagger/param_description_spec.rb'
|
1275
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
1276
|
+
- 'spec/lib/generator/swagger/warning_spec.rb'
|
1277
|
+
- 'spec/lib/generator/swagger/warning_writer_spec.rb'
|
1278
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
1006
1279
|
- 'spec/lib/method_description_spec.rb'
|
1007
1280
|
- 'spec/lib/param_description_spec.rb'
|
1008
1281
|
- 'spec/lib/resource_description_spec.rb'
|
@@ -1032,7 +1305,7 @@ RSpec/HooksBeforeExamples:
|
|
1032
1305
|
# Offense count: 2
|
1033
1306
|
# This cop supports safe autocorrection (--autocorrect).
|
1034
1307
|
# Configuration parameters: EnforcedStyle.
|
1035
|
-
# SupportedStyles: single_line_only, single_statement_only, disallow
|
1308
|
+
# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
|
1036
1309
|
RSpec/ImplicitSubject:
|
1037
1310
|
Exclude:
|
1038
1311
|
- 'spec/lib/application_spec.rb'
|
@@ -1045,10 +1318,17 @@ RSpec/InstanceVariable:
|
|
1045
1318
|
- 'spec/lib/method_description_spec.rb'
|
1046
1319
|
- 'spec/lib/resource_description_spec.rb'
|
1047
1320
|
|
1048
|
-
# Offense count:
|
1321
|
+
# Offense count: 9
|
1049
1322
|
# This cop supports safe autocorrection (--autocorrect).
|
1050
1323
|
RSpec/LeadingSubject:
|
1051
1324
|
Exclude:
|
1325
|
+
- 'spec/lib/generator/swagger/context_spec.rb'
|
1326
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
1327
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1328
|
+
- 'spec/lib/generator/swagger/param_description/name_spec.rb'
|
1329
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
1330
|
+
- 'spec/lib/generator/swagger/param_description_spec.rb'
|
1331
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
1052
1332
|
- 'spec/support/rake.rb'
|
1053
1333
|
|
1054
1334
|
# Offense count: 1
|
@@ -1062,41 +1342,47 @@ RSpec/LeakyConstantDeclaration:
|
|
1062
1342
|
RSpec/MessageSpies:
|
1063
1343
|
EnforcedStyle: receive
|
1064
1344
|
|
1065
|
-
# Offense count:
|
1345
|
+
# Offense count: 98
|
1066
1346
|
RSpec/MultipleExpectations:
|
1067
1347
|
Max: 19
|
1068
1348
|
|
1069
|
-
# Offense count:
|
1349
|
+
# Offense count: 64
|
1070
1350
|
# Configuration parameters: AllowSubject.
|
1071
1351
|
RSpec/MultipleMemoizedHelpers:
|
1072
|
-
Max:
|
1352
|
+
Max: 15
|
1073
1353
|
|
1074
|
-
# Offense count:
|
1075
|
-
# Configuration parameters: IgnoreSharedExamples.
|
1354
|
+
# Offense count: 63
|
1355
|
+
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
1356
|
+
# SupportedStyles: always, named_only
|
1076
1357
|
RSpec/NamedSubject:
|
1077
1358
|
Exclude:
|
1078
1359
|
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
1079
1360
|
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
1080
1361
|
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
1081
1362
|
- 'spec/controllers/users_controller_spec.rb'
|
1363
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
1364
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
1365
|
+
- 'spec/lib/generator/swagger/param_description_spec.rb'
|
1366
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
1367
|
+
- 'spec/lib/generator/swagger/warning_spec.rb'
|
1368
|
+
- 'spec/lib/generator/swagger/warning_writer_spec.rb'
|
1369
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
1082
1370
|
- 'spec/lib/param_description_spec.rb'
|
1083
1371
|
- 'spec/lib/rake_spec.rb'
|
1084
1372
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1085
1373
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1086
1374
|
|
1087
|
-
# Offense count:
|
1375
|
+
# Offense count: 43
|
1088
1376
|
# Configuration parameters: AllowedGroups.
|
1089
1377
|
RSpec/NestedGroups:
|
1090
1378
|
Max: 6
|
1091
1379
|
|
1092
|
-
# Offense count:
|
1380
|
+
# Offense count: 1
|
1381
|
+
# Configuration parameters: AllowedPatterns.
|
1382
|
+
# AllowedPatterns: ^expect_, ^assert_
|
1093
1383
|
RSpec/NoExpectationExample:
|
1094
1384
|
Exclude:
|
1095
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
1096
|
-
- 'spec/controllers/concerns_controller_spec.rb'
|
1097
|
-
- 'spec/controllers/memes_controller_spec.rb'
|
1098
1385
|
- 'spec/controllers/users_controller_spec.rb'
|
1099
|
-
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1100
1386
|
|
1101
1387
|
# Offense count: 11
|
1102
1388
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1107,6 +1393,16 @@ RSpec/NotToNot:
|
|
1107
1393
|
- 'spec/lib/file_handler_spec.rb'
|
1108
1394
|
- 'spec/lib/param_description_spec.rb'
|
1109
1395
|
|
1396
|
+
# Offense count: 1
|
1397
|
+
RSpec/OverwritingSetup:
|
1398
|
+
Exclude:
|
1399
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1400
|
+
|
1401
|
+
# Offense count: 1
|
1402
|
+
RSpec/PendingWithoutReason:
|
1403
|
+
Exclude:
|
1404
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1405
|
+
|
1110
1406
|
# Offense count: 6
|
1111
1407
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1112
1408
|
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
@@ -1122,6 +1418,11 @@ RSpec/RepeatedExample:
|
|
1122
1418
|
- 'spec/lib/method_description_spec.rb'
|
1123
1419
|
- 'spec/lib/resource_description_spec.rb'
|
1124
1420
|
|
1421
|
+
# Offense count: 2
|
1422
|
+
RSpec/RepeatedExampleGroupBody:
|
1423
|
+
Exclude:
|
1424
|
+
- 'spec/lib/generator/swagger/warning_spec.rb'
|
1425
|
+
|
1125
1426
|
# Offense count: 4
|
1126
1427
|
RSpec/RepeatedExampleGroupDescription:
|
1127
1428
|
Exclude:
|
@@ -1163,7 +1464,7 @@ Rails/Delegate:
|
|
1163
1464
|
Exclude:
|
1164
1465
|
- 'lib/apipie/response_description_adapter.rb'
|
1165
1466
|
|
1166
|
-
# Offense count:
|
1467
|
+
# Offense count: 23
|
1167
1468
|
# Configuration parameters: EnforcedStyle.
|
1168
1469
|
# SupportedStyles: slashes, arguments
|
1169
1470
|
Rails/FilePath:
|
@@ -1175,6 +1476,9 @@ Rails/FilePath:
|
|
1175
1476
|
- 'spec/dummy/config/initializers/apipie.rb'
|
1176
1477
|
- 'spec/lib/application_spec.rb'
|
1177
1478
|
- 'spec/lib/extractor/writer_spec.rb'
|
1479
|
+
- 'spec/lib/rake_spec.rb'
|
1480
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1481
|
+
- 'spec/spec_helper.rb'
|
1178
1482
|
|
1179
1483
|
# Offense count: 5
|
1180
1484
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1192,16 +1496,17 @@ Rails/IndexBy:
|
|
1192
1496
|
Exclude:
|
1193
1497
|
- 'lib/apipie/swagger_generator.rb'
|
1194
1498
|
|
1195
|
-
# Offense count:
|
1499
|
+
# Offense count: 6
|
1196
1500
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1197
1501
|
Rails/NegateInclude:
|
1198
1502
|
Exclude:
|
1199
1503
|
- 'lib/apipie/extractor/collector.rb'
|
1200
1504
|
- 'lib/apipie/extractor/writer.rb'
|
1505
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
1201
1506
|
- 'lib/apipie/swagger_generator.rb'
|
1202
1507
|
- 'spec/spec_helper.rb'
|
1203
1508
|
|
1204
|
-
# Offense count:
|
1509
|
+
# Offense count: 8
|
1205
1510
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1206
1511
|
# Configuration parameters: Include.
|
1207
1512
|
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
@@ -1217,10 +1522,11 @@ Rails/OutputSafety:
|
|
1217
1522
|
Exclude:
|
1218
1523
|
- 'lib/apipie/helpers.rb'
|
1219
1524
|
|
1220
|
-
# Offense count:
|
1525
|
+
# Offense count: 6
|
1221
1526
|
# This cop supports safe autocorrection (--autocorrect).
|
1222
1527
|
Rails/Pluck:
|
1223
1528
|
Exclude:
|
1529
|
+
- 'lib/apipie/extractor/writer.rb'
|
1224
1530
|
- 'spec/lib/method_description_spec.rb'
|
1225
1531
|
- 'spec/lib/resource_description_spec.rb'
|
1226
1532
|
|
@@ -1243,8 +1549,7 @@ Rails/RakeEnvironment:
|
|
1243
1549
|
- 'lib/tasks/apipie.rake'
|
1244
1550
|
|
1245
1551
|
# Offense count: 18
|
1246
|
-
# This cop supports
|
1247
|
-
# Configuration parameters: SafeAutocorrect.
|
1552
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1248
1553
|
Rails/RootPathnameMethods:
|
1249
1554
|
Exclude:
|
1250
1555
|
- 'lib/apipie/configuration.rb'
|
@@ -1265,6 +1570,13 @@ Rails/TimeZone:
|
|
1265
1570
|
Exclude:
|
1266
1571
|
- 'lib/tasks/apipie.rake'
|
1267
1572
|
|
1573
|
+
# Offense count: 3
|
1574
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1575
|
+
Rails/TopLevelHashWithIndifferentAccess:
|
1576
|
+
Exclude:
|
1577
|
+
- 'lib/apipie/application.rb'
|
1578
|
+
- 'lib/apipie/configuration.rb'
|
1579
|
+
|
1268
1580
|
# Offense count: 1
|
1269
1581
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1270
1582
|
Security/IoMethods:
|
@@ -1280,19 +1592,6 @@ Style/AccessorGrouping:
|
|
1280
1592
|
- 'lib/apipie/param_description.rb'
|
1281
1593
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
1282
1594
|
|
1283
|
-
# Offense count: 22
|
1284
|
-
# This cop supports safe autocorrection (--autocorrect).
|
1285
|
-
# Configuration parameters: EnforcedStyle.
|
1286
|
-
# SupportedStyles: prefer_alias, prefer_alias_method
|
1287
|
-
Style/Alias:
|
1288
|
-
Exclude:
|
1289
|
-
- 'lib/apipie/application.rb'
|
1290
|
-
- 'lib/apipie/configuration.rb'
|
1291
|
-
- 'lib/apipie/dsl_definition.rb'
|
1292
|
-
- 'lib/apipie/param_description.rb'
|
1293
|
-
- 'lib/apipie/response_description.rb'
|
1294
|
-
- 'lib/apipie/response_description_adapter.rb'
|
1295
|
-
|
1296
1595
|
# Offense count: 1
|
1297
1596
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1298
1597
|
# Configuration parameters: EnforcedStyle.
|
@@ -1301,6 +1600,13 @@ Style/AndOr:
|
|
1301
1600
|
Exclude:
|
1302
1601
|
- 'lib/apipie/param_description.rb'
|
1303
1602
|
|
1603
|
+
# Offense count: 2
|
1604
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1605
|
+
# Configuration parameters: AllowOnlyRestArgument.
|
1606
|
+
Style/ArgumentsForwarding:
|
1607
|
+
Exclude:
|
1608
|
+
- 'lib/apipie/dsl_definition.rb'
|
1609
|
+
|
1304
1610
|
# Offense count: 17
|
1305
1611
|
# This cop supports safe autocorrection (--autocorrect).
|
1306
1612
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
@@ -1323,16 +1629,13 @@ Style/CaseEquality:
|
|
1323
1629
|
Exclude:
|
1324
1630
|
- 'lib/apipie/validator.rb'
|
1325
1631
|
|
1326
|
-
# Offense count:
|
1632
|
+
# Offense count: 1
|
1327
1633
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1328
1634
|
Style/CaseLikeIf:
|
1329
1635
|
Exclude:
|
1330
|
-
- 'lib/apipie/
|
1331
|
-
- 'lib/apipie/extractor/writer.rb'
|
1332
|
-
- 'lib/apipie/response_description_adapter.rb'
|
1333
|
-
- 'spec/controllers/users_controller_spec.rb'
|
1636
|
+
- 'lib/apipie/generator/swagger/operation_id.rb'
|
1334
1637
|
|
1335
|
-
# Offense count:
|
1638
|
+
# Offense count: 28
|
1336
1639
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1337
1640
|
# Configuration parameters: EnforcedStyle.
|
1338
1641
|
# SupportedStyles: nested, compact
|
@@ -1340,6 +1643,23 @@ Style/ClassAndModuleChildren:
|
|
1340
1643
|
Exclude:
|
1341
1644
|
- 'lib/apipie/core_ext/route.rb'
|
1342
1645
|
- 'lib/apipie/extractor.rb'
|
1646
|
+
- 'lib/apipie/generator/generator.rb'
|
1647
|
+
- 'lib/apipie/generator/swagger/context.rb'
|
1648
|
+
- 'lib/apipie/generator/swagger/operation_id.rb'
|
1649
|
+
- 'lib/apipie/generator/swagger/param_description.rb'
|
1650
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
1651
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
1652
|
+
- 'lib/apipie/generator/swagger/param_description/description.rb'
|
1653
|
+
- 'lib/apipie/generator/swagger/param_description/in.rb'
|
1654
|
+
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
1655
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
1656
|
+
- 'lib/apipie/generator/swagger/swagger.rb'
|
1657
|
+
- 'lib/apipie/generator/swagger/type.rb'
|
1658
|
+
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
1659
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
1660
|
+
- 'lib/apipie/generator/swagger/warning_writer.rb'
|
1661
|
+
- 'lib/apipie/method_description/api.rb'
|
1662
|
+
- 'lib/apipie/method_description/apis_service.rb'
|
1343
1663
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1344
1664
|
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
|
1345
1665
|
- 'spec/dummy/config/initializers/apipie.rb'
|
@@ -1355,14 +1675,13 @@ Style/ClassCheck:
|
|
1355
1675
|
- 'lib/apipie/errors.rb'
|
1356
1676
|
- 'lib/apipie/validator.rb'
|
1357
1677
|
|
1358
|
-
# Offense count:
|
1678
|
+
# Offense count: 2
|
1359
1679
|
# This cop supports safe autocorrection (--autocorrect).
|
1360
1680
|
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
1361
1681
|
# AllowedMethods: ==, equal?, eql?
|
1362
1682
|
Style/ClassEqualityComparison:
|
1363
1683
|
Exclude:
|
1364
1684
|
- 'lib/apipie/application.rb'
|
1365
|
-
- 'lib/apipie/swagger_generator.rb'
|
1366
1685
|
- 'lib/apipie/validator.rb'
|
1367
1686
|
|
1368
1687
|
# Offense count: 1
|
@@ -1399,7 +1718,7 @@ Style/CommentedKeyword:
|
|
1399
1718
|
- 'lib/apipie/dsl_definition.rb'
|
1400
1719
|
- 'lib/apipie/extractor/recorder.rb'
|
1401
1720
|
|
1402
|
-
# Offense count:
|
1721
|
+
# Offense count: 11
|
1403
1722
|
# This cop supports safe autocorrection (--autocorrect).
|
1404
1723
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
1405
1724
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
@@ -1413,11 +1732,6 @@ Style/ConditionalAssignment:
|
|
1413
1732
|
- 'lib/apipie/swagger_generator.rb'
|
1414
1733
|
- 'lib/tasks/apipie.rake'
|
1415
1734
|
|
1416
|
-
# Offense count: 61
|
1417
|
-
# Configuration parameters: AllowedConstants.
|
1418
|
-
Style/Documentation:
|
1419
|
-
Enabled: false
|
1420
|
-
|
1421
1735
|
# Offense count: 1
|
1422
1736
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1423
1737
|
# Configuration parameters: EnforcedStyle.
|
@@ -1492,7 +1806,7 @@ Style/FileWrite:
|
|
1492
1806
|
Exclude:
|
1493
1807
|
- 'lib/tasks/apipie.rake'
|
1494
1808
|
|
1495
|
-
# Offense count:
|
1809
|
+
# Offense count: 6
|
1496
1810
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1497
1811
|
# Configuration parameters: EnforcedStyle.
|
1498
1812
|
# SupportedStyles: each, for
|
@@ -1501,23 +1815,174 @@ Style/For:
|
|
1501
1815
|
- 'lib/apipie/response_description_adapter.rb'
|
1502
1816
|
- 'lib/apipie/swagger_generator.rb'
|
1503
1817
|
|
1504
|
-
# Offense count:
|
1818
|
+
# Offense count: 8
|
1819
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1820
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
1821
|
+
# SupportedStyles: annotated, template, unannotated
|
1822
|
+
Style/FormatStringToken:
|
1823
|
+
EnforcedStyle: template
|
1824
|
+
|
1825
|
+
# Offense count: 142
|
1505
1826
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1506
1827
|
# Configuration parameters: EnforcedStyle.
|
1507
1828
|
# SupportedStyles: always, always_true, never
|
1508
1829
|
Style/FrozenStringLiteralComment:
|
1509
|
-
|
1830
|
+
Exclude:
|
1831
|
+
- 'Gemfile'
|
1832
|
+
- 'Rakefile'
|
1833
|
+
- 'apipie-rails.gemspec'
|
1834
|
+
- 'app/controllers/apipie/apipies_controller.rb'
|
1835
|
+
- 'app/helpers/apipie_helper.rb'
|
1836
|
+
- 'lib/apipie-rails.rb'
|
1837
|
+
- 'lib/apipie/apipie_module.rb'
|
1838
|
+
- 'lib/apipie/application.rb'
|
1839
|
+
- 'lib/apipie/configuration.rb'
|
1840
|
+
- 'lib/apipie/core_ext/route.rb'
|
1841
|
+
- 'lib/apipie/dsl_definition.rb'
|
1842
|
+
- 'lib/apipie/error_description.rb'
|
1843
|
+
- 'lib/apipie/errors.rb'
|
1844
|
+
- 'lib/apipie/extractor.rb'
|
1845
|
+
- 'lib/apipie/extractor/collector.rb'
|
1846
|
+
- 'lib/apipie/extractor/recorder.rb'
|
1847
|
+
- 'lib/apipie/extractor/writer.rb'
|
1848
|
+
- 'lib/apipie/generator/generator.rb'
|
1849
|
+
- 'lib/apipie/generator/swagger/context.rb'
|
1850
|
+
- 'lib/apipie/generator/swagger/operation_id.rb'
|
1851
|
+
- 'lib/apipie/generator/swagger/param_description.rb'
|
1852
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
1853
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
1854
|
+
- 'lib/apipie/generator/swagger/param_description/description.rb'
|
1855
|
+
- 'lib/apipie/generator/swagger/param_description/in.rb'
|
1856
|
+
- 'lib/apipie/generator/swagger/param_description/name.rb'
|
1857
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
1858
|
+
- 'lib/apipie/generator/swagger/swagger.rb'
|
1859
|
+
- 'lib/apipie/generator/swagger/type.rb'
|
1860
|
+
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
1861
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
1862
|
+
- 'lib/apipie/generator/swagger/warning_writer.rb'
|
1863
|
+
- 'lib/apipie/helpers.rb'
|
1864
|
+
- 'lib/apipie/markup.rb'
|
1865
|
+
- 'lib/apipie/method_description.rb'
|
1866
|
+
- 'lib/apipie/method_description/api.rb'
|
1867
|
+
- 'lib/apipie/method_description/apis_service.rb'
|
1868
|
+
- 'lib/apipie/middleware/checksum_in_headers.rb'
|
1869
|
+
- 'lib/apipie/param_description.rb'
|
1870
|
+
- 'lib/apipie/railtie.rb'
|
1871
|
+
- 'lib/apipie/resource_description.rb'
|
1872
|
+
- 'lib/apipie/response_description.rb'
|
1873
|
+
- 'lib/apipie/response_description_adapter.rb'
|
1874
|
+
- 'lib/apipie/routes_formatter.rb'
|
1875
|
+
- 'lib/apipie/routing.rb'
|
1876
|
+
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1877
|
+
- 'lib/apipie/see_description.rb'
|
1878
|
+
- 'lib/apipie/static_dispatcher.rb'
|
1879
|
+
- 'lib/apipie/swagger_generator.rb'
|
1880
|
+
- 'lib/apipie/tag_list_description.rb'
|
1881
|
+
- 'lib/apipie/validator.rb'
|
1882
|
+
- 'lib/apipie/version.rb'
|
1883
|
+
- 'lib/generators/apipie/install/install_generator.rb'
|
1884
|
+
- 'lib/generators/apipie/views_generator.rb'
|
1885
|
+
- 'lib/tasks/apipie.rake'
|
1886
|
+
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
1887
|
+
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
1888
|
+
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
1889
|
+
- 'spec/controllers/apipies_controller_spec.rb'
|
1890
|
+
- 'spec/controllers/concerns_controller_spec.rb'
|
1891
|
+
- 'spec/controllers/extended_controller_spec.rb'
|
1892
|
+
- 'spec/controllers/included_param_group_controller_spec.rb'
|
1893
|
+
- 'spec/controllers/memes_controller_spec.rb'
|
1894
|
+
- 'spec/controllers/users_controller_spec.rb'
|
1895
|
+
- 'spec/dummy/Gemfile'
|
1896
|
+
- 'spec/dummy/Rakefile'
|
1897
|
+
- 'spec/dummy/app/controllers/api/base_controller.rb'
|
1898
|
+
- 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
|
1899
|
+
- 'spec/dummy/app/controllers/api/v1/base_controller.rb'
|
1900
|
+
- 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
|
1901
|
+
- 'spec/dummy/app/controllers/api/v2/base_controller.rb'
|
1902
|
+
- 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
|
1903
|
+
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
|
1904
|
+
- 'spec/dummy/app/controllers/application_controller.rb'
|
1905
|
+
- 'spec/dummy/app/controllers/concerns_controller.rb'
|
1906
|
+
- 'spec/dummy/app/controllers/extended_controller.rb'
|
1907
|
+
- 'spec/dummy/app/controllers/extending_concern.rb'
|
1908
|
+
- 'spec/dummy/app/controllers/files_controller.rb'
|
1909
|
+
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
|
1910
|
+
- 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
|
1911
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
1912
|
+
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
1913
|
+
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
1914
|
+
- 'spec/dummy/app/controllers/sample_controller.rb'
|
1915
|
+
- 'spec/dummy/app/controllers/tagged_cats_controller.rb'
|
1916
|
+
- 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
|
1917
|
+
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
1918
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
1919
|
+
- 'spec/dummy/app/helpers/random_param_group.rb'
|
1920
|
+
- 'spec/dummy/bin/setup'
|
1921
|
+
- 'spec/dummy/components/test_engine/Gemfile'
|
1922
|
+
- 'spec/dummy/components/test_engine/app/controllers/test_engine/application_controller.rb'
|
1923
|
+
- 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
|
1924
|
+
- 'spec/dummy/components/test_engine/config/routes.rb'
|
1925
|
+
- 'spec/dummy/components/test_engine/lib/test_engine.rb'
|
1926
|
+
- 'spec/dummy/components/test_engine/test_engine.gemspec'
|
1927
|
+
- 'spec/dummy/config.ru'
|
1928
|
+
- 'spec/dummy/config/application.rb'
|
1929
|
+
- 'spec/dummy/config/boot.rb'
|
1930
|
+
- 'spec/dummy/config/environment.rb'
|
1931
|
+
- 'spec/dummy/config/environments/development.rb'
|
1932
|
+
- 'spec/dummy/config/environments/production.rb'
|
1933
|
+
- 'spec/dummy/config/environments/test.rb'
|
1934
|
+
- 'spec/dummy/config/initializers/apipie.rb'
|
1935
|
+
- 'spec/dummy/config/initializers/backtrace_silencers.rb'
|
1936
|
+
- 'spec/dummy/config/initializers/inflections.rb'
|
1937
|
+
- 'spec/dummy/config/initializers/mime_types.rb'
|
1938
|
+
- 'spec/dummy/config/initializers/secret_token.rb'
|
1939
|
+
- 'spec/dummy/config/initializers/session_store.rb'
|
1940
|
+
- 'spec/dummy/config/routes.rb'
|
1941
|
+
- 'spec/dummy/script/rails'
|
1942
|
+
- 'spec/lib/application_spec.rb'
|
1943
|
+
- 'spec/lib/extractor/extractor_spec.rb'
|
1944
|
+
- 'spec/lib/extractor/middleware_spec.rb'
|
1945
|
+
- 'spec/lib/extractor/writer_spec.rb'
|
1946
|
+
- 'spec/lib/file_handler_spec.rb'
|
1947
|
+
- 'spec/lib/generator/swagger/context_spec.rb'
|
1948
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
1949
|
+
- 'spec/lib/generator/swagger/param_description/builder_spec.rb'
|
1950
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1951
|
+
- 'spec/lib/generator/swagger/param_description/description_spec.rb'
|
1952
|
+
- 'spec/lib/generator/swagger/param_description/in_spec.rb'
|
1953
|
+
- 'spec/lib/generator/swagger/param_description/name_spec.rb'
|
1954
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
1955
|
+
- 'spec/lib/generator/swagger/param_description_spec.rb'
|
1956
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
1957
|
+
- 'spec/lib/generator/swagger/warning_spec.rb'
|
1958
|
+
- 'spec/lib/generator/swagger/warning_writer_spec.rb'
|
1959
|
+
- 'spec/lib/method_description/apis_service_spec.rb'
|
1960
|
+
- 'spec/lib/method_description_spec.rb'
|
1961
|
+
- 'spec/lib/param_description_spec.rb'
|
1962
|
+
- 'spec/lib/param_group_spec.rb'
|
1963
|
+
- 'spec/lib/rake_spec.rb'
|
1964
|
+
- 'spec/lib/resource_description_spec.rb'
|
1965
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1966
|
+
- 'spec/lib/swagger/response_validation_spec.rb'
|
1967
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1968
|
+
- 'spec/lib/validator_spec.rb'
|
1969
|
+
- 'spec/lib/validators/array_validator_spec.rb'
|
1970
|
+
- 'spec/spec_helper.rb'
|
1971
|
+
- 'spec/support/custom_bool_validator.rb'
|
1972
|
+
- 'spec/support/rake.rb'
|
1510
1973
|
|
1511
|
-
# Offense count:
|
1974
|
+
# Offense count: 35
|
1975
|
+
# This cop supports safe autocorrection (--autocorrect).
|
1512
1976
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
1513
1977
|
Style/GuardClause:
|
1514
1978
|
Exclude:
|
1515
1979
|
- 'app/controllers/apipie/apipies_controller.rb'
|
1516
1980
|
- 'lib/apipie/application.rb'
|
1517
|
-
- 'lib/apipie/dsl_definition.rb'
|
1518
1981
|
- 'lib/apipie/extractor.rb'
|
1519
1982
|
- 'lib/apipie/extractor/collector.rb'
|
1520
1983
|
- 'lib/apipie/extractor/writer.rb'
|
1984
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
1985
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
1521
1986
|
- 'lib/apipie/param_description.rb'
|
1522
1987
|
- 'lib/apipie/resource_description.rb'
|
1523
1988
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
@@ -1534,15 +1999,23 @@ Style/HashConversion:
|
|
1534
1999
|
Exclude:
|
1535
2000
|
- 'lib/apipie/swagger_generator.rb'
|
1536
2001
|
|
1537
|
-
# Offense count:
|
2002
|
+
# Offense count: 1
|
2003
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2004
|
+
Style/HashExcept:
|
2005
|
+
Exclude:
|
2006
|
+
- 'lib/apipie/param_description.rb'
|
2007
|
+
|
2008
|
+
# Offense count: 4
|
1538
2009
|
# This cop supports safe autocorrection (--autocorrect).
|
1539
2010
|
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
1540
2011
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
1541
2012
|
# SupportedShorthandSyntax: always, never, either, consistent
|
1542
2013
|
Style/HashSyntax:
|
1543
|
-
|
2014
|
+
Exclude:
|
2015
|
+
- 'lib/apipie/swagger_generator.rb'
|
2016
|
+
- 'spec/dummy/config/routes.rb'
|
1544
2017
|
|
1545
|
-
# Offense count:
|
2018
|
+
# Offense count: 3
|
1546
2019
|
# This cop supports safe autocorrection (--autocorrect).
|
1547
2020
|
# Configuration parameters: AllowIfModifier.
|
1548
2021
|
Style/IfInsideElse:
|
@@ -1551,10 +2024,36 @@ Style/IfInsideElse:
|
|
1551
2024
|
- 'lib/apipie/swagger_generator.rb'
|
1552
2025
|
- 'spec/spec_helper.rb'
|
1553
2026
|
|
1554
|
-
# Offense count:
|
2027
|
+
# Offense count: 76
|
1555
2028
|
# This cop supports safe autocorrection (--autocorrect).
|
1556
2029
|
Style/IfUnlessModifier:
|
1557
|
-
|
2030
|
+
Exclude:
|
2031
|
+
- 'Gemfile'
|
2032
|
+
- 'app/controllers/apipie/apipies_controller.rb'
|
2033
|
+
- 'lib/apipie/application.rb'
|
2034
|
+
- 'lib/apipie/dsl_definition.rb'
|
2035
|
+
- 'lib/apipie/extractor.rb'
|
2036
|
+
- 'lib/apipie/extractor/collector.rb'
|
2037
|
+
- 'lib/apipie/extractor/writer.rb'
|
2038
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
2039
|
+
- 'lib/apipie/generator/swagger/param_description/type.rb'
|
2040
|
+
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
2041
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
2042
|
+
- 'lib/apipie/method_description.rb'
|
2043
|
+
- 'lib/apipie/param_description.rb'
|
2044
|
+
- 'lib/apipie/resource_description.rb'
|
2045
|
+
- 'lib/apipie/routes_formatter.rb'
|
2046
|
+
- 'lib/apipie/rspec/response_validation_helper.rb'
|
2047
|
+
- 'lib/apipie/see_description.rb'
|
2048
|
+
- 'lib/apipie/swagger_generator.rb'
|
2049
|
+
- 'lib/apipie/validator.rb'
|
2050
|
+
- 'lib/tasks/apipie.rake'
|
2051
|
+
- 'spec/dummy/Gemfile'
|
2052
|
+
- 'spec/dummy/app/controllers/application_controller.rb'
|
2053
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
2054
|
+
- 'spec/dummy/config/initializers/apipie.rb'
|
2055
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
2056
|
+
- 'spec/spec_helper.rb'
|
1558
2057
|
|
1559
2058
|
# Offense count: 4
|
1560
2059
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
@@ -1615,30 +2114,36 @@ Style/MultilineBlockChain:
|
|
1615
2114
|
Exclude:
|
1616
2115
|
- 'lib/apipie/param_description.rb'
|
1617
2116
|
|
1618
|
-
# Offense count:
|
2117
|
+
# Offense count: 1
|
1619
2118
|
# This cop supports safe autocorrection (--autocorrect).
|
1620
2119
|
# Configuration parameters: AllowMethodComparison.
|
1621
2120
|
Style/MultipleComparison:
|
1622
2121
|
Exclude:
|
1623
2122
|
- 'lib/apipie/validator.rb'
|
1624
|
-
- 'spec/dummy/config/initializers/apipie.rb'
|
1625
2123
|
|
1626
|
-
# Offense count:
|
2124
|
+
# Offense count: 7
|
1627
2125
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1628
2126
|
# Configuration parameters: EnforcedStyle.
|
1629
2127
|
# SupportedStyles: literals, strict
|
1630
2128
|
Style/MutableConstant:
|
1631
2129
|
Exclude:
|
1632
2130
|
- 'lib/apipie/extractor/recorder.rb'
|
2131
|
+
- 'lib/apipie/generator/swagger/param_description/in.rb'
|
2132
|
+
- 'lib/apipie/generator/swagger/type_extractor.rb'
|
2133
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
1633
2134
|
- 'lib/apipie/routes_formatter.rb'
|
1634
2135
|
- 'lib/apipie/version.rb'
|
1635
2136
|
|
1636
|
-
# Offense count:
|
2137
|
+
# Offense count: 13
|
1637
2138
|
# This cop supports safe autocorrection (--autocorrect).
|
1638
2139
|
# Configuration parameters: EnforcedStyle.
|
1639
2140
|
# SupportedStyles: both, prefix, postfix
|
1640
2141
|
Style/NegatedIf:
|
1641
2142
|
Exclude:
|
2143
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
2144
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
2145
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
2146
|
+
- 'lib/apipie/method_description/apis_service.rb'
|
1642
2147
|
- 'lib/apipie/param_description.rb'
|
1643
2148
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
1644
2149
|
- 'lib/apipie/swagger_generator.rb'
|
@@ -1659,23 +2164,13 @@ Style/NestedParenthesizedCalls:
|
|
1659
2164
|
Exclude:
|
1660
2165
|
- 'spec/lib/file_handler_spec.rb'
|
1661
2166
|
|
1662
|
-
# Offense count: 4
|
1663
|
-
# This cop supports safe autocorrection (--autocorrect).
|
1664
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
1665
|
-
# SupportedStyles: skip_modifier_ifs, always
|
1666
|
-
Style/Next:
|
1667
|
-
Exclude:
|
1668
|
-
- 'app/controllers/apipie/apipies_controller.rb'
|
1669
|
-
- 'lib/apipie/extractor/writer.rb'
|
1670
|
-
- 'lib/apipie/swagger_generator.rb'
|
1671
|
-
- 'lib/tasks/apipie.rake'
|
1672
|
-
|
1673
2167
|
# Offense count: 1
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
2168
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2169
|
+
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
2170
|
+
Style/NumericLiterals:
|
2171
|
+
MinDigits: 6
|
1677
2172
|
|
1678
|
-
# Offense count:
|
2173
|
+
# Offense count: 11
|
1679
2174
|
# Configuration parameters: AllowedMethods.
|
1680
2175
|
# AllowedMethods: respond_to_missing?
|
1681
2176
|
Style/OptionalBooleanParameter:
|
@@ -1708,22 +2203,6 @@ Style/PerlBackrefs:
|
|
1708
2203
|
Exclude:
|
1709
2204
|
- 'lib/apipie/extractor.rb'
|
1710
2205
|
|
1711
|
-
# Offense count: 27
|
1712
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1713
|
-
# Configuration parameters: EnforcedStyle.
|
1714
|
-
# SupportedStyles: short, verbose
|
1715
|
-
Style/PreferredHashMethods:
|
1716
|
-
Exclude:
|
1717
|
-
- 'lib/apipie/apipie_module.rb'
|
1718
|
-
- 'lib/apipie/application.rb'
|
1719
|
-
- 'lib/apipie/dsl_definition.rb'
|
1720
|
-
- 'lib/apipie/extractor/writer.rb'
|
1721
|
-
- 'lib/apipie/method_description.rb'
|
1722
|
-
- 'lib/apipie/param_description.rb'
|
1723
|
-
- 'lib/apipie/resource_description.rb'
|
1724
|
-
- 'lib/apipie/validator.rb'
|
1725
|
-
- 'spec/lib/param_group_spec.rb'
|
1726
|
-
|
1727
2206
|
# Offense count: 5
|
1728
2207
|
# This cop supports safe autocorrection (--autocorrect).
|
1729
2208
|
Style/Proc:
|
@@ -1769,6 +2248,16 @@ Style/RedundantConditional:
|
|
1769
2248
|
- 'lib/apipie/validator.rb'
|
1770
2249
|
- 'lib/tasks/apipie.rake'
|
1771
2250
|
|
2251
|
+
# Offense count: 9
|
2252
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2253
|
+
Style/RedundantConstantBase:
|
2254
|
+
Exclude:
|
2255
|
+
- 'lib/tasks/apipie.rake'
|
2256
|
+
- 'spec/dummy/config.ru'
|
2257
|
+
- 'spec/lib/rake_spec.rb'
|
2258
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
2259
|
+
- 'spec/spec_helper.rb'
|
2260
|
+
|
1772
2261
|
# Offense count: 5
|
1773
2262
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1774
2263
|
Style/RedundantInterpolation:
|
@@ -1790,7 +2279,7 @@ Style/RedundantPercentQ:
|
|
1790
2279
|
Exclude:
|
1791
2280
|
- 'apipie-rails.gemspec'
|
1792
2281
|
|
1793
|
-
# Offense count:
|
2282
|
+
# Offense count: 35
|
1794
2283
|
# This cop supports safe autocorrection (--autocorrect).
|
1795
2284
|
# Configuration parameters: AllowMultipleReturnValues.
|
1796
2285
|
Style/RedundantReturn:
|
@@ -1816,16 +2305,22 @@ Style/RedundantSelf:
|
|
1816
2305
|
- 'lib/apipie/application.rb'
|
1817
2306
|
- 'lib/apipie/dsl_definition.rb'
|
1818
2307
|
- 'lib/apipie/extractor/writer.rb'
|
2308
|
+
- 'lib/apipie/generator/swagger/type.rb'
|
1819
2309
|
- 'lib/apipie/method_description.rb'
|
1820
2310
|
- 'lib/apipie/param_description.rb'
|
1821
2311
|
- 'lib/apipie/resource_description.rb'
|
1822
2312
|
- 'lib/apipie/response_description.rb'
|
1823
2313
|
- 'lib/apipie/response_description_adapter.rb'
|
1824
|
-
- 'lib/apipie/swagger_generator.rb'
|
1825
2314
|
- 'lib/apipie/validator.rb'
|
1826
2315
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
1827
2316
|
- 'spec/dummy/config/initializers/apipie.rb'
|
1828
2317
|
|
2318
|
+
# Offense count: 1
|
2319
|
+
# This cop supports safe autocorrection (--autocorrect).
|
2320
|
+
Style/RedundantStringEscape:
|
2321
|
+
Exclude:
|
2322
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
2323
|
+
|
1829
2324
|
# Offense count: 12
|
1830
2325
|
# This cop supports safe autocorrection (--autocorrect).
|
1831
2326
|
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
@@ -1835,6 +2330,7 @@ Style/RegexpLiteral:
|
|
1835
2330
|
- 'lib/apipie/extractor.rb'
|
1836
2331
|
- 'lib/apipie/extractor/collector.rb'
|
1837
2332
|
- 'lib/apipie/extractor/recorder.rb'
|
2333
|
+
- 'lib/apipie/generator/swagger/operation_id.rb'
|
1838
2334
|
- 'lib/apipie/helpers.rb'
|
1839
2335
|
- 'lib/apipie/routing.rb'
|
1840
2336
|
- 'lib/apipie/swagger_generator.rb'
|
@@ -1872,13 +2368,12 @@ Style/Semicolon:
|
|
1872
2368
|
Exclude:
|
1873
2369
|
- 'lib/apipie/method_description.rb'
|
1874
2370
|
|
1875
|
-
# Offense count:
|
2371
|
+
# Offense count: 2
|
1876
2372
|
# This cop supports safe autocorrection (--autocorrect).
|
1877
2373
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
1878
2374
|
Style/SingleLineMethods:
|
1879
2375
|
Exclude:
|
1880
2376
|
- 'lib/apipie/resource_description.rb'
|
1881
|
-
- 'lib/apipie/swagger_generator.rb'
|
1882
2377
|
- 'lib/apipie/tag_list_description.rb'
|
1883
2378
|
|
1884
2379
|
# Offense count: 6
|
@@ -1891,12 +2386,11 @@ Style/SlicingWithRange:
|
|
1891
2386
|
- 'lib/apipie/param_description.rb'
|
1892
2387
|
- 'lib/tasks/apipie.rake'
|
1893
2388
|
|
1894
|
-
# Offense count:
|
2389
|
+
# Offense count: 3
|
1895
2390
|
# This cop supports safe autocorrection (--autocorrect).
|
1896
2391
|
# Configuration parameters: AllowModifier.
|
1897
2392
|
Style/SoleNestedConditional:
|
1898
2393
|
Exclude:
|
1899
|
-
- 'lib/apipie/swagger_generator.rb'
|
1900
2394
|
- 'lib/apipie/validator.rb'
|
1901
2395
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1902
2396
|
|
@@ -1916,12 +2410,92 @@ Style/StringConcatenation:
|
|
1916
2410
|
- 'lib/apipie/extractor/writer.rb'
|
1917
2411
|
- 'lib/apipie/swagger_generator.rb'
|
1918
2412
|
|
1919
|
-
# Offense count:
|
2413
|
+
# Offense count: 1304
|
1920
2414
|
# This cop supports safe autocorrection (--autocorrect).
|
1921
2415
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
1922
2416
|
# SupportedStyles: single_quotes, double_quotes
|
1923
2417
|
Style/StringLiterals:
|
1924
|
-
|
2418
|
+
Exclude:
|
2419
|
+
- 'Gemfile'
|
2420
|
+
- 'Rakefile'
|
2421
|
+
- 'apipie-rails.gemspec'
|
2422
|
+
- 'app/controllers/apipie/apipies_controller.rb'
|
2423
|
+
- 'lib/apipie-rails.rb'
|
2424
|
+
- 'lib/apipie/apipie_module.rb'
|
2425
|
+
- 'lib/apipie/application.rb'
|
2426
|
+
- 'lib/apipie/configuration.rb'
|
2427
|
+
- 'lib/apipie/dsl_definition.rb'
|
2428
|
+
- 'lib/apipie/extractor.rb'
|
2429
|
+
- 'lib/apipie/extractor/collector.rb'
|
2430
|
+
- 'lib/apipie/extractor/recorder.rb'
|
2431
|
+
- 'lib/apipie/extractor/writer.rb'
|
2432
|
+
- 'lib/apipie/generator/swagger/param_description.rb'
|
2433
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
2434
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
2435
|
+
- 'lib/apipie/helpers.rb'
|
2436
|
+
- 'lib/apipie/method_description.rb'
|
2437
|
+
- 'lib/apipie/param_description.rb'
|
2438
|
+
- 'lib/apipie/resource_description.rb'
|
2439
|
+
- 'lib/apipie/routing.rb'
|
2440
|
+
- 'lib/apipie/rspec/response_validation_helper.rb'
|
2441
|
+
- 'lib/apipie/see_description.rb'
|
2442
|
+
- 'lib/apipie/static_dispatcher.rb'
|
2443
|
+
- 'lib/apipie/swagger_generator.rb'
|
2444
|
+
- 'lib/apipie/validator.rb'
|
2445
|
+
- 'lib/apipie/version.rb'
|
2446
|
+
- 'lib/generators/apipie/install/install_generator.rb'
|
2447
|
+
- 'lib/tasks/apipie.rake'
|
2448
|
+
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
2449
|
+
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
2450
|
+
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
2451
|
+
- 'spec/controllers/apipies_controller_spec.rb'
|
2452
|
+
- 'spec/controllers/concerns_controller_spec.rb'
|
2453
|
+
- 'spec/controllers/extended_controller_spec.rb'
|
2454
|
+
- 'spec/controllers/included_param_group_controller_spec.rb'
|
2455
|
+
- 'spec/controllers/memes_controller_spec.rb'
|
2456
|
+
- 'spec/controllers/users_controller_spec.rb'
|
2457
|
+
- 'spec/dummy/Gemfile'
|
2458
|
+
- 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
|
2459
|
+
- 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
|
2460
|
+
- 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
|
2461
|
+
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
|
2462
|
+
- 'spec/dummy/app/controllers/application_controller.rb'
|
2463
|
+
- 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
|
2464
|
+
- 'spec/dummy/app/controllers/pets_controller.rb'
|
2465
|
+
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
2466
|
+
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
2467
|
+
- 'spec/dummy/app/controllers/sample_controller.rb'
|
2468
|
+
- 'spec/dummy/app/controllers/tagged_cats_controller.rb'
|
2469
|
+
- 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
|
2470
|
+
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
2471
|
+
- 'spec/dummy/app/controllers/users_controller.rb'
|
2472
|
+
- 'spec/dummy/bin/setup'
|
2473
|
+
- 'spec/dummy/components/test_engine/Gemfile'
|
2474
|
+
- 'spec/dummy/config/application.rb'
|
2475
|
+
- 'spec/dummy/config/initializers/apipie.rb'
|
2476
|
+
- 'spec/dummy/config/routes.rb'
|
2477
|
+
- 'spec/lib/application_spec.rb'
|
2478
|
+
- 'spec/lib/extractor/extractor_spec.rb'
|
2479
|
+
- 'spec/lib/extractor/middleware_spec.rb'
|
2480
|
+
- 'spec/lib/extractor/writer_spec.rb'
|
2481
|
+
- 'spec/lib/file_handler_spec.rb'
|
2482
|
+
- 'spec/lib/generator/swagger/operation_id_spec.rb'
|
2483
|
+
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
2484
|
+
- 'spec/lib/generator/swagger/type_extractor_spec.rb'
|
2485
|
+
- 'spec/lib/generator/swagger/warning_spec.rb'
|
2486
|
+
- 'spec/lib/method_description_spec.rb'
|
2487
|
+
- 'spec/lib/param_description_spec.rb'
|
2488
|
+
- 'spec/lib/param_group_spec.rb'
|
2489
|
+
- 'spec/lib/rake_spec.rb'
|
2490
|
+
- 'spec/lib/resource_description_spec.rb'
|
2491
|
+
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
2492
|
+
- 'spec/lib/swagger/response_validation_spec.rb'
|
2493
|
+
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
2494
|
+
- 'spec/lib/validator_spec.rb'
|
2495
|
+
- 'spec/lib/validators/array_validator_spec.rb'
|
2496
|
+
- 'spec/spec_helper.rb'
|
2497
|
+
- 'spec/support/custom_bool_validator.rb'
|
2498
|
+
- 'spec/support/rake.rb'
|
1925
2499
|
|
1926
2500
|
# Offense count: 38
|
1927
2501
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1939,12 +2513,14 @@ Style/TrailingCommaInArrayLiteral:
|
|
1939
2513
|
- 'spec/controllers/users_controller_spec.rb'
|
1940
2514
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
1941
2515
|
|
1942
|
-
# Offense count:
|
2516
|
+
# Offense count: 5
|
1943
2517
|
# This cop supports safe autocorrection (--autocorrect).
|
1944
2518
|
# Configuration parameters: EnforcedStyleForMultiline.
|
1945
2519
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
1946
2520
|
Style/TrailingCommaInHashLiteral:
|
1947
2521
|
Exclude:
|
2522
|
+
- 'lib/apipie/generator/swagger/param_description.rb'
|
2523
|
+
- 'lib/apipie/generator/swagger/param_description/builder.rb'
|
1948
2524
|
- 'lib/apipie/response_description.rb'
|
1949
2525
|
- 'lib/apipie/swagger_generator.rb'
|
1950
2526
|
- 'spec/controllers/users_controller_spec.rb'
|
@@ -1965,27 +2541,30 @@ Style/UnlessElse:
|
|
1965
2541
|
- 'lib/apipie/validator.rb'
|
1966
2542
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1967
2543
|
|
1968
|
-
# Offense count:
|
2544
|
+
# Offense count: 37
|
1969
2545
|
# This cop supports safe autocorrection (--autocorrect).
|
1970
2546
|
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
1971
2547
|
# SupportedStyles: percent, brackets
|
1972
2548
|
Style/WordArray:
|
1973
2549
|
Exclude:
|
2550
|
+
- 'lib/apipie/generator/swagger/param_description/in.rb'
|
1974
2551
|
- 'lib/apipie/swagger_generator.rb'
|
1975
2552
|
- 'spec/controllers/users_controller_spec.rb'
|
1976
2553
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
1977
2554
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
1978
2555
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
1979
2556
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
2557
|
+
- 'spec/lib/generator/swagger/param_description/type_spec.rb'
|
1980
2558
|
- 'spec/lib/method_description_spec.rb'
|
1981
2559
|
- 'spec/lib/resource_description_spec.rb'
|
1982
2560
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1983
2561
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1984
2562
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1985
2563
|
|
1986
|
-
# Offense count:
|
2564
|
+
# Offense count: 3
|
1987
2565
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1988
2566
|
Style/ZeroLengthPredicate:
|
1989
2567
|
Exclude:
|
2568
|
+
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
1990
2569
|
- 'lib/apipie/swagger_generator.rb'
|
1991
2570
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|