apipie-rails 0.9.1 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop-challenger.yml +1 -1
  3. data/.github/workflows/rubocop.yml +20 -0
  4. data/.rubocop.yml +81 -0
  5. data/.rubocop_todo.yml +815 -351
  6. data/CHANGELOG.md +17 -0
  7. data/README.rst +20 -0
  8. data/apipie-rails.gemspec +4 -0
  9. data/app/controllers/apipie/apipies_controller.rb +5 -6
  10. data/app/views/apipie/apipies/_deprecation.html.erb +16 -0
  11. data/app/views/apipie/apipies/_params.html.erb +7 -1
  12. data/config/locales/en.yml +7 -0
  13. data/lib/apipie/apipie_module.rb +2 -2
  14. data/lib/apipie/application.rb +10 -12
  15. data/lib/apipie/configuration.rb +24 -13
  16. data/lib/apipie/dsl_definition.rb +13 -12
  17. data/lib/apipie/error_description.rb +2 -2
  18. data/lib/apipie/extractor/recorder.rb +1 -1
  19. data/lib/apipie/extractor/writer.rb +11 -11
  20. data/lib/apipie/extractor.rb +1 -1
  21. data/lib/apipie/generator/swagger/context.rb +27 -0
  22. data/lib/apipie/generator/swagger/operation_id.rb +51 -0
  23. data/lib/apipie/generator/swagger/param_description/builder.rb +105 -0
  24. data/lib/apipie/generator/swagger/param_description/composite.rb +111 -0
  25. data/lib/apipie/generator/swagger/param_description/description.rb +15 -0
  26. data/lib/apipie/generator/swagger/param_description/in.rb +37 -0
  27. data/lib/apipie/generator/swagger/param_description/name.rb +18 -0
  28. data/lib/apipie/generator/swagger/param_description/type.rb +108 -0
  29. data/lib/apipie/generator/swagger/param_description.rb +18 -0
  30. data/lib/apipie/generator/swagger/type_extractor.rb +2 -2
  31. data/lib/apipie/markup.rb +9 -8
  32. data/lib/apipie/method_description.rb +4 -5
  33. data/lib/apipie/param_description/deprecation.rb +24 -0
  34. data/lib/apipie/param_description.rb +45 -18
  35. data/lib/apipie/resource_description.rb +4 -4
  36. data/lib/apipie/response_description.rb +2 -2
  37. data/lib/apipie/response_description_adapter.rb +7 -5
  38. data/lib/apipie/swagger_generator.rb +54 -202
  39. data/lib/apipie/validator.rb +8 -9
  40. data/lib/apipie/version.rb +1 -1
  41. data/lib/apipie-rails.rb +10 -0
  42. data/lib/tasks/apipie.rake +6 -6
  43. data/spec/controllers/users_controller_spec.rb +11 -3
  44. data/spec/{controllers → lib/apipie}/apipies_controller_spec.rb +2 -2
  45. data/spec/lib/{application_spec.rb → apipie/application_spec.rb} +6 -3
  46. data/spec/lib/apipie/configuration_spec.rb +23 -0
  47. data/spec/lib/apipie/extractor/recorder_spec.rb +40 -0
  48. data/spec/lib/apipie/generator/swagger/context_spec.rb +35 -0
  49. data/spec/lib/apipie/generator/swagger/operation_id_spec.rb +63 -0
  50. data/spec/lib/apipie/generator/swagger/param_description/builder_spec.rb +163 -0
  51. data/spec/lib/apipie/generator/swagger/param_description/composite_spec.rb +95 -0
  52. data/spec/lib/apipie/generator/swagger/param_description/description_spec.rb +79 -0
  53. data/spec/lib/apipie/generator/swagger/param_description/in_spec.rb +86 -0
  54. data/spec/lib/apipie/generator/swagger/param_description/name_spec.rb +81 -0
  55. data/spec/lib/apipie/generator/swagger/param_description/type_spec.rb +178 -0
  56. data/spec/lib/apipie/generator/swagger/param_description_spec.rb +28 -0
  57. data/spec/lib/{generator → apipie/generator}/swagger/type_extractor_spec.rb +38 -18
  58. data/spec/lib/{method_description_spec.rb → apipie/method_description_spec.rb} +4 -4
  59. data/spec/lib/apipie/param_description/deprecation_spec.rb +31 -0
  60. data/spec/lib/{param_description_spec.rb → apipie/param_description_spec.rb} +81 -1
  61. data/spec/lib/{param_group_spec.rb → apipie/param_group_spec.rb} +5 -5
  62. data/spec/lib/{resource_description_spec.rb → apipie/resource_description_spec.rb} +2 -2
  63. data/spec/lib/swagger/swagger_dsl_spec.rb +1 -1
  64. data/spec/spec_helper.rb +1 -1
  65. metadata +85 -19
  66. /data/spec/{lib/swagger/response_validation_spec.rb → controllers/pets_controller_spec.rb} +0 -0
  67. /data/spec/lib/{extractor → apipie/extractor/recorder}/middleware_spec.rb +0 -0
  68. /data/spec/lib/{extractor → apipie/extractor}/writer_spec.rb +0 -0
  69. /data/spec/lib/{extractor → apipie}/extractor_spec.rb +0 -0
  70. /data/spec/lib/{file_handler_spec.rb → apipie/file_handler_spec.rb} +0 -0
  71. /data/spec/lib/{generator → apipie/generator}/swagger/warning_spec.rb +0 -0
  72. /data/spec/lib/{generator → apipie/generator}/swagger/warning_writer_spec.rb +0 -0
  73. /data/spec/lib/{method_description → apipie/method_description}/apis_service_spec.rb +0 -0
  74. /data/spec/lib/{validator_spec.rb → apipie/validator_spec.rb} +0 -0
  75. /data/spec/{controllers → test_engine}/memes_controller_spec.rb +0 -0
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2022-09-30 23:40:43 UTC using RuboCop version 1.36.0.
2
+ # `rubocop --auto-gen-config --exclude-limit 180`
3
+ # on 2023-03-06 23:34:08 UTC using RuboCop version 1.48.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,13 +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: 1
17
+ # Offense count: 9
18
+ # Configuration parameters: EnforcedStyle, AllowedGems, Include.
19
+ # SupportedStyles: Gemfile, gems.rb, gemspec
20
+ # Include: **/*.gemspec, **/Gemfile, **/gems.rb
21
+ Gemspec/DevelopmentDependencies:
22
+ Exclude:
23
+ - 'apipie-rails.gemspec'
24
+
25
+ # Offense count: 2
18
26
  # This cop supports safe autocorrection (--autocorrect).
19
27
  # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
20
28
  # Include: **/*.gemspec
@@ -24,7 +32,7 @@ Gemspec/OrderedDependencies:
24
32
 
25
33
  # Offense count: 2
26
34
  # This cop supports safe autocorrection (--autocorrect).
27
- # Configuration parameters: Include.
35
+ # Configuration parameters: Severity, Include.
28
36
  # Include: **/*.gemspec
29
37
  Gemspec/RequireMFA:
30
38
  Exclude:
@@ -32,19 +40,20 @@ Gemspec/RequireMFA:
32
40
  - 'spec/dummy/components/test_engine/test_engine.gemspec'
33
41
 
34
42
  # Offense count: 1
35
- # Configuration parameters: Include.
43
+ # Configuration parameters: Severity, Include.
36
44
  # Include: **/*.gemspec
37
45
  Gemspec/RequiredRubyVersion:
38
46
  Exclude:
39
47
  - 'spec/dummy/components/test_engine/test_engine.gemspec'
40
48
 
41
- # Offense count: 26
49
+ # Offense count: 28
42
50
  # This cop supports safe autocorrection (--autocorrect).
43
51
  # Configuration parameters: EnforcedStyle, IndentationWidth.
44
52
  # SupportedStyles: with_first_argument, with_fixed_indentation
45
53
  Layout/ArgumentAlignment:
46
54
  Exclude:
47
55
  - 'lib/apipie/configuration.rb'
56
+ - 'lib/apipie/method_description/api.rb'
48
57
  - 'lib/apipie/resource_description.rb'
49
58
  - 'spec/controllers/users_controller_spec.rb'
50
59
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
@@ -58,7 +67,7 @@ Layout/BlockAlignment:
58
67
  Exclude:
59
68
  - 'lib/apipie/application.rb'
60
69
  - 'lib/apipie/extractor/writer.rb'
61
- - 'spec/lib/param_group_spec.rb'
70
+ - 'spec/lib/apipie/param_group_spec.rb'
62
71
 
63
72
  # Offense count: 10
64
73
  # This cop supports safe autocorrection (--autocorrect).
@@ -78,14 +87,28 @@ Layout/CommentIndentation:
78
87
  - 'lib/apipie/swagger_generator.rb'
79
88
  - 'spec/dummy/app/controllers/pets_controller.rb'
80
89
 
81
- # Offense count: 6
90
+ # Offense count: 1
91
+ # This cop supports safe autocorrection (--autocorrect).
92
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
93
+ # SupportedStylesAlignWith: start_of_line, def
94
+ Layout/DefEndAlignment:
95
+ Exclude:
96
+ - 'lib/apipie/generator/swagger/param_description/name.rb'
97
+
98
+ # Offense count: 36
82
99
  # This cop supports safe autocorrection (--autocorrect).
83
100
  # Configuration parameters: EnforcedStyle.
84
101
  # SupportedStyles: leading, trailing
85
102
  Layout/DotPosition:
86
103
  Exclude:
104
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
105
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
106
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
87
107
  - 'lib/apipie/method_description.rb'
88
- - 'spec/lib/application_spec.rb'
108
+ - 'lib/apipie/swagger_generator.rb'
109
+ - 'spec/lib/apipie/application_spec.rb'
110
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
111
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
89
112
 
90
113
  # Offense count: 7
91
114
  # This cop supports safe autocorrection (--autocorrect).
@@ -98,20 +121,28 @@ Layout/ElseAlignment:
98
121
  - 'lib/apipie/param_description.rb'
99
122
  - 'lib/apipie/resource_description.rb'
100
123
 
101
- # Offense count: 62
124
+ # Offense count: 64
102
125
  # This cop supports safe autocorrection (--autocorrect).
103
126
  Layout/EmptyLineAfterGuardClause:
104
- Enabled: false
105
-
106
- # Offense count: 3
107
- # This cop supports safe autocorrection (--autocorrect).
108
- Layout/EmptyLineAfterMagicComment:
109
127
  Exclude:
110
- - 'apipie-rails.gemspec'
128
+ - 'app/controllers/apipie/apipies_controller.rb'
129
+ - 'lib/apipie/application.rb'
130
+ - 'lib/apipie/dsl_definition.rb'
131
+ - 'lib/apipie/extractor/recorder.rb'
132
+ - 'lib/apipie/extractor/writer.rb'
133
+ - 'lib/apipie/helpers.rb'
134
+ - 'lib/apipie/method_description.rb'
135
+ - 'lib/apipie/param_description.rb'
136
+ - 'lib/apipie/response_description_adapter.rb'
137
+ - 'lib/apipie/see_description.rb'
138
+ - 'lib/apipie/swagger_generator.rb'
111
139
  - 'lib/apipie/validator.rb'
112
140
  - 'lib/tasks/apipie.rake'
141
+ - 'spec/dummy/config/initializers/apipie.rb'
142
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
143
+ - 'spec/spec_helper.rb'
113
144
 
114
- # Offense count: 20
145
+ # Offense count: 17
115
146
  # This cop supports safe autocorrection (--autocorrect).
116
147
  # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
117
148
  Layout/EmptyLineBetweenDefs:
@@ -128,10 +159,31 @@ Layout/EmptyLineBetweenDefs:
128
159
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
129
160
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
130
161
 
131
- # Offense count: 83
162
+ # Offense count: 74
132
163
  # This cop supports safe autocorrection (--autocorrect).
133
164
  Layout/EmptyLines:
134
- Enabled: false
165
+ Exclude:
166
+ - 'app/controllers/apipie/apipies_controller.rb'
167
+ - 'lib/apipie/apipie_module.rb'
168
+ - 'lib/apipie/dsl_definition.rb'
169
+ - 'lib/apipie/extractor/writer.rb'
170
+ - 'lib/apipie/response_description.rb'
171
+ - 'lib/apipie/response_description_adapter.rb'
172
+ - 'lib/apipie/rspec/response_validation_helper.rb'
173
+ - 'lib/apipie/swagger_generator.rb'
174
+ - 'lib/apipie/validator.rb'
175
+ - 'lib/tasks/apipie.rake'
176
+ - 'spec/controllers/included_param_group_controller_spec.rb'
177
+ - 'spec/controllers/pets_controller_spec.rb'
178
+ - 'spec/dummy/app/controllers/pets_controller.rb'
179
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
180
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
181
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
182
+ - 'spec/lib/apipie/application_spec.rb'
183
+ - 'spec/lib/apipie/method_description_spec.rb'
184
+ - 'spec/lib/apipie/param_description_spec.rb'
185
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
186
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
135
187
 
136
188
  # Offense count: 1
137
189
  # This cop supports safe autocorrection (--autocorrect).
@@ -141,28 +193,79 @@ Layout/EmptyLinesAroundAccessModifier:
141
193
  Exclude:
142
194
  - 'app/controllers/apipie/apipies_controller.rb'
143
195
 
144
- # Offense count: 6
196
+ # Offense count: 5
145
197
  # This cop supports safe autocorrection (--autocorrect).
146
198
  # Configuration parameters: AllowAliasSyntax, AllowedMethods.
147
199
  # AllowedMethods: alias_method, public, protected, private
148
200
  Layout/EmptyLinesAroundAttributeAccessor:
149
201
  Exclude:
150
202
  - 'lib/apipie/configuration.rb'
151
- - 'lib/apipie/swagger_generator.rb'
152
203
 
153
- # Offense count: 106
204
+ # Offense count: 109
154
205
  # This cop supports safe autocorrection (--autocorrect).
155
206
  # Configuration parameters: EnforcedStyle.
156
207
  # SupportedStyles: empty_lines, no_empty_lines
157
208
  Layout/EmptyLinesAroundBlockBody:
158
- Enabled: false
209
+ Exclude:
210
+ - 'app/controllers/apipie/apipies_controller.rb'
211
+ - 'lib/tasks/apipie.rake'
212
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
213
+ - 'spec/controllers/api/v2/architectures_controller_spec.rb'
214
+ - 'spec/controllers/concerns_controller_spec.rb'
215
+ - 'spec/controllers/extended_controller_spec.rb'
216
+ - 'spec/controllers/included_param_group_controller_spec.rb'
217
+ - 'spec/controllers/pets_controller_spec.rb'
218
+ - 'spec/controllers/users_controller_spec.rb'
219
+ - 'spec/dummy/app/controllers/pets_controller.rb'
220
+ - 'spec/dummy/config/routes.rb'
221
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
222
+ - 'spec/lib/apipie/application_spec.rb'
223
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
224
+ - 'spec/lib/apipie/file_handler_spec.rb'
225
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
226
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
227
+ - 'spec/lib/apipie/method_description_spec.rb'
228
+ - 'spec/lib/apipie/param_description_spec.rb'
229
+ - 'spec/lib/apipie/param_group_spec.rb'
230
+ - 'spec/lib/apipie/resource_description_spec.rb'
231
+ - 'spec/lib/apipie/validator_spec.rb'
232
+ - 'spec/lib/rake_spec.rb'
233
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
234
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
235
+ - 'spec/lib/validators/array_validator_spec.rb'
236
+ - 'spec/spec_helper.rb'
237
+ - 'spec/test_engine/memes_controller_spec.rb'
159
238
 
160
- # Offense count: 51
239
+ # Offense count: 46
161
240
  # This cop supports safe autocorrection (--autocorrect).
162
241
  # Configuration parameters: EnforcedStyle.
163
242
  # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
164
243
  Layout/EmptyLinesAroundClassBody:
165
- Enabled: false
244
+ Exclude:
245
+ - 'lib/apipie/application.rb'
246
+ - 'lib/apipie/configuration.rb'
247
+ - 'lib/apipie/error_description.rb'
248
+ - 'lib/apipie/extractor.rb'
249
+ - 'lib/apipie/extractor/collector.rb'
250
+ - 'lib/apipie/extractor/writer.rb'
251
+ - 'lib/apipie/markup.rb'
252
+ - 'lib/apipie/param_description.rb'
253
+ - 'lib/apipie/resource_description.rb'
254
+ - 'lib/apipie/response_description.rb'
255
+ - 'lib/apipie/response_description_adapter.rb'
256
+ - 'lib/apipie/see_description.rb'
257
+ - 'lib/apipie/swagger_generator.rb'
258
+ - 'lib/apipie/tag_list_description.rb'
259
+ - 'lib/apipie/validator.rb'
260
+ - 'spec/dummy/app/controllers/application_controller.rb'
261
+ - 'spec/dummy/app/controllers/concerns_controller.rb'
262
+ - 'spec/dummy/app/controllers/extended_controller.rb'
263
+ - 'spec/dummy/app/controllers/included_param_group_controller.rb'
264
+ - 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
265
+ - 'spec/dummy/app/controllers/pets_controller.rb'
266
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
267
+ - 'spec/dummy/app/controllers/users_controller.rb'
268
+ - 'spec/dummy/config/initializers/apipie.rb'
166
269
 
167
270
  # Offense count: 1
168
271
  # This cop supports safe autocorrection (--autocorrect).
@@ -188,7 +291,24 @@ Layout/EmptyLinesAroundMethodBody:
188
291
  # Configuration parameters: EnforcedStyle.
189
292
  # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
190
293
  Layout/EmptyLinesAroundModuleBody:
191
- Enabled: false
294
+ Exclude:
295
+ - 'app/helpers/apipie_helper.rb'
296
+ - 'lib/apipie/application.rb'
297
+ - 'lib/apipie/dsl_definition.rb'
298
+ - 'lib/apipie/error_description.rb'
299
+ - 'lib/apipie/errors.rb'
300
+ - 'lib/apipie/extractor.rb'
301
+ - 'lib/apipie/markup.rb'
302
+ - 'lib/apipie/method_description.rb'
303
+ - 'lib/apipie/param_description.rb'
304
+ - 'lib/apipie/resource_description.rb'
305
+ - 'lib/apipie/response_description.rb'
306
+ - 'lib/apipie/response_description_adapter.rb'
307
+ - 'lib/apipie/see_description.rb'
308
+ - 'lib/apipie/static_dispatcher.rb'
309
+ - 'lib/apipie/swagger_generator.rb'
310
+ - 'lib/apipie/tag_list_description.rb'
311
+ - 'lib/apipie/validator.rb'
192
312
 
193
313
  # Offense count: 7
194
314
  # This cop supports safe autocorrection (--autocorrect).
@@ -204,19 +324,19 @@ Layout/EndAlignment:
204
324
  - 'lib/apipie/param_description.rb'
205
325
  - 'lib/apipie/resource_description.rb'
206
326
 
207
- # Offense count: 32
327
+ # Offense count: 29
208
328
  # This cop supports safe autocorrection (--autocorrect).
209
329
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
210
330
  Layout/ExtraSpacing:
211
331
  Exclude:
212
332
  - 'lib/apipie/configuration.rb'
213
333
  - 'lib/apipie/dsl_definition.rb'
214
- - 'lib/apipie/swagger_generator.rb'
215
334
  - 'spec/controllers/users_controller_spec.rb'
216
335
  - 'spec/dummy/app/controllers/pets_controller.rb'
217
336
  - 'spec/dummy/config.ru'
218
337
  - 'spec/dummy/config/environments/test.rb'
219
338
  - 'spec/dummy/script/rails'
339
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
220
340
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
221
341
 
222
342
  # Offense count: 9
@@ -228,7 +348,7 @@ Layout/FirstArrayElementIndentation:
228
348
  - 'spec/dummy/app/controllers/pets_controller.rb'
229
349
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
230
350
 
231
- # Offense count: 36
351
+ # Offense count: 45
232
352
  # This cop supports safe autocorrection (--autocorrect).
233
353
  # Configuration parameters: EnforcedStyle, IndentationWidth.
234
354
  # SupportedStyles: special_inside_parentheses, consistent, align_braces
@@ -240,9 +360,16 @@ Layout/FirstHashElementIndentation:
240
360
  - 'lib/apipie/response_description_adapter.rb'
241
361
  - 'lib/apipie/swagger_generator.rb'
242
362
  - 'spec/dummy/app/controllers/pets_controller.rb'
243
- - 'spec/lib/extractor/writer_spec.rb'
363
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
364
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
365
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
366
+ - 'spec/lib/apipie/generator/swagger/param_description/description_spec.rb'
367
+ - 'spec/lib/apipie/generator/swagger/param_description/in_spec.rb'
368
+ - 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
369
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
370
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
244
371
 
245
- # Offense count: 117
372
+ # Offense count: 123
246
373
  # This cop supports safe autocorrection (--autocorrect).
247
374
  # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
248
375
  # SupportedHashRocketStyles: key, separator, table
@@ -254,7 +381,7 @@ Layout/HashAlignment:
254
381
  - 'lib/apipie/swagger_generator.rb'
255
382
  - 'lib/tasks/apipie.rake'
256
383
  - 'spec/controllers/users_controller_spec.rb'
257
- - 'spec/lib/extractor/writer_spec.rb'
384
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
258
385
 
259
386
  # Offense count: 3
260
387
  # This cop supports safe autocorrection (--autocorrect).
@@ -263,23 +390,25 @@ Layout/HeredocIndentation:
263
390
  - 'lib/tasks/apipie.rake'
264
391
  - 'spec/controllers/users_controller_spec.rb'
265
392
 
266
- # Offense count: 1
393
+ # Offense count: 2
267
394
  # This cop supports safe autocorrection (--autocorrect).
268
395
  # Configuration parameters: EnforcedStyle.
269
396
  # SupportedStyles: normal, indented_internal_methods
270
397
  Layout/IndentationConsistency:
271
398
  Exclude:
272
- - 'spec/lib/param_group_spec.rb'
399
+ - 'lib/apipie/generator/swagger/param_description/name.rb'
400
+ - 'spec/lib/apipie/param_group_spec.rb'
273
401
 
274
- # Offense count: 8
402
+ # Offense count: 10
275
403
  # This cop supports safe autocorrection (--autocorrect).
276
- # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
404
+ # Configuration parameters: Width, AllowedPatterns.
277
405
  Layout/IndentationWidth:
278
406
  Exclude:
279
407
  - 'app/controllers/apipie/apipies_controller.rb'
280
408
  - 'lib/apipie/apipie_module.rb'
281
409
  - 'lib/apipie/application.rb'
282
410
  - 'lib/apipie/extractor/writer.rb'
411
+ - 'lib/apipie/generator/swagger/param_description/name.rb'
283
412
  - 'lib/apipie/method_description.rb'
284
413
  - 'lib/apipie/param_description.rb'
285
414
  - 'lib/apipie/resource_description.rb'
@@ -327,13 +456,25 @@ Layout/MultilineMethodCallBraceLayout:
327
456
  Exclude:
328
457
  - 'lib/tasks/apipie.rake'
329
458
 
330
- # Offense count: 4
459
+ # Offense count: 22
460
+ # This cop supports safe autocorrection (--autocorrect).
461
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
462
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
463
+ Layout/MultilineMethodCallIndentation:
464
+ Exclude:
465
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
466
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
467
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
468
+ - 'lib/apipie/swagger_generator.rb'
469
+
470
+ # Offense count: 5
331
471
  # This cop supports safe autocorrection (--autocorrect).
332
472
  # Configuration parameters: EnforcedStyle, IndentationWidth.
333
473
  # SupportedStyles: aligned, indented
334
474
  Layout/MultilineOperationIndentation:
335
475
  Exclude:
336
476
  - 'lib/apipie/application.rb'
477
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
337
478
  - 'lib/apipie/param_description.rb'
338
479
  - 'lib/tasks/apipie.rake'
339
480
 
@@ -343,10 +484,33 @@ Layout/SpaceAfterColon:
343
484
  Exclude:
344
485
  - 'spec/dummy/app/controllers/included_param_group_controller.rb'
345
486
 
346
- # Offense count: 91
487
+ # Offense count: 80
347
488
  # This cop supports safe autocorrection (--autocorrect).
348
489
  Layout/SpaceAfterComma:
349
- Enabled: false
490
+ Exclude:
491
+ - 'apipie-rails.gemspec'
492
+ - 'lib/apipie/application.rb'
493
+ - 'lib/apipie/dsl_definition.rb'
494
+ - 'lib/apipie/extractor.rb'
495
+ - 'lib/apipie/extractor/collector.rb'
496
+ - 'lib/apipie/extractor/recorder.rb'
497
+ - 'lib/apipie/extractor/writer.rb'
498
+ - 'lib/apipie/helpers.rb'
499
+ - 'lib/apipie/method_description.rb'
500
+ - 'lib/apipie/param_description.rb'
501
+ - 'lib/apipie/static_dispatcher.rb'
502
+ - 'lib/apipie/swagger_generator.rb'
503
+ - 'lib/tasks/apipie.rake'
504
+ - 'spec/controllers/users_controller_spec.rb'
505
+ - '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
+ - 'spec/dummy/config/initializers/apipie.rb'
509
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
510
+ - 'spec/lib/apipie/application_spec.rb'
511
+ - 'spec/lib/apipie/param_description_spec.rb'
512
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
513
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
350
514
 
351
515
  # Offense count: 4
352
516
  # This cop supports safe autocorrection (--autocorrect).
@@ -357,7 +521,7 @@ Layout/SpaceAfterNot:
357
521
  - 'lib/apipie/extractor/collector.rb'
358
522
  - 'lib/apipie/extractor/writer.rb'
359
523
 
360
- # Offense count: 37
524
+ # Offense count: 35
361
525
  # This cop supports safe autocorrection (--autocorrect).
362
526
  # Configuration parameters: EnforcedStyle.
363
527
  # SupportedStyles: space, no_space
@@ -384,7 +548,7 @@ Layout/SpaceAroundMethodCallOperator:
384
548
  Exclude:
385
549
  - 'lib/apipie/validator.rb'
386
550
 
387
- # Offense count: 136
551
+ # Offense count: 142
388
552
  # This cop supports safe autocorrection (--autocorrect).
389
553
  # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
390
554
  # SupportedStylesForExponentOperator: space, no_space
@@ -397,11 +561,11 @@ Layout/SpaceAroundOperators:
397
561
  - 'spec/controllers/users_controller_spec.rb'
398
562
  - 'spec/dummy/app/controllers/pets_controller.rb'
399
563
  - 'spec/dummy/config/environments/test.rb'
400
- - 'spec/lib/extractor/writer_spec.rb'
564
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
401
565
  - 'spec/lib/swagger/rake_swagger_spec.rb'
402
566
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
403
567
 
404
- # Offense count: 38
568
+ # Offense count: 34
405
569
  # This cop supports safe autocorrection (--autocorrect).
406
570
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
407
571
  # SupportedStyles: space, no_space
@@ -418,8 +582,6 @@ Layout/SpaceBeforeBlockBraces:
418
582
  - 'lib/tasks/apipie.rake'
419
583
  - 'spec/controllers/users_controller_spec.rb'
420
584
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
421
- - 'spec/lib/method_description_spec.rb'
422
- - 'spec/lib/resource_description_spec.rb'
423
585
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
424
586
 
425
587
  # Offense count: 4
@@ -428,7 +590,7 @@ Layout/SpaceBeforeComma:
428
590
  Exclude:
429
591
  - 'spec/controllers/users_controller_spec.rb'
430
592
 
431
- # Offense count: 2
593
+ # Offense count: 4
432
594
  # This cop supports safe autocorrection (--autocorrect).
433
595
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
434
596
  # SupportedStyles: space, no_space, compact
@@ -436,42 +598,71 @@ Layout/SpaceBeforeComma:
436
598
  Layout/SpaceInsideArrayLiteralBrackets:
437
599
  Exclude:
438
600
  - 'lib/apipie/extractor/writer.rb'
601
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
439
602
  - 'spec/controllers/users_controller_spec.rb'
440
603
 
441
- # Offense count: 91
604
+ # Offense count: 81
442
605
  # This cop supports safe autocorrection (--autocorrect).
443
606
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
444
607
  # SupportedStyles: space, no_space
445
608
  # SupportedStylesForEmptyBraces: space, no_space
446
609
  Layout/SpaceInsideBlockBraces:
447
- Enabled: false
610
+ Exclude:
611
+ - 'lib/apipie/dsl_definition.rb'
612
+ - 'lib/apipie/extractor/writer.rb'
613
+ - 'lib/apipie/param_description.rb'
614
+ - 'lib/apipie/response_description.rb'
615
+ - 'lib/apipie/routes_formatter.rb'
616
+ - 'lib/apipie/swagger_generator.rb'
617
+ - 'lib/apipie/validator.rb'
618
+ - 'lib/tasks/apipie.rake'
619
+ - 'spec/controllers/users_controller_spec.rb'
620
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
621
+ - 'spec/lib/apipie/application_spec.rb'
622
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
623
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
624
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
625
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
626
+ - 'spec/spec_helper.rb'
627
+ - 'spec/support/rake.rb'
448
628
 
449
- # Offense count: 234
629
+ # Offense count: 222
450
630
  # This cop supports safe autocorrection (--autocorrect).
451
631
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
452
632
  # SupportedStyles: space, no_space, compact
453
633
  # SupportedStylesForEmptyBraces: space, no_space
454
634
  Layout/SpaceInsideHashLiteralBraces:
455
- Enabled: false
635
+ Exclude:
636
+ - 'lib/apipie/dsl_definition.rb'
637
+ - 'lib/apipie/extractor.rb'
638
+ - 'lib/apipie/extractor/collector.rb'
639
+ - 'lib/apipie/extractor/recorder.rb'
640
+ - 'lib/apipie/response_description.rb'
641
+ - 'lib/apipie/see_description.rb'
642
+ - 'lib/apipie/swagger_generator.rb'
643
+ - 'lib/tasks/apipie.rake'
644
+ - 'spec/controllers/users_controller_spec.rb'
645
+ - 'spec/dummy/app/controllers/pets_controller.rb'
646
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
647
+ - 'spec/dummy/app/controllers/users_controller.rb'
648
+ - 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
649
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
650
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
651
+ - 'spec/lib/apipie/method_description_spec.rb'
652
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
456
653
 
457
- # Offense count: 3
654
+ # Offense count: 5
458
655
  # This cop supports safe autocorrection (--autocorrect).
459
656
  # Configuration parameters: EnforcedStyle.
460
657
  # SupportedStyles: space, compact, no_space
461
658
  Layout/SpaceInsideParens:
462
659
  Exclude:
463
660
  - 'lib/apipie/middleware/checksum_in_headers.rb'
661
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
662
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
464
663
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
465
664
 
466
- # Offense count: 1
467
- # This cop supports safe autocorrection (--autocorrect).
468
- # Configuration parameters: EnforcedStyle.
469
- # SupportedStyles: space, no_space
470
- Layout/SpaceInsideStringInterpolation:
471
- Exclude:
472
- - 'spec/lib/swagger/swagger_dsl_spec.rb'
473
-
474
- # Offense count: 12
665
+ # Offense count: 15
475
666
  # This cop supports safe autocorrection (--autocorrect).
476
667
  # Configuration parameters: EnforcedStyle.
477
668
  # SupportedStyles: final_newline, final_blank_line
@@ -479,6 +670,7 @@ Layout/TrailingEmptyLines:
479
670
  Exclude:
480
671
  - 'Rakefile'
481
672
  - 'lib/apipie/extractor/collector.rb'
673
+ - 'lib/apipie/method_description/apis_service.rb'
482
674
  - 'lib/apipie/rspec/response_validation_helper.rb'
483
675
  - 'spec/controllers/concerns_controller_spec.rb'
484
676
  - 'spec/dummy/app/controllers/included_param_group_controller.rb'
@@ -488,9 +680,11 @@ Layout/TrailingEmptyLines:
488
680
  - 'spec/dummy/config/boot.rb'
489
681
  - 'spec/dummy/config/environments/development.rb'
490
682
  - 'spec/dummy/config/initializers/secret_token.rb'
491
- - 'spec/lib/param_group_spec.rb'
683
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
684
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
685
+ - 'spec/lib/apipie/param_group_spec.rb'
492
686
 
493
- # Offense count: 18
687
+ # Offense count: 16
494
688
  # This cop supports safe autocorrection (--autocorrect).
495
689
  # Configuration parameters: AllowInHeredoc.
496
690
  Layout/TrailingWhitespace:
@@ -499,9 +693,9 @@ Layout/TrailingWhitespace:
499
693
  - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
500
694
  - 'spec/dummy/app/controllers/application_controller.rb'
501
695
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
502
- - 'spec/lib/application_spec.rb'
503
696
 
504
697
  # Offense count: 10
698
+ # This cop supports unsafe autocorrection (--autocorrect-all).
505
699
  # Configuration parameters: AllowSafeAssignment.
506
700
  Lint/AssignmentInCondition:
507
701
  Exclude:
@@ -521,21 +715,23 @@ Lint/ConstantDefinitionInBlock:
521
715
  - 'lib/apipie/rspec/response_validation_helper.rb'
522
716
  - 'spec/controllers/users_controller_spec.rb'
523
717
 
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
718
  # Offense count: 9
534
719
  Lint/DuplicateMethods:
535
720
  Exclude:
536
721
  - 'lib/apipie/configuration.rb'
537
722
  - 'lib/apipie/method_description.rb'
538
723
 
724
+ # Offense count: 8
725
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
726
+ Lint/EmptyBlock:
727
+ Exclude:
728
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
729
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
730
+ - 'spec/lib/apipie/generator/swagger/param_description/description_spec.rb'
731
+ - 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
732
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
733
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
734
+
539
735
  # Offense count: 1
540
736
  # This cop supports safe autocorrection (--autocorrect).
541
737
  Lint/IdentityComparison:
@@ -549,30 +745,23 @@ Lint/MissingSuper:
549
745
  - 'lib/apipie/response_description_adapter.rb'
550
746
  - 'lib/apipie/validator.rb'
551
747
 
552
- # Offense count: 1
553
- Lint/NestedMethodDefinition:
554
- Exclude:
555
- - 'lib/apipie/swagger_generator.rb'
556
-
557
748
  # Offense count: 11
558
749
  # This cop supports unsafe autocorrection (--autocorrect-all).
559
750
  Lint/NonAtomicFileOperation:
560
751
  Exclude:
561
752
  - 'lib/tasks/apipie.rake'
562
- - 'spec/lib/extractor/writer_spec.rb'
753
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
563
754
 
564
755
  # Offense count: 1
565
- # This cop supports unsafe autocorrection (--autocorrect-all).
566
- Lint/NonDeterministicRequireOrder:
756
+ Lint/NonLocalExitFromIterator:
567
757
  Exclude:
568
- - 'spec/spec_helper.rb'
758
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
569
759
 
570
- # Offense count: 2
760
+ # Offense count: 1
571
761
  # This cop supports safe autocorrection (--autocorrect).
572
762
  Lint/ParenthesesAsGroupedExpression:
573
763
  Exclude:
574
764
  - 'lib/apipie/param_description.rb'
575
- - 'lib/apipie/swagger_generator.rb'
576
765
 
577
766
  # Offense count: 2
578
767
  # This cop supports safe autocorrection (--autocorrect).
@@ -595,11 +784,10 @@ Lint/ShadowingOuterLocalVariable:
595
784
  - 'lib/apipie/extractor/writer.rb'
596
785
  - 'lib/apipie/swagger_generator.rb'
597
786
 
598
- # Offense count: 5
787
+ # Offense count: 4
599
788
  # This cop supports safe autocorrection (--autocorrect).
600
789
  Lint/ToJSON:
601
790
  Exclude:
602
- - 'lib/apipie/error_description.rb'
603
791
  - 'lib/apipie/response_description_adapter.rb'
604
792
  - 'lib/apipie/see_description.rb'
605
793
  - 'lib/apipie/validator.rb'
@@ -612,16 +800,6 @@ Lint/UnderscorePrefixedVariableName:
612
800
  - 'lib/apipie/application.rb'
613
801
  - 'lib/apipie/dsl_definition.rb'
614
802
 
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
803
  # Offense count: 29
626
804
  # This cop supports safe autocorrection (--autocorrect).
627
805
  # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
@@ -635,20 +813,19 @@ Lint/UnusedBlockArgument:
635
813
  - 'lib/apipie/rspec/response_validation_helper.rb'
636
814
  - 'lib/apipie/swagger_generator.rb'
637
815
  - 'lib/tasks/apipie.rake'
638
- - 'spec/controllers/apipies_controller_spec.rb'
639
816
  - 'spec/controllers/users_controller_spec.rb'
640
- - 'spec/lib/extractor/extractor_spec.rb'
817
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
818
+ - 'spec/lib/apipie/extractor_spec.rb'
641
819
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
642
820
  - 'spec/spec_helper.rb'
643
821
 
644
- # Offense count: 29
822
+ # Offense count: 28
645
823
  # This cop supports safe autocorrection (--autocorrect).
646
824
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
647
825
  Lint/UnusedMethodArgument:
648
826
  Exclude:
649
827
  - 'lib/apipie/application.rb'
650
828
  - 'lib/apipie/dsl_definition.rb'
651
- - 'lib/apipie/resource_description.rb'
652
829
  - 'lib/apipie/response_description_adapter.rb'
653
830
  - 'lib/apipie/swagger_generator.rb'
654
831
  - 'lib/apipie/validator.rb'
@@ -676,51 +853,40 @@ Lint/Void:
676
853
  - 'spec/controllers/users_controller_spec.rb'
677
854
 
678
855
  # Offense count: 57
679
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
856
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
680
857
  Metrics/AbcSize:
681
- Max: 98
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
858
+ Max: 90
688
859
 
689
860
  # Offense count: 4
690
861
  # Configuration parameters: CountBlocks.
691
862
  Metrics/BlockNesting:
692
863
  Max: 4
693
864
 
694
- # Offense count: 12
695
- # Configuration parameters: CountComments, CountAsOne.
696
- Metrics/ClassLength:
697
- Max: 488
698
-
699
- # Offense count: 28
700
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
865
+ # Offense count: 25
866
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
701
867
  Metrics/CyclomaticComplexity:
702
868
  Max: 24
703
869
 
704
- # Offense count: 70
705
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
870
+ # Offense count: 71
871
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
706
872
  Metrics/MethodLength:
707
- Max: 63
873
+ Max: 58
708
874
 
709
875
  # Offense count: 1
710
876
  # Configuration parameters: CountComments, CountAsOne.
711
877
  Metrics/ModuleLength:
712
878
  Max: 119
713
879
 
714
- # Offense count: 4
880
+ # Offense count: 5
715
881
  # Configuration parameters: CountKeywordArgs.
716
882
  Metrics/ParameterLists:
717
883
  MaxOptionalParameters: 5
718
884
  Max: 6
719
885
 
720
- # Offense count: 25
721
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
886
+ # Offense count: 23
887
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
722
888
  Metrics/PerceivedComplexity:
723
- Max: 26
889
+ Max: 25
724
890
 
725
891
  # Offense count: 5
726
892
  Naming/AccessorMethodName:
@@ -745,29 +911,29 @@ Naming/HeredocDelimiterCase:
745
911
  Exclude:
746
912
  - 'spec/dummy/app/controllers/users_controller.rb'
747
913
 
748
- # Offense count: 6
914
+ # Offense count: 7
749
915
  # Configuration parameters: ForbiddenDelimiters.
750
- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
916
+ # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
751
917
  Naming/HeredocDelimiterNaming:
752
918
  Exclude:
753
919
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
754
920
  - 'spec/dummy/app/controllers/users_controller.rb'
755
921
 
756
- # Offense count: 2
922
+ # Offense count: 4
757
923
  # Configuration parameters: EnforcedStyleForLeadingUnderscores.
758
924
  # SupportedStylesForLeadingUnderscores: disallowed, required, optional
759
925
  Naming/MemoizedInstanceVariableName:
760
926
  Exclude:
761
927
  - 'lib/apipie/apipie_module.rb'
762
- - 'lib/apipie/application.rb'
928
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
929
+ - 'lib/apipie/generator/swagger/type_extractor.rb'
763
930
 
764
- # Offense count: 4
931
+ # Offense count: 3
765
932
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
766
- # AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to
933
+ # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
767
934
  Naming/MethodParameterName:
768
935
  Exclude:
769
936
  - 'lib/apipie/method_description.rb'
770
- - 'lib/apipie/swagger_generator.rb'
771
937
  - 'spec/controllers/users_controller_spec.rb'
772
938
 
773
939
  # Offense count: 7
@@ -786,17 +952,11 @@ Naming/PredicateName:
786
952
  # Offense count: 1
787
953
  # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
788
954
  # SupportedStyles: snake_case, normalcase, non_integer
789
- # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
955
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
790
956
  Naming/VariableNumber:
791
957
  Exclude:
792
958
  - 'spec/dummy/app/controllers/users_controller.rb'
793
959
 
794
- # Offense count: 1
795
- # This cop supports safe autocorrection (--autocorrect).
796
- Performance/BlockGivenWithExplicitBlock:
797
- Exclude:
798
- - 'lib/apipie/dsl_definition.rb'
799
-
800
960
  # Offense count: 4
801
961
  # Configuration parameters: MinSize.
802
962
  Performance/CollectionLiteralInLoop:
@@ -819,16 +979,23 @@ Performance/Detect:
819
979
  - 'spec/lib/swagger/rake_swagger_spec.rb'
820
980
 
821
981
  # Offense count: 1
822
- # This cop supports safe autocorrection (--autocorrect).
823
- Performance/RedundantBlockCall:
982
+ # This cop supports unsafe autocorrection (--autocorrect-all).
983
+ Performance/InefficientHashSearch:
824
984
  Exclude:
825
- - 'lib/apipie/extractor/recorder.rb'
985
+ - 'lib/apipie/generator/swagger/warning.rb'
826
986
 
827
987
  # Offense count: 1
988
+ # This cop supports safe autocorrection (--autocorrect).
989
+ Performance/RedundantBlockCall:
990
+ Exclude:
991
+ - 'lib/apipie/extractor/recorder.rb'
992
+
993
+ # Offense count: 2
828
994
  # This cop supports unsafe autocorrection (--autocorrect-all).
829
995
  # Configuration parameters: MaxKeyValuePairs.
830
996
  Performance/RedundantMerge:
831
997
  Exclude:
998
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
832
999
  - 'lib/apipie/middleware/checksum_in_headers.rb'
833
1000
 
834
1001
  # Offense count: 8
@@ -845,7 +1012,7 @@ Performance/StringIdentifierArgument:
845
1012
  Exclude:
846
1013
  - 'lib/apipie/extractor/writer.rb'
847
1014
  - 'spec/controllers/users_controller_spec.rb'
848
- - 'spec/lib/method_description_spec.rb'
1015
+ - 'spec/lib/apipie/method_description_spec.rb'
849
1016
 
850
1017
  # Offense count: 2
851
1018
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -860,6 +1027,7 @@ Performance/StringReplacement:
860
1027
  - 'app/controllers/apipie/apipies_controller.rb'
861
1028
  - 'lib/apipie/application.rb'
862
1029
  - 'lib/apipie/extractor/writer.rb'
1030
+ - 'lib/apipie/generator/swagger/operation_id.rb'
863
1031
  - 'lib/apipie/static_dispatcher.rb'
864
1032
  - 'lib/apipie/swagger_generator.rb'
865
1033
  - 'lib/tasks/apipie.rake'
@@ -877,16 +1045,19 @@ RSpec/Be:
877
1045
  - 'spec/controllers/concerns_controller_spec.rb'
878
1046
  - 'spec/controllers/users_controller_spec.rb'
879
1047
 
880
- # Offense count: 51
881
- # This cop supports safe autocorrection (--autocorrect).
1048
+ # Offense count: 56
1049
+ # This cop supports unsafe autocorrection (--autocorrect-all).
882
1050
  RSpec/BeEq:
883
1051
  Exclude:
884
- - 'spec/controllers/apipies_controller_spec.rb'
885
1052
  - 'spec/controllers/users_controller_spec.rb'
886
- - 'spec/lib/method_description_spec.rb'
887
- - 'spec/lib/param_description_spec.rb'
888
- - 'spec/lib/param_group_spec.rb'
889
- - 'spec/lib/resource_description_spec.rb'
1053
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1054
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1055
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1056
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1057
+ - 'spec/lib/apipie/method_description_spec.rb'
1058
+ - 'spec/lib/apipie/param_description_spec.rb'
1059
+ - 'spec/lib/apipie/param_group_spec.rb'
1060
+ - 'spec/lib/apipie/resource_description_spec.rb'
890
1061
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
891
1062
  - 'spec/lib/validators/array_validator_spec.rb'
892
1063
 
@@ -895,18 +1066,22 @@ RSpec/BeforeAfterAll:
895
1066
  Exclude:
896
1067
  - 'spec/controllers/users_controller_spec.rb'
897
1068
 
898
- # Offense count: 35
1069
+ # Offense count: 55
899
1070
  # Configuration parameters: Prefixes, AllowedPatterns.
900
1071
  # Prefixes: when, with, without
901
1072
  RSpec/ContextWording:
902
1073
  Exclude:
903
1074
  - 'spec/controllers/api/v1/architectures_controller_spec.rb'
904
- - 'spec/controllers/apipies_controller_spec.rb'
905
1075
  - 'spec/controllers/users_controller_spec.rb'
906
- - 'spec/lib/file_handler_spec.rb'
907
- - 'spec/lib/param_description_spec.rb'
908
- - 'spec/lib/param_group_spec.rb'
909
- - 'spec/lib/validator_spec.rb'
1076
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1077
+ - 'spec/lib/apipie/file_handler_spec.rb'
1078
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1079
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1080
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1081
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1082
+ - 'spec/lib/apipie/param_description_spec.rb'
1083
+ - 'spec/lib/apipie/param_group_spec.rb'
1084
+ - 'spec/lib/apipie/validator_spec.rb'
910
1085
  - 'spec/lib/validators/array_validator_spec.rb'
911
1086
  - 'spec/support/rake.rb'
912
1087
 
@@ -914,12 +1089,12 @@ RSpec/ContextWording:
914
1089
  # Configuration parameters: IgnoredMetadata.
915
1090
  RSpec/DescribeClass:
916
1091
  Exclude:
917
- - 'spec/lib/param_group_spec.rb'
1092
+ - 'spec/lib/apipie/param_group_spec.rb'
918
1093
  - 'spec/lib/rake_spec.rb'
919
1094
  - 'spec/lib/swagger/rake_swagger_spec.rb'
920
1095
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
921
1096
 
922
- # Offense count: 94
1097
+ # Offense count: 96
923
1098
  # This cop supports unsafe autocorrection (--autocorrect-all).
924
1099
  # Configuration parameters: SkipBlocks, EnforcedStyle.
925
1100
  # SupportedStyles: described_class, explicit
@@ -929,23 +1104,30 @@ RSpec/DescribedClass:
929
1104
  - 'spec/controllers/api/v2/architectures_controller_spec.rb'
930
1105
  - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
931
1106
  - 'spec/controllers/included_param_group_controller_spec.rb'
932
- - 'spec/controllers/memes_controller_spec.rb'
933
1107
  - 'spec/controllers/users_controller_spec.rb'
934
- - 'spec/lib/extractor/extractor_spec.rb'
935
- - 'spec/lib/extractor/middleware_spec.rb'
936
- - 'spec/lib/extractor/writer_spec.rb'
937
- - 'spec/lib/file_handler_spec.rb'
938
- - 'spec/lib/method_description_spec.rb'
939
- - 'spec/lib/param_description_spec.rb'
940
- - 'spec/lib/resource_description_spec.rb'
1108
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
1109
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1110
+ - 'spec/lib/apipie/extractor_spec.rb'
1111
+ - 'spec/lib/apipie/file_handler_spec.rb'
1112
+ - 'spec/lib/apipie/method_description_spec.rb'
1113
+ - 'spec/lib/apipie/param_description_spec.rb'
1114
+ - 'spec/lib/apipie/resource_description_spec.rb'
941
1115
  - 'spec/lib/validators/array_validator_spec.rb'
1116
+ - 'spec/test_engine/memes_controller_spec.rb'
942
1117
 
943
- # Offense count: 10
1118
+ # Offense count: 1
1119
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1120
+ RSpec/EmptyExampleGroup:
1121
+ Exclude:
1122
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1123
+
1124
+ # Offense count: 11
944
1125
  # This cop supports safe autocorrection (--autocorrect).
945
1126
  # Configuration parameters: AllowConsecutiveOneLiners.
946
1127
  RSpec/EmptyLineAfterExample:
947
1128
  Exclude:
948
- - 'spec/controllers/apipies_controller_spec.rb'
1129
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1130
+ - 'spec/lib/apipie/generator/swagger/context_spec.rb'
949
1131
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
950
1132
 
951
1133
  # Offense count: 6
@@ -953,7 +1135,7 @@ RSpec/EmptyLineAfterExample:
953
1135
  RSpec/EmptyLineAfterExampleGroup:
954
1136
  Exclude:
955
1137
  - 'spec/controllers/users_controller_spec.rb'
956
- - 'spec/lib/param_description_spec.rb'
1138
+ - 'spec/lib/apipie/param_description_spec.rb'
957
1139
 
958
1140
  # Offense count: 1
959
1141
  # This cop supports safe autocorrection (--autocorrect).
@@ -966,19 +1148,36 @@ RSpec/EmptyLineAfterFinalLet:
966
1148
  # Configuration parameters: AllowConsecutiveOneLiners.
967
1149
  RSpec/EmptyLineAfterHook:
968
1150
  Exclude:
969
- - 'spec/controllers/apipies_controller_spec.rb'
970
- - 'spec/lib/application_spec.rb'
1151
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1152
+ - 'spec/lib/apipie/application_spec.rb'
971
1153
 
972
1154
  # Offense count: 48
973
1155
  # Configuration parameters: CountAsOne.
974
1156
  RSpec/ExampleLength:
975
- Max: 79
1157
+ Max: 85
976
1158
 
977
1159
  # Offense count: 165
978
1160
  # This cop supports safe autocorrection (--autocorrect).
979
- # Configuration parameters: CustomTransform, IgnoredWords.
1161
+ # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
1162
+ # DisallowedExamples: works
980
1163
  RSpec/ExampleWording:
981
- Enabled: false
1164
+ Exclude:
1165
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
1166
+ - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1167
+ - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1168
+ - 'spec/controllers/concerns_controller_spec.rb'
1169
+ - 'spec/controllers/extended_controller_spec.rb'
1170
+ - 'spec/controllers/included_param_group_controller_spec.rb'
1171
+ - 'spec/controllers/users_controller_spec.rb'
1172
+ - 'spec/lib/apipie/application_spec.rb'
1173
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1174
+ - 'spec/lib/apipie/method_description_spec.rb'
1175
+ - 'spec/lib/apipie/param_description_spec.rb'
1176
+ - 'spec/lib/apipie/param_group_spec.rb'
1177
+ - 'spec/lib/apipie/resource_description_spec.rb'
1178
+ - 'spec/lib/apipie/validator_spec.rb'
1179
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1180
+ - 'spec/test_engine/memes_controller_spec.rb'
982
1181
 
983
1182
  # Offense count: 1
984
1183
  # This cop supports safe autocorrection (--autocorrect).
@@ -989,25 +1188,7 @@ RSpec/ExcessiveDocstringSpacing:
989
1188
  # Offense count: 1
990
1189
  RSpec/ExpectInHook:
991
1190
  Exclude:
992
- - 'spec/lib/extractor/writer_spec.rb'
993
-
994
- # Offense count: 12
995
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
996
- # Include: **/*_spec*rb*, **/spec/**/*
997
- RSpec/FilePath:
998
- Exclude:
999
- - 'spec/controllers/apipies_controller_spec.rb'
1000
- - 'spec/controllers/memes_controller_spec.rb'
1001
- - 'spec/lib/application_spec.rb'
1002
- - 'spec/lib/extractor/extractor_spec.rb'
1003
- - 'spec/lib/extractor/middleware_spec.rb'
1004
- - 'spec/lib/extractor/writer_spec.rb'
1005
- - 'spec/lib/file_handler_spec.rb'
1006
- - 'spec/lib/method_description_spec.rb'
1007
- - 'spec/lib/param_description_spec.rb'
1008
- - 'spec/lib/resource_description_spec.rb'
1009
- - 'spec/lib/swagger/response_validation_spec.rb'
1010
- - 'spec/lib/validator_spec.rb'
1191
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1011
1192
 
1012
1193
  # Offense count: 8
1013
1194
  # This cop supports safe autocorrection (--autocorrect).
@@ -1015,40 +1196,47 @@ RSpec/FilePath:
1015
1196
  # SupportedStyles: implicit, each, example
1016
1197
  RSpec/HookArgument:
1017
1198
  Exclude:
1018
- - 'spec/lib/extractor/writer_spec.rb'
1019
- - 'spec/lib/method_description_spec.rb'
1020
- - 'spec/lib/resource_description_spec.rb'
1021
- - 'spec/lib/swagger/response_validation_spec.rb'
1199
+ - 'spec/controllers/pets_controller_spec.rb'
1200
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1201
+ - 'spec/lib/apipie/method_description_spec.rb'
1202
+ - 'spec/lib/apipie/resource_description_spec.rb'
1022
1203
 
1023
1204
  # Offense count: 5
1024
1205
  # This cop supports safe autocorrection (--autocorrect).
1025
1206
  RSpec/HooksBeforeExamples:
1026
1207
  Exclude:
1027
1208
  - 'spec/controllers/users_controller_spec.rb'
1028
- - 'spec/lib/application_spec.rb'
1029
- - 'spec/lib/extractor/writer_spec.rb'
1030
- - 'spec/lib/param_description_spec.rb'
1209
+ - 'spec/lib/apipie/application_spec.rb'
1210
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1211
+ - 'spec/lib/apipie/param_description_spec.rb'
1031
1212
 
1032
1213
  # Offense count: 2
1033
1214
  # This cop supports safe autocorrection (--autocorrect).
1034
1215
  # Configuration parameters: EnforcedStyle.
1035
- # SupportedStyles: single_line_only, single_statement_only, disallow
1216
+ # SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
1036
1217
  RSpec/ImplicitSubject:
1037
1218
  Exclude:
1038
- - 'spec/lib/application_spec.rb'
1219
+ - 'spec/lib/apipie/application_spec.rb'
1039
1220
 
1040
1221
  # Offense count: 30
1041
1222
  # Configuration parameters: AssignmentOnly.
1042
1223
  RSpec/InstanceVariable:
1043
1224
  Exclude:
1044
- - 'spec/controllers/apipies_controller_spec.rb'
1045
- - 'spec/lib/method_description_spec.rb'
1046
- - 'spec/lib/resource_description_spec.rb'
1225
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1226
+ - 'spec/lib/apipie/method_description_spec.rb'
1227
+ - 'spec/lib/apipie/resource_description_spec.rb'
1047
1228
 
1048
- # Offense count: 1
1229
+ # Offense count: 9
1049
1230
  # This cop supports safe autocorrection (--autocorrect).
1050
1231
  RSpec/LeadingSubject:
1051
1232
  Exclude:
1233
+ - 'spec/lib/apipie/generator/swagger/context_spec.rb'
1234
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1235
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1236
+ - 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
1237
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1238
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1239
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1052
1240
  - 'spec/support/rake.rb'
1053
1241
 
1054
1242
  # Offense count: 1
@@ -1062,41 +1250,49 @@ RSpec/LeakyConstantDeclaration:
1062
1250
  RSpec/MessageSpies:
1063
1251
  EnforcedStyle: receive
1064
1252
 
1065
- # Offense count: 95
1253
+ # Offense count: 98
1066
1254
  RSpec/MultipleExpectations:
1067
1255
  Max: 19
1068
1256
 
1069
- # Offense count: 12
1257
+ # Offense count: 64
1070
1258
  # Configuration parameters: AllowSubject.
1071
1259
  RSpec/MultipleMemoizedHelpers:
1072
- Max: 6
1260
+ Max: 15
1073
1261
 
1074
- # Offense count: 42
1075
- # Configuration parameters: IgnoreSharedExamples.
1262
+ # Offense count: 64
1263
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
1264
+ # SupportedStyles: always, named_only
1076
1265
  RSpec/NamedSubject:
1077
1266
  Exclude:
1078
1267
  - 'spec/controllers/api/v1/architectures_controller_spec.rb'
1079
1268
  - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1080
1269
  - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1081
1270
  - 'spec/controllers/users_controller_spec.rb'
1082
- - 'spec/lib/param_description_spec.rb'
1271
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1272
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1273
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1274
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1275
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
1276
+ - 'spec/lib/apipie/generator/swagger/warning_writer_spec.rb'
1277
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1278
+ - 'spec/lib/apipie/param_description/deprecation_spec.rb'
1279
+ - 'spec/lib/apipie/param_description_spec.rb'
1083
1280
  - 'spec/lib/rake_spec.rb'
1084
1281
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1085
1282
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1086
1283
 
1087
- # Offense count: 31
1284
+ # Offense count: 51
1088
1285
  # Configuration parameters: AllowedGroups.
1089
1286
  RSpec/NestedGroups:
1090
1287
  Max: 6
1091
1288
 
1092
- # Offense count: 21
1289
+ # Offense count: 2
1290
+ # Configuration parameters: AllowedPatterns.
1291
+ # AllowedPatterns: ^expect_, ^assert_
1093
1292
  RSpec/NoExpectationExample:
1094
1293
  Exclude:
1095
- - 'spec/controllers/apipies_controller_spec.rb'
1096
- - 'spec/controllers/concerns_controller_spec.rb'
1097
- - 'spec/controllers/memes_controller_spec.rb'
1098
1294
  - 'spec/controllers/users_controller_spec.rb'
1099
- - 'spec/lib/swagger/rake_swagger_spec.rb'
1295
+ - 'spec/test_engine/memes_controller_spec.rb'
1100
1296
 
1101
1297
  # Offense count: 11
1102
1298
  # This cop supports safe autocorrection (--autocorrect).
@@ -1104,8 +1300,18 @@ RSpec/NoExpectationExample:
1104
1300
  # SupportedStyles: not_to, to_not
1105
1301
  RSpec/NotToNot:
1106
1302
  Exclude:
1107
- - 'spec/lib/file_handler_spec.rb'
1108
- - 'spec/lib/param_description_spec.rb'
1303
+ - 'spec/lib/apipie/file_handler_spec.rb'
1304
+ - 'spec/lib/apipie/param_description_spec.rb'
1305
+
1306
+ # Offense count: 1
1307
+ RSpec/OverwritingSetup:
1308
+ Exclude:
1309
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1310
+
1311
+ # Offense count: 1
1312
+ RSpec/PendingWithoutReason:
1313
+ Exclude:
1314
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1109
1315
 
1110
1316
  # Offense count: 6
1111
1317
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -1113,39 +1319,51 @@ RSpec/NotToNot:
1113
1319
  # SupportedStyles: inflected, explicit
1114
1320
  RSpec/PredicateMatcher:
1115
1321
  Exclude:
1116
- - 'spec/lib/file_handler_spec.rb'
1322
+ - 'spec/lib/apipie/file_handler_spec.rb'
1117
1323
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1118
1324
 
1325
+ # Offense count: 1
1326
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1327
+ # Configuration parameters: Inferences.
1328
+ RSpec/Rails/InferredSpecType:
1329
+ Exclude:
1330
+ - 'spec/controllers/pets_controller_spec.rb'
1331
+
1119
1332
  # Offense count: 4
1120
1333
  RSpec/RepeatedExample:
1121
1334
  Exclude:
1122
- - 'spec/lib/method_description_spec.rb'
1123
- - 'spec/lib/resource_description_spec.rb'
1335
+ - 'spec/lib/apipie/method_description_spec.rb'
1336
+ - 'spec/lib/apipie/resource_description_spec.rb'
1337
+
1338
+ # Offense count: 2
1339
+ RSpec/RepeatedExampleGroupBody:
1340
+ Exclude:
1341
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
1124
1342
 
1125
1343
  # Offense count: 4
1126
1344
  RSpec/RepeatedExampleGroupDescription:
1127
1345
  Exclude:
1128
- - 'spec/controllers/apipies_controller_spec.rb'
1129
- - 'spec/lib/application_spec.rb'
1346
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1347
+ - 'spec/lib/apipie/application_spec.rb'
1130
1348
 
1131
1349
  # Offense count: 2
1132
1350
  RSpec/StubbedMock:
1133
1351
  Exclude:
1134
- - 'spec/lib/extractor/writer_spec.rb'
1135
- - 'spec/lib/param_description_spec.rb'
1352
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1353
+ - 'spec/lib/apipie/param_description_spec.rb'
1136
1354
 
1137
1355
  # Offense count: 5
1138
1356
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
1139
1357
  RSpec/VerifiedDoubles:
1140
1358
  Exclude:
1141
- - 'spec/controllers/apipies_controller_spec.rb'
1142
- - 'spec/lib/extractor/writer_spec.rb'
1359
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1360
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1143
1361
  - 'spec/lib/validators/array_validator_spec.rb'
1144
1362
 
1145
1363
  # Offense count: 1
1146
1364
  RSpec/VoidExpect:
1147
1365
  Exclude:
1148
- - 'spec/lib/extractor/writer_spec.rb'
1366
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1149
1367
 
1150
1368
  # Offense count: 4
1151
1369
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -1163,7 +1381,7 @@ Rails/Delegate:
1163
1381
  Exclude:
1164
1382
  - 'lib/apipie/response_description_adapter.rb'
1165
1383
 
1166
- # Offense count: 14
1384
+ # Offense count: 24
1167
1385
  # Configuration parameters: EnforcedStyle.
1168
1386
  # SupportedStyles: slashes, arguments
1169
1387
  Rails/FilePath:
@@ -1171,10 +1389,13 @@ Rails/FilePath:
1171
1389
  - 'lib/apipie/configuration.rb'
1172
1390
  - 'lib/apipie/dsl_definition.rb'
1173
1391
  - 'lib/tasks/apipie.rake'
1174
- - 'spec/controllers/apipies_controller_spec.rb'
1175
1392
  - 'spec/dummy/config/initializers/apipie.rb'
1176
- - 'spec/lib/application_spec.rb'
1177
- - 'spec/lib/extractor/writer_spec.rb'
1393
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1394
+ - 'spec/lib/apipie/application_spec.rb'
1395
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1396
+ - 'spec/lib/rake_spec.rb'
1397
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1398
+ - 'spec/spec_helper.rb'
1178
1399
 
1179
1400
  # Offense count: 5
1180
1401
  # This cop supports safe autocorrection (--autocorrect).
@@ -1192,16 +1413,17 @@ Rails/IndexBy:
1192
1413
  Exclude:
1193
1414
  - 'lib/apipie/swagger_generator.rb'
1194
1415
 
1195
- # Offense count: 5
1416
+ # Offense count: 6
1196
1417
  # This cop supports unsafe autocorrection (--autocorrect-all).
1197
1418
  Rails/NegateInclude:
1198
1419
  Exclude:
1199
1420
  - 'lib/apipie/extractor/collector.rb'
1200
1421
  - 'lib/apipie/extractor/writer.rb'
1422
+ - 'lib/apipie/generator/swagger/warning.rb'
1201
1423
  - 'lib/apipie/swagger_generator.rb'
1202
1424
  - 'spec/spec_helper.rb'
1203
1425
 
1204
- # Offense count: 9
1426
+ # Offense count: 8
1205
1427
  # This cop supports unsafe autocorrection (--autocorrect-all).
1206
1428
  # Configuration parameters: Include.
1207
1429
  # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
@@ -1217,12 +1439,13 @@ Rails/OutputSafety:
1217
1439
  Exclude:
1218
1440
  - 'lib/apipie/helpers.rb'
1219
1441
 
1220
- # Offense count: 5
1221
- # This cop supports safe autocorrection (--autocorrect).
1442
+ # Offense count: 6
1443
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1222
1444
  Rails/Pluck:
1223
1445
  Exclude:
1224
- - 'spec/lib/method_description_spec.rb'
1225
- - 'spec/lib/resource_description_spec.rb'
1446
+ - 'lib/apipie/extractor/writer.rb'
1447
+ - 'spec/lib/apipie/method_description_spec.rb'
1448
+ - 'spec/lib/apipie/resource_description_spec.rb'
1226
1449
 
1227
1450
  # Offense count: 5
1228
1451
  # This cop supports safe autocorrection (--autocorrect).
@@ -1243,17 +1466,16 @@ Rails/RakeEnvironment:
1243
1466
  - 'lib/tasks/apipie.rake'
1244
1467
 
1245
1468
  # Offense count: 18
1246
- # This cop supports safe autocorrection (--autocorrect).
1247
- # Configuration parameters: SafeAutocorrect.
1469
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1248
1470
  Rails/RootPathnameMethods:
1249
1471
  Exclude:
1250
1472
  - 'lib/apipie/configuration.rb'
1251
1473
  - 'lib/apipie/dsl_definition.rb'
1252
1474
  - 'lib/tasks/apipie.rake'
1253
- - 'spec/controllers/apipies_controller_spec.rb'
1254
1475
  - 'spec/dummy/config/initializers/apipie.rb'
1255
- - 'spec/lib/application_spec.rb'
1256
- - 'spec/lib/extractor/writer_spec.rb'
1476
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1477
+ - 'spec/lib/apipie/application_spec.rb'
1478
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1257
1479
  - 'spec/lib/rake_spec.rb'
1258
1480
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1259
1481
 
@@ -1280,19 +1502,6 @@ Style/AccessorGrouping:
1280
1502
  - 'lib/apipie/param_description.rb'
1281
1503
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1282
1504
 
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
1505
  # Offense count: 1
1297
1506
  # This cop supports unsafe autocorrection (--autocorrect-all).
1298
1507
  # Configuration parameters: EnforcedStyle.
@@ -1303,7 +1512,7 @@ Style/AndOr:
1303
1512
 
1304
1513
  # Offense count: 17
1305
1514
  # This cop supports safe autocorrection (--autocorrect).
1306
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
1515
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
1307
1516
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
1308
1517
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
1309
1518
  # FunctionalMethods: let, let!, subject, watch
@@ -1313,7 +1522,7 @@ Style/BlockDelimiters:
1313
1522
  - 'lib/tasks/apipie.rake'
1314
1523
  - 'spec/controllers/users_controller_spec.rb'
1315
1524
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1316
- - 'spec/lib/extractor/writer_spec.rb'
1525
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1317
1526
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1318
1527
 
1319
1528
  # Offense count: 1
@@ -1323,16 +1532,7 @@ Style/CaseEquality:
1323
1532
  Exclude:
1324
1533
  - 'lib/apipie/validator.rb'
1325
1534
 
1326
- # Offense count: 5
1327
- # This cop supports unsafe autocorrection (--autocorrect-all).
1328
- Style/CaseLikeIf:
1329
- Exclude:
1330
- - 'lib/apipie/dsl_definition.rb'
1331
- - 'lib/apipie/extractor/writer.rb'
1332
- - 'lib/apipie/response_description_adapter.rb'
1333
- - 'spec/controllers/users_controller_spec.rb'
1334
-
1335
- # Offense count: 11
1535
+ # Offense count: 28
1336
1536
  # This cop supports unsafe autocorrection (--autocorrect-all).
1337
1537
  # Configuration parameters: EnforcedStyle.
1338
1538
  # SupportedStyles: nested, compact
@@ -1340,6 +1540,23 @@ Style/ClassAndModuleChildren:
1340
1540
  Exclude:
1341
1541
  - 'lib/apipie/core_ext/route.rb'
1342
1542
  - 'lib/apipie/extractor.rb'
1543
+ - 'lib/apipie/generator/generator.rb'
1544
+ - 'lib/apipie/generator/swagger/context.rb'
1545
+ - 'lib/apipie/generator/swagger/operation_id.rb'
1546
+ - 'lib/apipie/generator/swagger/param_description.rb'
1547
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
1548
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
1549
+ - 'lib/apipie/generator/swagger/param_description/description.rb'
1550
+ - 'lib/apipie/generator/swagger/param_description/in.rb'
1551
+ - 'lib/apipie/generator/swagger/param_description/name.rb'
1552
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
1553
+ - 'lib/apipie/generator/swagger/swagger.rb'
1554
+ - 'lib/apipie/generator/swagger/type.rb'
1555
+ - 'lib/apipie/generator/swagger/type_extractor.rb'
1556
+ - 'lib/apipie/generator/swagger/warning.rb'
1557
+ - 'lib/apipie/generator/swagger/warning_writer.rb'
1558
+ - 'lib/apipie/method_description/api.rb'
1559
+ - 'lib/apipie/method_description/apis_service.rb'
1343
1560
  - 'lib/apipie/rspec/response_validation_helper.rb'
1344
1561
  - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
1345
1562
  - 'spec/dummy/config/initializers/apipie.rb'
@@ -1355,14 +1572,13 @@ Style/ClassCheck:
1355
1572
  - 'lib/apipie/errors.rb'
1356
1573
  - 'lib/apipie/validator.rb'
1357
1574
 
1358
- # Offense count: 4
1575
+ # Offense count: 2
1359
1576
  # This cop supports safe autocorrection (--autocorrect).
1360
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
1577
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
1361
1578
  # AllowedMethods: ==, equal?, eql?
1362
1579
  Style/ClassEqualityComparison:
1363
1580
  Exclude:
1364
1581
  - 'lib/apipie/application.rb'
1365
- - 'lib/apipie/swagger_generator.rb'
1366
1582
  - 'lib/apipie/validator.rb'
1367
1583
 
1368
1584
  # Offense count: 1
@@ -1388,8 +1604,8 @@ Style/ColonMethodCall:
1388
1604
  Style/CommentAnnotation:
1389
1605
  Exclude:
1390
1606
  - 'lib/apipie/apipie_module.rb'
1607
+ - 'spec/controllers/pets_controller_spec.rb'
1391
1608
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1392
- - 'spec/lib/swagger/response_validation_spec.rb'
1393
1609
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1394
1610
 
1395
1611
  # Offense count: 17
@@ -1399,7 +1615,7 @@ Style/CommentedKeyword:
1399
1615
  - 'lib/apipie/dsl_definition.rb'
1400
1616
  - 'lib/apipie/extractor/recorder.rb'
1401
1617
 
1402
- # Offense count: 12
1618
+ # Offense count: 11
1403
1619
  # This cop supports safe autocorrection (--autocorrect).
1404
1620
  # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
1405
1621
  # SupportedStyles: assign_to_condition, assign_inside_condition
@@ -1413,11 +1629,6 @@ Style/ConditionalAssignment:
1413
1629
  - 'lib/apipie/swagger_generator.rb'
1414
1630
  - 'lib/tasks/apipie.rake'
1415
1631
 
1416
- # Offense count: 61
1417
- # Configuration parameters: AllowedConstants.
1418
- Style/Documentation:
1419
- Enabled: false
1420
-
1421
1632
  # Offense count: 1
1422
1633
  # This cop supports unsafe autocorrection (--autocorrect-all).
1423
1634
  # Configuration parameters: EnforcedStyle.
@@ -1492,7 +1703,7 @@ Style/FileWrite:
1492
1703
  Exclude:
1493
1704
  - 'lib/tasks/apipie.rake'
1494
1705
 
1495
- # Offense count: 7
1706
+ # Offense count: 6
1496
1707
  # This cop supports unsafe autocorrection (--autocorrect-all).
1497
1708
  # Configuration parameters: EnforcedStyle.
1498
1709
  # SupportedStyles: each, for
@@ -1501,23 +1712,173 @@ Style/For:
1501
1712
  - 'lib/apipie/response_description_adapter.rb'
1502
1713
  - 'lib/apipie/swagger_generator.rb'
1503
1714
 
1504
- # Offense count: 109
1715
+ # Offense count: 8
1716
+ # This cop supports safe autocorrection (--autocorrect).
1717
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
1718
+ # SupportedStyles: annotated, template, unannotated
1719
+ # AllowedMethods: redirect
1720
+ Style/FormatStringToken:
1721
+ EnforcedStyle: template
1722
+
1723
+ # Offense count: 140
1505
1724
  # This cop supports unsafe autocorrection (--autocorrect-all).
1506
1725
  # Configuration parameters: EnforcedStyle.
1507
1726
  # SupportedStyles: always, always_true, never
1508
1727
  Style/FrozenStringLiteralComment:
1509
- Enabled: false
1728
+ Exclude:
1729
+ - 'Rakefile'
1730
+ - 'apipie-rails.gemspec'
1731
+ - 'app/controllers/apipie/apipies_controller.rb'
1732
+ - 'app/helpers/apipie_helper.rb'
1733
+ - 'lib/apipie-rails.rb'
1734
+ - 'lib/apipie/apipie_module.rb'
1735
+ - 'lib/apipie/application.rb'
1736
+ - 'lib/apipie/configuration.rb'
1737
+ - 'lib/apipie/core_ext/route.rb'
1738
+ - 'lib/apipie/dsl_definition.rb'
1739
+ - 'lib/apipie/error_description.rb'
1740
+ - 'lib/apipie/errors.rb'
1741
+ - 'lib/apipie/extractor.rb'
1742
+ - 'lib/apipie/extractor/collector.rb'
1743
+ - 'lib/apipie/extractor/recorder.rb'
1744
+ - 'lib/apipie/extractor/writer.rb'
1745
+ - 'lib/apipie/generator/generator.rb'
1746
+ - 'lib/apipie/generator/swagger/context.rb'
1747
+ - 'lib/apipie/generator/swagger/operation_id.rb'
1748
+ - 'lib/apipie/generator/swagger/param_description.rb'
1749
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
1750
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
1751
+ - 'lib/apipie/generator/swagger/param_description/description.rb'
1752
+ - 'lib/apipie/generator/swagger/param_description/in.rb'
1753
+ - 'lib/apipie/generator/swagger/param_description/name.rb'
1754
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
1755
+ - 'lib/apipie/generator/swagger/swagger.rb'
1756
+ - 'lib/apipie/generator/swagger/type.rb'
1757
+ - 'lib/apipie/generator/swagger/type_extractor.rb'
1758
+ - 'lib/apipie/generator/swagger/warning.rb'
1759
+ - 'lib/apipie/generator/swagger/warning_writer.rb'
1760
+ - 'lib/apipie/helpers.rb'
1761
+ - 'lib/apipie/markup.rb'
1762
+ - 'lib/apipie/method_description.rb'
1763
+ - 'lib/apipie/method_description/api.rb'
1764
+ - 'lib/apipie/method_description/apis_service.rb'
1765
+ - 'lib/apipie/middleware/checksum_in_headers.rb'
1766
+ - 'lib/apipie/param_description.rb'
1767
+ - 'lib/apipie/railtie.rb'
1768
+ - 'lib/apipie/resource_description.rb'
1769
+ - 'lib/apipie/response_description.rb'
1770
+ - 'lib/apipie/response_description_adapter.rb'
1771
+ - 'lib/apipie/routes_formatter.rb'
1772
+ - 'lib/apipie/routing.rb'
1773
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1774
+ - 'lib/apipie/see_description.rb'
1775
+ - 'lib/apipie/static_dispatcher.rb'
1776
+ - 'lib/apipie/swagger_generator.rb'
1777
+ - 'lib/apipie/tag_list_description.rb'
1778
+ - 'lib/apipie/validator.rb'
1779
+ - 'lib/apipie/version.rb'
1780
+ - 'lib/generators/apipie/install/install_generator.rb'
1781
+ - 'lib/generators/apipie/views_generator.rb'
1782
+ - 'lib/tasks/apipie.rake'
1783
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
1784
+ - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1785
+ - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1786
+ - 'spec/controllers/concerns_controller_spec.rb'
1787
+ - 'spec/controllers/extended_controller_spec.rb'
1788
+ - 'spec/controllers/included_param_group_controller_spec.rb'
1789
+ - 'spec/controllers/pets_controller_spec.rb'
1790
+ - 'spec/controllers/users_controller_spec.rb'
1791
+ - 'spec/dummy/Rakefile'
1792
+ - 'spec/dummy/app/controllers/api/base_controller.rb'
1793
+ - 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
1794
+ - 'spec/dummy/app/controllers/api/v1/base_controller.rb'
1795
+ - 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
1796
+ - 'spec/dummy/app/controllers/api/v2/base_controller.rb'
1797
+ - 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
1798
+ - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
1799
+ - 'spec/dummy/app/controllers/application_controller.rb'
1800
+ - 'spec/dummy/app/controllers/concerns_controller.rb'
1801
+ - 'spec/dummy/app/controllers/extended_controller.rb'
1802
+ - 'spec/dummy/app/controllers/extending_concern.rb'
1803
+ - 'spec/dummy/app/controllers/files_controller.rb'
1804
+ - 'spec/dummy/app/controllers/included_param_group_controller.rb'
1805
+ - 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
1806
+ - 'spec/dummy/app/controllers/pets_controller.rb'
1807
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1808
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1809
+ - 'spec/dummy/app/controllers/sample_controller.rb'
1810
+ - 'spec/dummy/app/controllers/tagged_cats_controller.rb'
1811
+ - 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
1812
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
1813
+ - 'spec/dummy/app/controllers/users_controller.rb'
1814
+ - 'spec/dummy/app/helpers/random_param_group.rb'
1815
+ - 'spec/dummy/components/test_engine/Gemfile'
1816
+ - 'spec/dummy/components/test_engine/app/controllers/test_engine/application_controller.rb'
1817
+ - 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
1818
+ - 'spec/dummy/components/test_engine/config/routes.rb'
1819
+ - 'spec/dummy/components/test_engine/lib/test_engine.rb'
1820
+ - 'spec/dummy/components/test_engine/test_engine.gemspec'
1821
+ - 'spec/dummy/config.ru'
1822
+ - 'spec/dummy/config/application.rb'
1823
+ - 'spec/dummy/config/boot.rb'
1824
+ - 'spec/dummy/config/environment.rb'
1825
+ - 'spec/dummy/config/environments/development.rb'
1826
+ - 'spec/dummy/config/environments/production.rb'
1827
+ - 'spec/dummy/config/environments/test.rb'
1828
+ - 'spec/dummy/config/initializers/apipie.rb'
1829
+ - 'spec/dummy/config/initializers/backtrace_silencers.rb'
1830
+ - 'spec/dummy/config/initializers/inflections.rb'
1831
+ - 'spec/dummy/config/initializers/mime_types.rb'
1832
+ - 'spec/dummy/config/initializers/secret_token.rb'
1833
+ - 'spec/dummy/config/initializers/session_store.rb'
1834
+ - 'spec/dummy/config/routes.rb'
1835
+ - 'spec/dummy/script/rails'
1836
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1837
+ - 'spec/lib/apipie/application_spec.rb'
1838
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
1839
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1840
+ - 'spec/lib/apipie/extractor_spec.rb'
1841
+ - 'spec/lib/apipie/file_handler_spec.rb'
1842
+ - 'spec/lib/apipie/generator/swagger/context_spec.rb'
1843
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
1844
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1845
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1846
+ - 'spec/lib/apipie/generator/swagger/param_description/description_spec.rb'
1847
+ - 'spec/lib/apipie/generator/swagger/param_description/in_spec.rb'
1848
+ - 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
1849
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1850
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1851
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1852
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
1853
+ - 'spec/lib/apipie/generator/swagger/warning_writer_spec.rb'
1854
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1855
+ - 'spec/lib/apipie/method_description_spec.rb'
1856
+ - 'spec/lib/apipie/param_description/deprecation_spec.rb'
1857
+ - 'spec/lib/apipie/param_description_spec.rb'
1858
+ - 'spec/lib/apipie/param_group_spec.rb'
1859
+ - 'spec/lib/apipie/resource_description_spec.rb'
1860
+ - 'spec/lib/apipie/validator_spec.rb'
1861
+ - 'spec/lib/rake_spec.rb'
1862
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1863
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1864
+ - 'spec/lib/validators/array_validator_spec.rb'
1865
+ - 'spec/spec_helper.rb'
1866
+ - 'spec/support/custom_bool_validator.rb'
1867
+ - 'spec/support/rake.rb'
1868
+ - 'spec/test_engine/memes_controller_spec.rb'
1510
1869
 
1511
- # Offense count: 36
1870
+ # Offense count: 34
1871
+ # This cop supports safe autocorrection (--autocorrect).
1512
1872
  # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
1513
1873
  Style/GuardClause:
1514
1874
  Exclude:
1515
1875
  - 'app/controllers/apipie/apipies_controller.rb'
1516
1876
  - 'lib/apipie/application.rb'
1517
- - 'lib/apipie/dsl_definition.rb'
1518
1877
  - 'lib/apipie/extractor.rb'
1519
1878
  - 'lib/apipie/extractor/collector.rb'
1520
1879
  - 'lib/apipie/extractor/writer.rb'
1880
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
1881
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
1521
1882
  - 'lib/apipie/param_description.rb'
1522
1883
  - 'lib/apipie/resource_description.rb'
1523
1884
  - 'lib/apipie/rspec/response_validation_helper.rb'
@@ -1534,15 +1895,23 @@ Style/HashConversion:
1534
1895
  Exclude:
1535
1896
  - 'lib/apipie/swagger_generator.rb'
1536
1897
 
1537
- # Offense count: 840
1898
+ # Offense count: 1
1899
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1900
+ Style/HashExcept:
1901
+ Exclude:
1902
+ - 'lib/apipie/param_description.rb'
1903
+
1904
+ # Offense count: 4
1538
1905
  # This cop supports safe autocorrection (--autocorrect).
1539
1906
  # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
1540
1907
  # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
1541
1908
  # SupportedShorthandSyntax: always, never, either, consistent
1542
1909
  Style/HashSyntax:
1543
- Enabled: false
1910
+ Exclude:
1911
+ - 'lib/apipie/swagger_generator.rb'
1912
+ - 'spec/dummy/config/routes.rb'
1544
1913
 
1545
- # Offense count: 4
1914
+ # Offense count: 3
1546
1915
  # This cop supports safe autocorrection (--autocorrect).
1547
1916
  # Configuration parameters: AllowIfModifier.
1548
1917
  Style/IfInsideElse:
@@ -1551,10 +1920,34 @@ Style/IfInsideElse:
1551
1920
  - 'lib/apipie/swagger_generator.rb'
1552
1921
  - 'spec/spec_helper.rb'
1553
1922
 
1554
- # Offense count: 66
1923
+ # Offense count: 73
1555
1924
  # This cop supports safe autocorrection (--autocorrect).
1556
1925
  Style/IfUnlessModifier:
1557
- Enabled: false
1926
+ Exclude:
1927
+ - 'app/controllers/apipie/apipies_controller.rb'
1928
+ - 'lib/apipie/application.rb'
1929
+ - 'lib/apipie/dsl_definition.rb'
1930
+ - 'lib/apipie/extractor.rb'
1931
+ - 'lib/apipie/extractor/collector.rb'
1932
+ - 'lib/apipie/extractor/writer.rb'
1933
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
1934
+ - 'lib/apipie/generator/swagger/param_description/type.rb'
1935
+ - 'lib/apipie/generator/swagger/type_extractor.rb'
1936
+ - 'lib/apipie/generator/swagger/warning.rb'
1937
+ - 'lib/apipie/method_description.rb'
1938
+ - 'lib/apipie/param_description.rb'
1939
+ - 'lib/apipie/resource_description.rb'
1940
+ - 'lib/apipie/routes_formatter.rb'
1941
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1942
+ - 'lib/apipie/see_description.rb'
1943
+ - 'lib/apipie/swagger_generator.rb'
1944
+ - 'lib/apipie/validator.rb'
1945
+ - 'lib/tasks/apipie.rake'
1946
+ - 'spec/dummy/app/controllers/application_controller.rb'
1947
+ - 'spec/dummy/app/controllers/users_controller.rb'
1948
+ - 'spec/dummy/config/initializers/apipie.rb'
1949
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1950
+ - 'spec/spec_helper.rb'
1558
1951
 
1559
1952
  # Offense count: 4
1560
1953
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -1566,15 +1959,19 @@ Style/IfWithBooleanLiteralBranches:
1566
1959
  - 'lib/apipie/validator.rb'
1567
1960
  - 'lib/tasks/apipie.rake'
1568
1961
 
1569
- # Offense count: 4
1962
+ # Offense count: 13
1570
1963
  # This cop supports unsafe autocorrection (--autocorrect-all).
1571
1964
  # Configuration parameters: InverseMethods, InverseBlocks.
1572
1965
  Style/InverseMethods:
1573
1966
  Exclude:
1967
+ - 'lib/apipie/configuration.rb'
1574
1968
  - 'lib/apipie/extractor/collector.rb'
1969
+ - 'lib/apipie/extractor/writer.rb'
1970
+ - 'lib/apipie/generator/swagger/warning.rb'
1575
1971
  - 'lib/apipie/method_description.rb'
1576
1972
  - 'lib/apipie/param_description.rb'
1577
1973
  - 'lib/apipie/swagger_generator.rb'
1974
+ - 'spec/spec_helper.rb'
1578
1975
 
1579
1976
  # Offense count: 5
1580
1977
  # This cop supports safe autocorrection (--autocorrect).
@@ -1584,12 +1981,12 @@ Style/Lambda:
1584
1981
  Exclude:
1585
1982
  - 'lib/apipie/configuration.rb'
1586
1983
  - 'spec/dummy/app/controllers/users_controller.rb'
1587
- - 'spec/lib/extractor/middleware_spec.rb'
1984
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
1588
1985
  - 'spec/lib/validators/array_validator_spec.rb'
1589
1986
 
1590
1987
  # Offense count: 2
1591
1988
  # This cop supports safe autocorrection (--autocorrect).
1592
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
1989
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
1593
1990
  Style/MethodCallWithoutArgsParentheses:
1594
1991
  Exclude:
1595
1992
  - 'lib/apipie/extractor/recorder.rb'
@@ -1615,30 +2012,36 @@ Style/MultilineBlockChain:
1615
2012
  Exclude:
1616
2013
  - 'lib/apipie/param_description.rb'
1617
2014
 
1618
- # Offense count: 2
2015
+ # Offense count: 1
1619
2016
  # This cop supports safe autocorrection (--autocorrect).
1620
2017
  # Configuration parameters: AllowMethodComparison.
1621
2018
  Style/MultipleComparison:
1622
2019
  Exclude:
1623
2020
  - 'lib/apipie/validator.rb'
1624
- - 'spec/dummy/config/initializers/apipie.rb'
1625
2021
 
1626
- # Offense count: 3
2022
+ # Offense count: 7
1627
2023
  # This cop supports unsafe autocorrection (--autocorrect-all).
1628
2024
  # Configuration parameters: EnforcedStyle.
1629
2025
  # SupportedStyles: literals, strict
1630
2026
  Style/MutableConstant:
1631
2027
  Exclude:
1632
2028
  - 'lib/apipie/extractor/recorder.rb'
2029
+ - 'lib/apipie/generator/swagger/param_description/in.rb'
2030
+ - 'lib/apipie/generator/swagger/type_extractor.rb'
2031
+ - 'lib/apipie/generator/swagger/warning.rb'
1633
2032
  - 'lib/apipie/routes_formatter.rb'
1634
2033
  - 'lib/apipie/version.rb'
1635
2034
 
1636
- # Offense count: 12
2035
+ # Offense count: 13
1637
2036
  # This cop supports safe autocorrection (--autocorrect).
1638
2037
  # Configuration parameters: EnforcedStyle.
1639
2038
  # SupportedStyles: both, prefix, postfix
1640
2039
  Style/NegatedIf:
1641
2040
  Exclude:
2041
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
2042
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
2043
+ - 'lib/apipie/generator/swagger/warning.rb'
2044
+ - 'lib/apipie/method_description/apis_service.rb'
1642
2045
  - 'lib/apipie/param_description.rb'
1643
2046
  - 'lib/apipie/rspec/response_validation_helper.rb'
1644
2047
  - 'lib/apipie/swagger_generator.rb'
@@ -1657,25 +2060,15 @@ Style/NegatedIfElseCondition:
1657
2060
  # AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
1658
2061
  Style/NestedParenthesizedCalls:
1659
2062
  Exclude:
1660
- - 'spec/lib/file_handler_spec.rb'
1661
-
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'
2063
+ - 'spec/lib/apipie/file_handler_spec.rb'
1672
2064
 
1673
2065
  # Offense count: 1
1674
- Style/OpenStructUse:
1675
- Exclude:
1676
- - 'lib/apipie/swagger_generator.rb'
2066
+ # This cop supports safe autocorrection (--autocorrect).
2067
+ # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
2068
+ Style/NumericLiterals:
2069
+ MinDigits: 6
1677
2070
 
1678
- # Offense count: 14
2071
+ # Offense count: 11
1679
2072
  # Configuration parameters: AllowedMethods.
1680
2073
  # AllowedMethods: respond_to_missing?
1681
2074
  Style/OptionalBooleanParameter:
@@ -1708,27 +2101,11 @@ Style/PerlBackrefs:
1708
2101
  Exclude:
1709
2102
  - 'lib/apipie/extractor.rb'
1710
2103
 
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
2104
  # Offense count: 5
1728
2105
  # This cop supports safe autocorrection (--autocorrect).
1729
2106
  Style/Proc:
1730
2107
  Exclude:
1731
- - 'spec/controllers/apipies_controller_spec.rb'
2108
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1732
2109
 
1733
2110
  # Offense count: 7
1734
2111
  # This cop supports safe autocorrection (--autocorrect).
@@ -1769,6 +2146,16 @@ Style/RedundantConditional:
1769
2146
  - 'lib/apipie/validator.rb'
1770
2147
  - 'lib/tasks/apipie.rake'
1771
2148
 
2149
+ # Offense count: 9
2150
+ # This cop supports safe autocorrection (--autocorrect).
2151
+ Style/RedundantConstantBase:
2152
+ Exclude:
2153
+ - 'lib/tasks/apipie.rake'
2154
+ - 'spec/dummy/config.ru'
2155
+ - 'spec/lib/rake_spec.rb'
2156
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
2157
+ - 'spec/spec_helper.rb'
2158
+
1772
2159
  # Offense count: 5
1773
2160
  # This cop supports unsafe autocorrection (--autocorrect-all).
1774
2161
  Style/RedundantInterpolation:
@@ -1790,7 +2177,7 @@ Style/RedundantPercentQ:
1790
2177
  Exclude:
1791
2178
  - 'apipie-rails.gemspec'
1792
2179
 
1793
- # Offense count: 37
2180
+ # Offense count: 35
1794
2181
  # This cop supports safe autocorrection (--autocorrect).
1795
2182
  # Configuration parameters: AllowMultipleReturnValues.
1796
2183
  Style/RedundantReturn:
@@ -1816,16 +2203,22 @@ Style/RedundantSelf:
1816
2203
  - 'lib/apipie/application.rb'
1817
2204
  - 'lib/apipie/dsl_definition.rb'
1818
2205
  - 'lib/apipie/extractor/writer.rb'
2206
+ - 'lib/apipie/generator/swagger/type.rb'
1819
2207
  - 'lib/apipie/method_description.rb'
1820
2208
  - 'lib/apipie/param_description.rb'
1821
2209
  - 'lib/apipie/resource_description.rb'
1822
2210
  - 'lib/apipie/response_description.rb'
1823
2211
  - 'lib/apipie/response_description_adapter.rb'
1824
- - 'lib/apipie/swagger_generator.rb'
1825
2212
  - 'lib/apipie/validator.rb'
1826
2213
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1827
2214
  - 'spec/dummy/config/initializers/apipie.rb'
1828
2215
 
2216
+ # Offense count: 1
2217
+ # This cop supports safe autocorrection (--autocorrect).
2218
+ Style/RedundantStringEscape:
2219
+ Exclude:
2220
+ - 'spec/dummy/app/controllers/users_controller.rb'
2221
+
1829
2222
  # Offense count: 12
1830
2223
  # This cop supports safe autocorrection (--autocorrect).
1831
2224
  # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
@@ -1835,6 +2228,7 @@ Style/RegexpLiteral:
1835
2228
  - 'lib/apipie/extractor.rb'
1836
2229
  - 'lib/apipie/extractor/collector.rb'
1837
2230
  - 'lib/apipie/extractor/recorder.rb'
2231
+ - 'lib/apipie/generator/swagger/operation_id.rb'
1838
2232
  - 'lib/apipie/helpers.rb'
1839
2233
  - 'lib/apipie/routing.rb'
1840
2234
  - 'lib/apipie/swagger_generator.rb'
@@ -1848,17 +2242,6 @@ Style/RescueStandardError:
1848
2242
  Exclude:
1849
2243
  - 'lib/apipie/dsl_definition.rb'
1850
2244
 
1851
- # Offense count: 6
1852
- # This cop supports unsafe autocorrection (--autocorrect-all).
1853
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
1854
- # AllowedMethods: present?, blank?, presence, try, try!
1855
- Style/SafeNavigation:
1856
- Exclude:
1857
- - 'lib/apipie/application.rb'
1858
- - 'lib/apipie/dsl_definition.rb'
1859
- - 'lib/apipie/extractor.rb'
1860
- - 'lib/apipie/validator.rb'
1861
-
1862
2245
  # Offense count: 1
1863
2246
  # This cop supports unsafe autocorrection (--autocorrect-all).
1864
2247
  Style/SelectByRegexp:
@@ -1872,13 +2255,12 @@ Style/Semicolon:
1872
2255
  Exclude:
1873
2256
  - 'lib/apipie/method_description.rb'
1874
2257
 
1875
- # Offense count: 11
2258
+ # Offense count: 2
1876
2259
  # This cop supports safe autocorrection (--autocorrect).
1877
2260
  # Configuration parameters: AllowIfMethodIsEmpty.
1878
2261
  Style/SingleLineMethods:
1879
2262
  Exclude:
1880
2263
  - 'lib/apipie/resource_description.rb'
1881
- - 'lib/apipie/swagger_generator.rb'
1882
2264
  - 'lib/apipie/tag_list_description.rb'
1883
2265
 
1884
2266
  # Offense count: 6
@@ -1891,12 +2273,11 @@ Style/SlicingWithRange:
1891
2273
  - 'lib/apipie/param_description.rb'
1892
2274
  - 'lib/tasks/apipie.rake'
1893
2275
 
1894
- # Offense count: 4
2276
+ # Offense count: 3
1895
2277
  # This cop supports safe autocorrection (--autocorrect).
1896
2278
  # Configuration parameters: AllowModifier.
1897
2279
  Style/SoleNestedConditional:
1898
2280
  Exclude:
1899
- - 'lib/apipie/swagger_generator.rb'
1900
2281
  - 'lib/apipie/validator.rb'
1901
2282
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1902
2283
 
@@ -1916,12 +2297,90 @@ Style/StringConcatenation:
1916
2297
  - 'lib/apipie/extractor/writer.rb'
1917
2298
  - 'lib/apipie/swagger_generator.rb'
1918
2299
 
1919
- # Offense count: 1301
2300
+ # Offense count: 1293
1920
2301
  # This cop supports safe autocorrection (--autocorrect).
1921
2302
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
1922
2303
  # SupportedStyles: single_quotes, double_quotes
1923
2304
  Style/StringLiterals:
1924
- Enabled: false
2305
+ Exclude:
2306
+ - 'Rakefile'
2307
+ - 'apipie-rails.gemspec'
2308
+ - 'app/controllers/apipie/apipies_controller.rb'
2309
+ - 'lib/apipie-rails.rb'
2310
+ - 'lib/apipie/apipie_module.rb'
2311
+ - 'lib/apipie/application.rb'
2312
+ - 'lib/apipie/configuration.rb'
2313
+ - 'lib/apipie/dsl_definition.rb'
2314
+ - 'lib/apipie/extractor.rb'
2315
+ - 'lib/apipie/extractor/collector.rb'
2316
+ - 'lib/apipie/extractor/recorder.rb'
2317
+ - 'lib/apipie/extractor/writer.rb'
2318
+ - 'lib/apipie/generator/swagger/param_description.rb'
2319
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
2320
+ - 'lib/apipie/generator/swagger/warning.rb'
2321
+ - 'lib/apipie/helpers.rb'
2322
+ - 'lib/apipie/method_description.rb'
2323
+ - 'lib/apipie/param_description.rb'
2324
+ - 'lib/apipie/resource_description.rb'
2325
+ - 'lib/apipie/routing.rb'
2326
+ - 'lib/apipie/rspec/response_validation_helper.rb'
2327
+ - 'lib/apipie/see_description.rb'
2328
+ - 'lib/apipie/static_dispatcher.rb'
2329
+ - 'lib/apipie/swagger_generator.rb'
2330
+ - 'lib/apipie/validator.rb'
2331
+ - 'lib/apipie/version.rb'
2332
+ - 'lib/generators/apipie/install/install_generator.rb'
2333
+ - 'lib/tasks/apipie.rake'
2334
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
2335
+ - 'spec/controllers/api/v2/architectures_controller_spec.rb'
2336
+ - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
2337
+ - 'spec/controllers/concerns_controller_spec.rb'
2338
+ - 'spec/controllers/extended_controller_spec.rb'
2339
+ - 'spec/controllers/included_param_group_controller_spec.rb'
2340
+ - 'spec/controllers/pets_controller_spec.rb'
2341
+ - 'spec/controllers/users_controller_spec.rb'
2342
+ - 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
2343
+ - 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
2344
+ - 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
2345
+ - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
2346
+ - 'spec/dummy/app/controllers/application_controller.rb'
2347
+ - 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
2348
+ - 'spec/dummy/app/controllers/pets_controller.rb'
2349
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
2350
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
2351
+ - 'spec/dummy/app/controllers/sample_controller.rb'
2352
+ - 'spec/dummy/app/controllers/tagged_cats_controller.rb'
2353
+ - 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
2354
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
2355
+ - 'spec/dummy/app/controllers/users_controller.rb'
2356
+ - 'spec/dummy/components/test_engine/Gemfile'
2357
+ - 'spec/dummy/config/application.rb'
2358
+ - 'spec/dummy/config/initializers/apipie.rb'
2359
+ - 'spec/dummy/config/routes.rb'
2360
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
2361
+ - 'spec/lib/apipie/application_spec.rb'
2362
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
2363
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
2364
+ - 'spec/lib/apipie/extractor_spec.rb'
2365
+ - 'spec/lib/apipie/file_handler_spec.rb'
2366
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
2367
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
2368
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
2369
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
2370
+ - 'spec/lib/apipie/method_description_spec.rb'
2371
+ - 'spec/lib/apipie/param_description/deprecation_spec.rb'
2372
+ - 'spec/lib/apipie/param_description_spec.rb'
2373
+ - 'spec/lib/apipie/param_group_spec.rb'
2374
+ - 'spec/lib/apipie/resource_description_spec.rb'
2375
+ - 'spec/lib/apipie/validator_spec.rb'
2376
+ - 'spec/lib/rake_spec.rb'
2377
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
2378
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
2379
+ - 'spec/lib/validators/array_validator_spec.rb'
2380
+ - 'spec/spec_helper.rb'
2381
+ - 'spec/support/custom_bool_validator.rb'
2382
+ - 'spec/support/rake.rb'
2383
+ - 'spec/test_engine/memes_controller_spec.rb'
1925
2384
 
1926
2385
  # Offense count: 38
1927
2386
  # This cop supports safe autocorrection (--autocorrect).
@@ -1939,12 +2398,14 @@ Style/TrailingCommaInArrayLiteral:
1939
2398
  - 'spec/controllers/users_controller_spec.rb'
1940
2399
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1941
2400
 
1942
- # Offense count: 4
2401
+ # Offense count: 5
1943
2402
  # This cop supports safe autocorrection (--autocorrect).
1944
2403
  # Configuration parameters: EnforcedStyleForMultiline.
1945
2404
  # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1946
2405
  Style/TrailingCommaInHashLiteral:
1947
2406
  Exclude:
2407
+ - 'lib/apipie/generator/swagger/param_description.rb'
2408
+ - 'lib/apipie/generator/swagger/param_description/builder.rb'
1948
2409
  - 'lib/apipie/response_description.rb'
1949
2410
  - 'lib/apipie/swagger_generator.rb'
1950
2411
  - 'spec/controllers/users_controller_spec.rb'
@@ -1965,27 +2426,30 @@ Style/UnlessElse:
1965
2426
  - 'lib/apipie/validator.rb'
1966
2427
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1967
2428
 
1968
- # Offense count: 32
2429
+ # Offense count: 37
1969
2430
  # This cop supports safe autocorrection (--autocorrect).
1970
2431
  # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
1971
2432
  # SupportedStyles: percent, brackets
1972
2433
  Style/WordArray:
1973
2434
  Exclude:
2435
+ - 'lib/apipie/generator/swagger/param_description/in.rb'
1974
2436
  - 'lib/apipie/swagger_generator.rb'
1975
2437
  - 'spec/controllers/users_controller_spec.rb'
1976
2438
  - 'spec/dummy/app/controllers/pets_controller.rb'
1977
2439
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1978
2440
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
1979
2441
  - 'spec/dummy/app/controllers/users_controller.rb'
1980
- - 'spec/lib/method_description_spec.rb'
1981
- - 'spec/lib/resource_description_spec.rb'
2442
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
2443
+ - 'spec/lib/apipie/method_description_spec.rb'
2444
+ - 'spec/lib/apipie/resource_description_spec.rb'
1982
2445
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1983
2446
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1984
2447
  - 'spec/lib/validators/array_validator_spec.rb'
1985
2448
 
1986
- # Offense count: 4
2449
+ # Offense count: 3
1987
2450
  # This cop supports unsafe autocorrection (--autocorrect-all).
1988
2451
  Style/ZeroLengthPredicate:
1989
2452
  Exclude:
2453
+ - 'lib/apipie/generator/swagger/param_description/composite.rb'
1990
2454
  - 'lib/apipie/swagger_generator.rb'
1991
2455
  - 'spec/lib/swagger/swagger_dsl_spec.rb'