apipie-rails 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) 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 +21 -0
  5. data/.rubocop_todo.yml +222 -610
  6. data/CHANGELOG.md +16 -1
  7. data/README.rst +20 -0
  8. data/apipie-rails.gemspec +4 -0
  9. data/app/controllers/apipie/apipies_controller.rb +2 -2
  10. data/app/helpers/apipie_helper.rb +1 -1
  11. data/app/views/apipie/apipies/_deprecation.html.erb +16 -0
  12. data/app/views/apipie/apipies/_params.html.erb +7 -1
  13. data/config/locales/en.yml +7 -0
  14. data/lib/apipie/apipie_module.rb +2 -2
  15. data/lib/apipie/application.rb +16 -8
  16. data/lib/apipie/configuration.rb +13 -2
  17. data/lib/apipie/dsl_definition.rb +6 -6
  18. data/lib/apipie/error_description.rb +1 -1
  19. data/lib/apipie/errors.rb +2 -16
  20. data/lib/apipie/extractor/collector.rb +1 -1
  21. data/lib/apipie/extractor/recorder.rb +2 -2
  22. data/lib/apipie/extractor.rb +2 -2
  23. data/lib/apipie/generator/swagger/operation_id.rb +1 -1
  24. data/lib/apipie/helpers.rb +3 -3
  25. data/lib/apipie/markup.rb +9 -8
  26. data/lib/apipie/method_description.rb +1 -1
  27. data/lib/apipie/param_description/deprecation.rb +24 -0
  28. data/lib/apipie/param_description.rb +38 -11
  29. data/lib/apipie/resource_description.rb +10 -7
  30. data/lib/apipie/response_description.rb +1 -1
  31. data/lib/apipie/response_description_adapter.rb +3 -3
  32. data/lib/apipie/routing.rb +1 -1
  33. data/lib/apipie/rspec/response_validation_helper.rb +1 -1
  34. data/lib/apipie/swagger_generator.rb +6 -6
  35. data/lib/apipie/validator.rb +9 -10
  36. data/lib/apipie/version.rb +1 -1
  37. data/lib/apipie-rails.rb +1 -0
  38. data/lib/tasks/apipie.rake +11 -10
  39. data/spec/controllers/users_controller_spec.rb +8 -1
  40. data/spec/dummy/config.ru +1 -1
  41. data/spec/{controllers → lib/apipie}/apipies_controller_spec.rb +6 -2
  42. data/spec/lib/apipie/application_spec.rb +53 -0
  43. data/spec/lib/apipie/configuration_spec.rb +23 -0
  44. data/spec/lib/apipie/extractor/recorder_spec.rb +40 -0
  45. data/spec/lib/{generator → apipie/generator}/swagger/context_spec.rb +1 -0
  46. data/spec/lib/{method_description_spec.rb → apipie/method_description_spec.rb} +4 -4
  47. data/spec/lib/apipie/no_documented_method_spec.rb +17 -0
  48. data/spec/lib/apipie/param_description/deprecation_spec.rb +31 -0
  49. data/spec/lib/{param_description_spec.rb → apipie/param_description_spec.rb} +81 -1
  50. data/spec/lib/apipie/resource_description_spec.rb +91 -0
  51. data/spec/lib/apipie/response_does_not_match_swagger_schema_spec.rb +35 -0
  52. data/spec/lib/rake_spec.rb +1 -1
  53. data/spec/lib/swagger/rake_swagger_spec.rb +2 -2
  54. data/spec/lib/swagger/swagger_dsl_spec.rb +11 -5
  55. data/spec/spec_helper.rb +3 -3
  56. metadata +79 -29
  57. data/spec/lib/application_spec.rb +0 -49
  58. data/spec/lib/resource_description_spec.rb +0 -48
  59. /data/spec/{lib/swagger/response_validation_spec.rb → controllers/pets_controller_spec.rb} +0 -0
  60. /data/spec/lib/{extractor → apipie/extractor/recorder}/middleware_spec.rb +0 -0
  61. /data/spec/lib/{extractor → apipie/extractor}/writer_spec.rb +0 -0
  62. /data/spec/lib/{extractor → apipie}/extractor_spec.rb +0 -0
  63. /data/spec/lib/{file_handler_spec.rb → apipie/file_handler_spec.rb} +0 -0
  64. /data/spec/lib/{generator → apipie/generator}/swagger/operation_id_spec.rb +0 -0
  65. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/builder_spec.rb +0 -0
  66. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/composite_spec.rb +0 -0
  67. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/description_spec.rb +0 -0
  68. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/in_spec.rb +0 -0
  69. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/name_spec.rb +0 -0
  70. /data/spec/lib/{generator → apipie/generator}/swagger/param_description/type_spec.rb +0 -0
  71. /data/spec/lib/{generator → apipie/generator}/swagger/param_description_spec.rb +0 -0
  72. /data/spec/lib/{generator → apipie/generator}/swagger/type_extractor_spec.rb +0 -0
  73. /data/spec/lib/{generator → apipie/generator}/swagger/warning_spec.rb +0 -0
  74. /data/spec/lib/{generator → apipie/generator}/swagger/warning_writer_spec.rb +0 -0
  75. /data/spec/lib/{method_description → apipie/method_description}/apis_service_spec.rb +0 -0
  76. /data/spec/lib/{param_group_spec.rb → apipie/param_group_spec.rb} +0 -0
  77. /data/spec/lib/{validator_spec.rb → apipie/validator_spec.rb} +0 -0
  78. /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 --exclude-limit 200`
3
- # on 2023-01-23 11:25:29 UTC using RuboCop version 1.44.0.
2
+ # `rubocop --auto-gen-config --exclude-limit 180`
3
+ # on 2023-04-03 23:33:58 UTC using RuboCop version 1.49.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
@@ -14,16 +14,15 @@ Gemspec/DeprecatedAttributeAssignment:
14
14
  Exclude:
15
15
  - 'apipie-rails.gemspec'
16
16
 
17
- # Offense count: 6
17
+ # Offense count: 9
18
18
  # Configuration parameters: EnforcedStyle, AllowedGems, Include.
19
19
  # SupportedStyles: Gemfile, gems.rb, gemspec
20
- # AllowedGems: bundler
21
20
  # Include: **/*.gemspec, **/Gemfile, **/gems.rb
22
21
  Gemspec/DevelopmentDependencies:
23
22
  Exclude:
24
23
  - 'apipie-rails.gemspec'
25
24
 
26
- # Offense count: 1
25
+ # Offense count: 2
27
26
  # This cop supports safe autocorrection (--autocorrect).
28
27
  # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
29
28
  # Include: **/*.gemspec
@@ -40,15 +39,14 @@ Gemspec/RequireMFA:
40
39
  - 'apipie-rails.gemspec'
41
40
  - 'spec/dummy/components/test_engine/test_engine.gemspec'
42
41
 
43
- # Offense count: 2
42
+ # Offense count: 1
44
43
  # Configuration parameters: Severity, Include.
45
44
  # Include: **/*.gemspec
46
45
  Gemspec/RequiredRubyVersion:
47
46
  Exclude:
48
- - 'apipie-rails.gemspec'
49
47
  - 'spec/dummy/components/test_engine/test_engine.gemspec'
50
48
 
51
- # Offense count: 27
49
+ # Offense count: 28
52
50
  # This cop supports safe autocorrection (--autocorrect).
53
51
  # Configuration parameters: EnforcedStyle, IndentationWidth.
54
52
  # SupportedStyles: with_first_argument, with_fixed_indentation
@@ -69,7 +67,7 @@ Layout/BlockAlignment:
69
67
  Exclude:
70
68
  - 'lib/apipie/application.rb'
71
69
  - 'lib/apipie/extractor/writer.rb'
72
- - 'spec/lib/param_group_spec.rb'
70
+ - 'spec/lib/apipie/param_group_spec.rb'
73
71
 
74
72
  # Offense count: 10
75
73
  # This cop supports safe autocorrection (--autocorrect).
@@ -108,9 +106,9 @@ Layout/DotPosition:
108
106
  - 'lib/apipie/generator/swagger/param_description/type.rb'
109
107
  - 'lib/apipie/method_description.rb'
110
108
  - 'lib/apipie/swagger_generator.rb'
111
- - 'spec/lib/application_spec.rb'
112
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
113
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
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'
114
112
 
115
113
  # Offense count: 7
116
114
  # This cop supports safe autocorrection (--autocorrect).
@@ -144,14 +142,6 @@ Layout/EmptyLineAfterGuardClause:
144
142
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
145
143
  - 'spec/spec_helper.rb'
146
144
 
147
- # Offense count: 3
148
- # This cop supports safe autocorrection (--autocorrect).
149
- Layout/EmptyLineAfterMagicComment:
150
- Exclude:
151
- - 'apipie-rails.gemspec'
152
- - 'lib/apipie/validator.rb'
153
- - 'lib/tasks/apipie.rake'
154
-
155
145
  # Offense count: 17
156
146
  # This cop supports safe autocorrection (--autocorrect).
157
147
  # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
@@ -183,16 +173,16 @@ Layout/EmptyLines:
183
173
  - 'lib/apipie/swagger_generator.rb'
184
174
  - 'lib/apipie/validator.rb'
185
175
  - 'lib/tasks/apipie.rake'
186
- - 'spec/controllers/apipies_controller_spec.rb'
187
176
  - 'spec/controllers/included_param_group_controller_spec.rb'
177
+ - 'spec/controllers/pets_controller_spec.rb'
188
178
  - 'spec/dummy/app/controllers/pets_controller.rb'
189
179
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
190
180
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
191
- - 'spec/lib/application_spec.rb'
192
- - 'spec/lib/method_description_spec.rb'
193
- - 'spec/lib/param_description_spec.rb'
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'
194
185
  - 'spec/lib/swagger/rake_swagger_spec.rb'
195
- - 'spec/lib/swagger/response_validation_spec.rb'
196
186
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
197
187
 
198
188
  # Offense count: 1
@@ -211,7 +201,7 @@ Layout/EmptyLinesAroundAttributeAccessor:
211
201
  Exclude:
212
202
  - 'lib/apipie/configuration.rb'
213
203
 
214
- # Offense count: 107
204
+ # Offense count: 109
215
205
  # This cop supports safe autocorrection (--autocorrect).
216
206
  # Configuration parameters: EnforcedStyle.
217
207
  # SupportedStyles: empty_lines, no_empty_lines
@@ -221,32 +211,32 @@ Layout/EmptyLinesAroundBlockBody:
221
211
  - 'lib/tasks/apipie.rake'
222
212
  - 'spec/controllers/api/v1/architectures_controller_spec.rb'
223
213
  - 'spec/controllers/api/v2/architectures_controller_spec.rb'
224
- - 'spec/controllers/apipies_controller_spec.rb'
225
214
  - 'spec/controllers/concerns_controller_spec.rb'
226
215
  - 'spec/controllers/extended_controller_spec.rb'
227
216
  - 'spec/controllers/included_param_group_controller_spec.rb'
228
- - 'spec/controllers/memes_controller_spec.rb'
217
+ - 'spec/controllers/pets_controller_spec.rb'
229
218
  - 'spec/controllers/users_controller_spec.rb'
230
219
  - 'spec/dummy/app/controllers/pets_controller.rb'
231
220
  - 'spec/dummy/config/routes.rb'
232
- - 'spec/lib/application_spec.rb'
233
- - 'spec/lib/extractor/writer_spec.rb'
234
- - 'spec/lib/file_handler_spec.rb'
235
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
236
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
237
- - 'spec/lib/method_description_spec.rb'
238
- - 'spec/lib/param_description_spec.rb'
239
- - 'spec/lib/param_group_spec.rb'
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'
240
232
  - 'spec/lib/rake_spec.rb'
241
- - 'spec/lib/resource_description_spec.rb'
242
233
  - 'spec/lib/swagger/rake_swagger_spec.rb'
243
- - 'spec/lib/swagger/response_validation_spec.rb'
244
234
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
245
- - 'spec/lib/validator_spec.rb'
246
235
  - 'spec/lib/validators/array_validator_spec.rb'
247
236
  - 'spec/spec_helper.rb'
237
+ - 'spec/test_engine/memes_controller_spec.rb'
248
238
 
249
- # Offense count: 47
239
+ # Offense count: 46
250
240
  # This cop supports safe autocorrection (--autocorrect).
251
241
  # Configuration parameters: EnforcedStyle.
252
242
  # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
@@ -346,7 +336,7 @@ Layout/ExtraSpacing:
346
336
  - 'spec/dummy/config.ru'
347
337
  - 'spec/dummy/config/environments/test.rb'
348
338
  - 'spec/dummy/script/rails'
349
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
339
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
350
340
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
351
341
 
352
342
  # Offense count: 9
@@ -370,16 +360,16 @@ Layout/FirstHashElementIndentation:
370
360
  - 'lib/apipie/response_description_adapter.rb'
371
361
  - 'lib/apipie/swagger_generator.rb'
372
362
  - 'spec/dummy/app/controllers/pets_controller.rb'
373
- - 'spec/lib/extractor/writer_spec.rb'
374
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
375
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
376
- - 'spec/lib/generator/swagger/param_description/description_spec.rb'
377
- - 'spec/lib/generator/swagger/param_description/in_spec.rb'
378
- - 'spec/lib/generator/swagger/param_description/name_spec.rb'
379
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
380
- - 'spec/lib/method_description/apis_service_spec.rb'
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'
381
371
 
382
- # Offense count: 117
372
+ # Offense count: 123
383
373
  # This cop supports safe autocorrection (--autocorrect).
384
374
  # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
385
375
  # SupportedHashRocketStyles: key, separator, table
@@ -391,7 +381,7 @@ Layout/HashAlignment:
391
381
  - 'lib/apipie/swagger_generator.rb'
392
382
  - 'lib/tasks/apipie.rake'
393
383
  - 'spec/controllers/users_controller_spec.rb'
394
- - 'spec/lib/extractor/writer_spec.rb'
384
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
395
385
 
396
386
  # Offense count: 3
397
387
  # This cop supports safe autocorrection (--autocorrect).
@@ -407,11 +397,11 @@ Layout/HeredocIndentation:
407
397
  Layout/IndentationConsistency:
408
398
  Exclude:
409
399
  - 'lib/apipie/generator/swagger/param_description/name.rb'
410
- - 'spec/lib/param_group_spec.rb'
400
+ - 'spec/lib/apipie/param_group_spec.rb'
411
401
 
412
402
  # Offense count: 10
413
403
  # This cop supports safe autocorrection (--autocorrect).
414
- # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
404
+ # Configuration parameters: Width, AllowedPatterns.
415
405
  Layout/IndentationWidth:
416
406
  Exclude:
417
407
  - 'app/controllers/apipie/apipies_controller.rb'
@@ -494,7 +484,7 @@ Layout/SpaceAfterColon:
494
484
  Exclude:
495
485
  - 'spec/dummy/app/controllers/included_param_group_controller.rb'
496
486
 
497
- # Offense count: 81
487
+ # Offense count: 80
498
488
  # This cop supports safe autocorrection (--autocorrect).
499
489
  Layout/SpaceAfterComma:
500
490
  Exclude:
@@ -511,14 +501,14 @@ Layout/SpaceAfterComma:
511
501
  - 'lib/apipie/static_dispatcher.rb'
512
502
  - 'lib/apipie/swagger_generator.rb'
513
503
  - 'lib/tasks/apipie.rake'
514
- - 'spec/controllers/apipies_controller_spec.rb'
515
504
  - 'spec/controllers/users_controller_spec.rb'
516
505
  - 'spec/dummy/app/controllers/pets_controller.rb'
517
506
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
518
507
  - 'spec/dummy/app/controllers/users_controller.rb'
519
508
  - 'spec/dummy/config/initializers/apipie.rb'
520
- - 'spec/lib/application_spec.rb'
521
- - 'spec/lib/param_description_spec.rb'
509
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
510
+ - 'spec/lib/apipie/application_spec.rb'
511
+ - 'spec/lib/apipie/param_description_spec.rb'
522
512
  - 'spec/lib/swagger/rake_swagger_spec.rb'
523
513
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
524
514
 
@@ -531,34 +521,7 @@ Layout/SpaceAfterNot:
531
521
  - 'lib/apipie/extractor/collector.rb'
532
522
  - 'lib/apipie/extractor/writer.rb'
533
523
 
534
- # Offense count: 35
535
- # This cop supports safe autocorrection (--autocorrect).
536
- # Configuration parameters: EnforcedStyle.
537
- # SupportedStyles: space, no_space
538
- Layout/SpaceAroundEqualsInParameterDefault:
539
- Exclude:
540
- - 'app/helpers/apipie_helper.rb'
541
- - 'lib/apipie/apipie_module.rb'
542
- - 'lib/apipie/application.rb'
543
- - 'lib/apipie/dsl_definition.rb'
544
- - 'lib/apipie/error_description.rb'
545
- - 'lib/apipie/method_description.rb'
546
- - 'lib/apipie/response_description.rb'
547
- - 'lib/apipie/response_description_adapter.rb'
548
- - 'lib/apipie/rspec/response_validation_helper.rb'
549
- - 'lib/apipie/swagger_generator.rb'
550
- - 'lib/apipie/validator.rb'
551
- - 'lib/tasks/apipie.rake'
552
- - 'spec/lib/swagger/swagger_dsl_spec.rb'
553
- - 'spec/spec_helper.rb'
554
-
555
- # Offense count: 1
556
- # This cop supports safe autocorrection (--autocorrect).
557
- Layout/SpaceAroundMethodCallOperator:
558
- Exclude:
559
- - 'lib/apipie/validator.rb'
560
-
561
- # Offense count: 136
524
+ # Offense count: 142
562
525
  # This cop supports safe autocorrection (--autocorrect).
563
526
  # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
564
527
  # SupportedStylesForExponentOperator: space, no_space
@@ -571,11 +534,11 @@ Layout/SpaceAroundOperators:
571
534
  - 'spec/controllers/users_controller_spec.rb'
572
535
  - 'spec/dummy/app/controllers/pets_controller.rb'
573
536
  - 'spec/dummy/config/environments/test.rb'
574
- - 'spec/lib/extractor/writer_spec.rb'
537
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
575
538
  - 'spec/lib/swagger/rake_swagger_spec.rb'
576
539
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
577
540
 
578
- # Offense count: 39
541
+ # Offense count: 34
579
542
  # This cop supports safe autocorrection (--autocorrect).
580
543
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
581
544
  # SupportedStyles: space, no_space
@@ -592,8 +555,6 @@ Layout/SpaceBeforeBlockBraces:
592
555
  - 'lib/tasks/apipie.rake'
593
556
  - 'spec/controllers/users_controller_spec.rb'
594
557
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
595
- - 'spec/lib/method_description_spec.rb'
596
- - 'spec/lib/resource_description_spec.rb'
597
558
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
598
559
 
599
560
  # Offense count: 4
@@ -613,7 +574,7 @@ Layout/SpaceInsideArrayLiteralBrackets:
613
574
  - 'lib/apipie/generator/swagger/param_description/composite.rb'
614
575
  - 'spec/controllers/users_controller_spec.rb'
615
576
 
616
- # Offense count: 93
577
+ # Offense count: 81
617
578
  # This cop supports safe autocorrection (--autocorrect).
618
579
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
619
580
  # SupportedStyles: space, no_space
@@ -630,11 +591,9 @@ Layout/SpaceInsideBlockBraces:
630
591
  - 'lib/tasks/apipie.rake'
631
592
  - 'spec/controllers/users_controller_spec.rb'
632
593
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
633
- - 'spec/lib/application_spec.rb'
634
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
635
- - 'spec/lib/generator/swagger/warning_spec.rb'
636
- - 'spec/lib/method_description_spec.rb'
637
- - 'spec/lib/resource_description_spec.rb'
594
+ - 'spec/lib/apipie/application_spec.rb'
595
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
596
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
638
597
  - 'spec/lib/swagger/rake_swagger_spec.rb'
639
598
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
640
599
  - 'spec/spec_helper.rb'
@@ -655,14 +614,14 @@ Layout/SpaceInsideHashLiteralBraces:
655
614
  - 'lib/apipie/see_description.rb'
656
615
  - 'lib/apipie/swagger_generator.rb'
657
616
  - 'lib/tasks/apipie.rake'
658
- - 'spec/controllers/apipies_controller_spec.rb'
659
617
  - 'spec/controllers/users_controller_spec.rb'
660
618
  - 'spec/dummy/app/controllers/pets_controller.rb'
661
619
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
662
620
  - 'spec/dummy/app/controllers/users_controller.rb'
663
621
  - 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
664
- - 'spec/lib/extractor/middleware_spec.rb'
665
- - 'spec/lib/method_description_spec.rb'
622
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
623
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
624
+ - 'spec/lib/apipie/method_description_spec.rb'
666
625
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
667
626
 
668
627
  # Offense count: 5
@@ -672,16 +631,8 @@ Layout/SpaceInsideHashLiteralBraces:
672
631
  Layout/SpaceInsideParens:
673
632
  Exclude:
674
633
  - 'lib/apipie/middleware/checksum_in_headers.rb'
675
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
676
- - 'spec/lib/method_description/apis_service_spec.rb'
677
- - 'spec/lib/swagger/swagger_dsl_spec.rb'
678
-
679
- # Offense count: 1
680
- # This cop supports safe autocorrection (--autocorrect).
681
- # Configuration parameters: EnforcedStyle.
682
- # SupportedStyles: space, no_space
683
- Layout/SpaceInsideStringInterpolation:
684
- Exclude:
634
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
635
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
685
636
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
686
637
 
687
638
  # Offense count: 15
@@ -702,11 +653,11 @@ Layout/TrailingEmptyLines:
702
653
  - 'spec/dummy/config/boot.rb'
703
654
  - 'spec/dummy/config/environments/development.rb'
704
655
  - 'spec/dummy/config/initializers/secret_token.rb'
705
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
706
- - 'spec/lib/generator/swagger/param_description_spec.rb'
707
- - 'spec/lib/param_group_spec.rb'
656
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
657
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
658
+ - 'spec/lib/apipie/param_group_spec.rb'
708
659
 
709
- # Offense count: 18
660
+ # Offense count: 16
710
661
  # This cop supports safe autocorrection (--autocorrect).
711
662
  # Configuration parameters: AllowInHeredoc.
712
663
  Layout/TrailingWhitespace:
@@ -715,10 +666,9 @@ Layout/TrailingWhitespace:
715
666
  - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
716
667
  - 'spec/dummy/app/controllers/application_controller.rb'
717
668
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
718
- - 'spec/lib/application_spec.rb'
719
669
 
720
670
  # Offense count: 10
721
- # This cop supports safe autocorrection (--autocorrect).
671
+ # This cop supports unsafe autocorrection (--autocorrect-all).
722
672
  # Configuration parameters: AllowSafeAssignment.
723
673
  Lint/AssignmentInCondition:
724
674
  Exclude:
@@ -748,12 +698,12 @@ Lint/DuplicateMethods:
748
698
  # Configuration parameters: AllowComments, AllowEmptyLambdas.
749
699
  Lint/EmptyBlock:
750
700
  Exclude:
751
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
752
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
753
- - 'spec/lib/generator/swagger/param_description/description_spec.rb'
754
- - 'spec/lib/generator/swagger/param_description/name_spec.rb'
755
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
756
- - 'spec/lib/method_description/apis_service_spec.rb'
701
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
702
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
703
+ - 'spec/lib/apipie/generator/swagger/param_description/description_spec.rb'
704
+ - 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
705
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
706
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
757
707
 
758
708
  # Offense count: 1
759
709
  # This cop supports safe autocorrection (--autocorrect).
@@ -761,19 +711,12 @@ Lint/IdentityComparison:
761
711
  Exclude:
762
712
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
763
713
 
764
- # Offense count: 5
765
- Lint/MissingSuper:
766
- Exclude:
767
- - 'lib/apipie/errors.rb'
768
- - 'lib/apipie/response_description_adapter.rb'
769
- - 'lib/apipie/validator.rb'
770
-
771
714
  # Offense count: 11
772
715
  # This cop supports unsafe autocorrection (--autocorrect-all).
773
716
  Lint/NonAtomicFileOperation:
774
717
  Exclude:
775
718
  - 'lib/tasks/apipie.rake'
776
- - 'spec/lib/extractor/writer_spec.rb'
719
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
777
720
 
778
721
  # Offense count: 1
779
722
  Lint/NonLocalExitFromIterator:
@@ -786,12 +729,6 @@ Lint/ParenthesesAsGroupedExpression:
786
729
  Exclude:
787
730
  - 'lib/apipie/param_description.rb'
788
731
 
789
- # Offense count: 1
790
- # This cop supports unsafe autocorrection (--autocorrect-all).
791
- Lint/RedundantDirGlobSort:
792
- Exclude:
793
- - 'lib/apipie/application.rb'
794
-
795
732
  # Offense count: 2
796
733
  # This cop supports safe autocorrection (--autocorrect).
797
734
  Lint/RedundantStringCoercion:
@@ -842,20 +779,19 @@ Lint/UnusedBlockArgument:
842
779
  - 'lib/apipie/rspec/response_validation_helper.rb'
843
780
  - 'lib/apipie/swagger_generator.rb'
844
781
  - 'lib/tasks/apipie.rake'
845
- - 'spec/controllers/apipies_controller_spec.rb'
846
782
  - 'spec/controllers/users_controller_spec.rb'
847
- - 'spec/lib/extractor/extractor_spec.rb'
783
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
784
+ - 'spec/lib/apipie/extractor_spec.rb'
848
785
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
849
786
  - 'spec/spec_helper.rb'
850
787
 
851
- # Offense count: 29
788
+ # Offense count: 28
852
789
  # This cop supports safe autocorrection (--autocorrect).
853
790
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
854
791
  Lint/UnusedMethodArgument:
855
792
  Exclude:
856
793
  - 'lib/apipie/application.rb'
857
794
  - 'lib/apipie/dsl_definition.rb'
858
- - 'lib/apipie/resource_description.rb'
859
795
  - 'lib/apipie/response_description_adapter.rb'
860
796
  - 'lib/apipie/swagger_generator.rb'
861
797
  - 'lib/apipie/validator.rb'
@@ -883,7 +819,7 @@ Lint/Void:
883
819
  - 'spec/controllers/users_controller_spec.rb'
884
820
 
885
821
  # Offense count: 57
886
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
822
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
887
823
  Metrics/AbcSize:
888
824
  Max: 90
889
825
 
@@ -893,12 +829,12 @@ Metrics/BlockNesting:
893
829
  Max: 4
894
830
 
895
831
  # Offense count: 25
896
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
832
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
897
833
  Metrics/CyclomaticComplexity:
898
834
  Max: 24
899
835
 
900
836
  # Offense count: 71
901
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
837
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
902
838
  Metrics/MethodLength:
903
839
  Max: 58
904
840
 
@@ -914,7 +850,7 @@ Metrics/ParameterLists:
914
850
  Max: 6
915
851
 
916
852
  # Offense count: 23
917
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
853
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
918
854
  Metrics/PerceivedComplexity:
919
855
  Max: 25
920
856
 
@@ -925,16 +861,6 @@ Naming/AccessorMethodName:
925
861
  - 'spec/dummy/app/controllers/pets_controller.rb'
926
862
  - 'spec/dummy/app/controllers/users_controller.rb'
927
863
 
928
- # Offense count: 15
929
- # This cop supports safe autocorrection (--autocorrect).
930
- # Configuration parameters: EnforcedStyle, BlockForwardingName.
931
- # SupportedStyles: anonymous, explicit
932
- Naming/BlockForwarding:
933
- Exclude:
934
- - 'lib/apipie/apipie_module.rb'
935
- - 'lib/apipie/dsl_definition.rb'
936
- - 'lib/apipie/resource_description.rb'
937
-
938
864
  # Offense count: 1
939
865
  # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
940
866
  # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
@@ -951,9 +877,9 @@ Naming/HeredocDelimiterCase:
951
877
  Exclude:
952
878
  - 'spec/dummy/app/controllers/users_controller.rb'
953
879
 
954
- # Offense count: 6
880
+ # Offense count: 7
955
881
  # Configuration parameters: ForbiddenDelimiters.
956
- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
882
+ # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
957
883
  Naming/HeredocDelimiterNaming:
958
884
  Exclude:
959
885
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
@@ -992,23 +918,11 @@ Naming/PredicateName:
992
918
  # Offense count: 1
993
919
  # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
994
920
  # SupportedStyles: snake_case, normalcase, non_integer
995
- # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
921
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
996
922
  Naming/VariableNumber:
997
923
  Exclude:
998
924
  - 'spec/dummy/app/controllers/users_controller.rb'
999
925
 
1000
- # Offense count: 1
1001
- # This cop supports safe autocorrection (--autocorrect).
1002
- Performance/BindCall:
1003
- Exclude:
1004
- - 'lib/apipie/dsl_definition.rb'
1005
-
1006
- # Offense count: 1
1007
- # This cop supports safe autocorrection (--autocorrect).
1008
- Performance/BlockGivenWithExplicitBlock:
1009
- Exclude:
1010
- - 'lib/apipie/dsl_definition.rb'
1011
-
1012
926
  # Offense count: 4
1013
927
  # Configuration parameters: MinSize.
1014
928
  Performance/CollectionLiteralInLoop:
@@ -1036,15 +950,6 @@ Performance/InefficientHashSearch:
1036
950
  Exclude:
1037
951
  - 'lib/apipie/generator/swagger/warning.rb'
1038
952
 
1039
- # Offense count: 5
1040
- # This cop supports unsafe autocorrection (--autocorrect-all).
1041
- Performance/MapCompact:
1042
- Exclude:
1043
- - 'lib/apipie/application.rb'
1044
- - 'lib/apipie/param_description.rb'
1045
- - 'lib/apipie/response_description.rb'
1046
- - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1047
-
1048
953
  # Offense count: 1
1049
954
  # This cop supports safe autocorrection (--autocorrect).
1050
955
  Performance/RedundantBlockCall:
@@ -1059,11 +964,10 @@ Performance/RedundantMerge:
1059
964
  - 'lib/apipie/generator/swagger/param_description/type.rb'
1060
965
  - 'lib/apipie/middleware/checksum_in_headers.rb'
1061
966
 
1062
- # Offense count: 8
967
+ # Offense count: 7
1063
968
  # This cop supports safe autocorrection (--autocorrect).
1064
969
  Performance/RegexpMatch:
1065
970
  Exclude:
1066
- - 'app/controllers/apipie/apipies_controller.rb'
1067
971
  - 'lib/apipie/extractor/writer.rb'
1068
972
  - 'lib/apipie/helpers.rb'
1069
973
 
@@ -1073,13 +977,7 @@ Performance/StringIdentifierArgument:
1073
977
  Exclude:
1074
978
  - 'lib/apipie/extractor/writer.rb'
1075
979
  - 'spec/controllers/users_controller_spec.rb'
1076
- - 'spec/lib/method_description_spec.rb'
1077
-
1078
- # Offense count: 2
1079
- # This cop supports unsafe autocorrection (--autocorrect-all).
1080
- Performance/StringInclude:
1081
- Exclude:
1082
- - 'app/controllers/apipie/apipies_controller.rb'
980
+ - 'spec/lib/apipie/method_description_spec.rb'
1083
981
 
1084
982
  # Offense count: 7
1085
983
  # This cop supports safe autocorrection (--autocorrect).
@@ -1110,15 +1008,15 @@ RSpec/Be:
1110
1008
  # This cop supports unsafe autocorrection (--autocorrect-all).
1111
1009
  RSpec/BeEq:
1112
1010
  Exclude:
1113
- - 'spec/controllers/apipies_controller_spec.rb'
1114
1011
  - 'spec/controllers/users_controller_spec.rb'
1115
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
1116
- - 'spec/lib/generator/swagger/param_description_spec.rb'
1117
- - 'spec/lib/method_description/apis_service_spec.rb'
1118
- - 'spec/lib/method_description_spec.rb'
1119
- - 'spec/lib/param_description_spec.rb'
1120
- - 'spec/lib/param_group_spec.rb'
1121
- - 'spec/lib/resource_description_spec.rb'
1012
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1013
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1014
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1015
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1016
+ - 'spec/lib/apipie/method_description_spec.rb'
1017
+ - 'spec/lib/apipie/param_description_spec.rb'
1018
+ - 'spec/lib/apipie/param_group_spec.rb'
1019
+ - 'spec/lib/apipie/resource_description_spec.rb'
1122
1020
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1123
1021
  - 'spec/lib/validators/array_validator_spec.rb'
1124
1022
 
@@ -1127,22 +1025,22 @@ RSpec/BeforeAfterAll:
1127
1025
  Exclude:
1128
1026
  - 'spec/controllers/users_controller_spec.rb'
1129
1027
 
1130
- # Offense count: 47
1028
+ # Offense count: 55
1131
1029
  # Configuration parameters: Prefixes, AllowedPatterns.
1132
1030
  # Prefixes: when, with, without
1133
1031
  RSpec/ContextWording:
1134
1032
  Exclude:
1135
1033
  - 'spec/controllers/api/v1/architectures_controller_spec.rb'
1136
- - 'spec/controllers/apipies_controller_spec.rb'
1137
1034
  - 'spec/controllers/users_controller_spec.rb'
1138
- - 'spec/lib/file_handler_spec.rb'
1139
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
1140
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
1141
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
1142
- - 'spec/lib/method_description/apis_service_spec.rb'
1143
- - 'spec/lib/param_description_spec.rb'
1144
- - 'spec/lib/param_group_spec.rb'
1145
- - 'spec/lib/validator_spec.rb'
1035
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1036
+ - 'spec/lib/apipie/file_handler_spec.rb'
1037
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1038
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1039
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1040
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1041
+ - 'spec/lib/apipie/param_description_spec.rb'
1042
+ - 'spec/lib/apipie/param_group_spec.rb'
1043
+ - 'spec/lib/apipie/validator_spec.rb'
1146
1044
  - 'spec/lib/validators/array_validator_spec.rb'
1147
1045
  - 'spec/support/rake.rb'
1148
1046
 
@@ -1150,12 +1048,12 @@ RSpec/ContextWording:
1150
1048
  # Configuration parameters: IgnoredMetadata.
1151
1049
  RSpec/DescribeClass:
1152
1050
  Exclude:
1153
- - 'spec/lib/param_group_spec.rb'
1051
+ - 'spec/lib/apipie/param_group_spec.rb'
1154
1052
  - 'spec/lib/rake_spec.rb'
1155
1053
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1156
1054
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1157
1055
 
1158
- # Offense count: 94
1056
+ # Offense count: 96
1159
1057
  # This cop supports unsafe autocorrection (--autocorrect-all).
1160
1058
  # Configuration parameters: SkipBlocks, EnforcedStyle.
1161
1059
  # SupportedStyles: described_class, explicit
@@ -1165,38 +1063,29 @@ RSpec/DescribedClass:
1165
1063
  - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1166
1064
  - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1167
1065
  - 'spec/controllers/included_param_group_controller_spec.rb'
1168
- - 'spec/controllers/memes_controller_spec.rb'
1169
1066
  - 'spec/controllers/users_controller_spec.rb'
1170
- - 'spec/lib/extractor/extractor_spec.rb'
1171
- - 'spec/lib/extractor/middleware_spec.rb'
1172
- - 'spec/lib/extractor/writer_spec.rb'
1173
- - 'spec/lib/file_handler_spec.rb'
1174
- - 'spec/lib/method_description_spec.rb'
1175
- - 'spec/lib/param_description_spec.rb'
1176
- - 'spec/lib/resource_description_spec.rb'
1067
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
1068
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1069
+ - 'spec/lib/apipie/extractor_spec.rb'
1070
+ - 'spec/lib/apipie/file_handler_spec.rb'
1071
+ - 'spec/lib/apipie/method_description_spec.rb'
1072
+ - 'spec/lib/apipie/param_description_spec.rb'
1073
+ - 'spec/lib/apipie/resource_description_spec.rb'
1177
1074
  - 'spec/lib/validators/array_validator_spec.rb'
1075
+ - 'spec/test_engine/memes_controller_spec.rb'
1178
1076
 
1179
1077
  # Offense count: 1
1180
1078
  # This cop supports unsafe autocorrection (--autocorrect-all).
1181
1079
  RSpec/EmptyExampleGroup:
1182
1080
  Exclude:
1183
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
1184
-
1185
- # Offense count: 11
1186
- # This cop supports safe autocorrection (--autocorrect).
1187
- # Configuration parameters: AllowConsecutiveOneLiners.
1188
- RSpec/EmptyLineAfterExample:
1189
- Exclude:
1190
- - 'spec/controllers/apipies_controller_spec.rb'
1191
- - 'spec/lib/generator/swagger/context_spec.rb'
1192
- - 'spec/lib/swagger/swagger_dsl_spec.rb'
1081
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1193
1082
 
1194
1083
  # Offense count: 6
1195
1084
  # This cop supports safe autocorrection (--autocorrect).
1196
1085
  RSpec/EmptyLineAfterExampleGroup:
1197
1086
  Exclude:
1198
1087
  - 'spec/controllers/users_controller_spec.rb'
1199
- - 'spec/lib/param_description_spec.rb'
1088
+ - 'spec/lib/apipie/param_description_spec.rb'
1200
1089
 
1201
1090
  # Offense count: 1
1202
1091
  # This cop supports safe autocorrection (--autocorrect).
@@ -1209,13 +1098,13 @@ RSpec/EmptyLineAfterFinalLet:
1209
1098
  # Configuration parameters: AllowConsecutiveOneLiners.
1210
1099
  RSpec/EmptyLineAfterHook:
1211
1100
  Exclude:
1212
- - 'spec/controllers/apipies_controller_spec.rb'
1213
- - 'spec/lib/application_spec.rb'
1101
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1102
+ - 'spec/lib/apipie/application_spec.rb'
1214
1103
 
1215
1104
  # Offense count: 48
1216
1105
  # Configuration parameters: CountAsOne.
1217
1106
  RSpec/ExampleLength:
1218
- Max: 79
1107
+ Max: 85
1219
1108
 
1220
1109
  # Offense count: 165
1221
1110
  # This cop supports safe autocorrection (--autocorrect).
@@ -1229,16 +1118,16 @@ RSpec/ExampleWording:
1229
1118
  - 'spec/controllers/concerns_controller_spec.rb'
1230
1119
  - 'spec/controllers/extended_controller_spec.rb'
1231
1120
  - 'spec/controllers/included_param_group_controller_spec.rb'
1232
- - 'spec/controllers/memes_controller_spec.rb'
1233
1121
  - 'spec/controllers/users_controller_spec.rb'
1234
- - 'spec/lib/application_spec.rb'
1235
- - 'spec/lib/extractor/writer_spec.rb'
1236
- - 'spec/lib/method_description_spec.rb'
1237
- - 'spec/lib/param_description_spec.rb'
1238
- - 'spec/lib/param_group_spec.rb'
1239
- - 'spec/lib/resource_description_spec.rb'
1122
+ - 'spec/lib/apipie/application_spec.rb'
1123
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1124
+ - 'spec/lib/apipie/method_description_spec.rb'
1125
+ - 'spec/lib/apipie/param_description_spec.rb'
1126
+ - 'spec/lib/apipie/param_group_spec.rb'
1127
+ - 'spec/lib/apipie/resource_description_spec.rb'
1128
+ - 'spec/lib/apipie/validator_spec.rb'
1240
1129
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1241
- - 'spec/lib/validator_spec.rb'
1130
+ - 'spec/test_engine/memes_controller_spec.rb'
1242
1131
 
1243
1132
  # Offense count: 1
1244
1133
  # This cop supports safe autocorrection (--autocorrect).
@@ -1249,38 +1138,7 @@ RSpec/ExcessiveDocstringSpacing:
1249
1138
  # Offense count: 1
1250
1139
  RSpec/ExpectInHook:
1251
1140
  Exclude:
1252
- - 'spec/lib/extractor/writer_spec.rb'
1253
-
1254
- # Offense count: 25
1255
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
1256
- # Include: **/*_spec*rb*, **/spec/**/*
1257
- RSpec/FilePath:
1258
- Exclude:
1259
- - 'spec/controllers/apipies_controller_spec.rb'
1260
- - 'spec/controllers/memes_controller_spec.rb'
1261
- - 'spec/lib/application_spec.rb'
1262
- - 'spec/lib/extractor/extractor_spec.rb'
1263
- - 'spec/lib/extractor/middleware_spec.rb'
1264
- - 'spec/lib/extractor/writer_spec.rb'
1265
- - 'spec/lib/file_handler_spec.rb'
1266
- - 'spec/lib/generator/swagger/context_spec.rb'
1267
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
1268
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
1269
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
1270
- - 'spec/lib/generator/swagger/param_description/description_spec.rb'
1271
- - 'spec/lib/generator/swagger/param_description/in_spec.rb'
1272
- - 'spec/lib/generator/swagger/param_description/name_spec.rb'
1273
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
1274
- - 'spec/lib/generator/swagger/param_description_spec.rb'
1275
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
1276
- - 'spec/lib/generator/swagger/warning_spec.rb'
1277
- - 'spec/lib/generator/swagger/warning_writer_spec.rb'
1278
- - 'spec/lib/method_description/apis_service_spec.rb'
1279
- - 'spec/lib/method_description_spec.rb'
1280
- - 'spec/lib/param_description_spec.rb'
1281
- - 'spec/lib/resource_description_spec.rb'
1282
- - 'spec/lib/swagger/response_validation_spec.rb'
1283
- - 'spec/lib/validator_spec.rb'
1141
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1284
1142
 
1285
1143
  # Offense count: 8
1286
1144
  # This cop supports safe autocorrection (--autocorrect).
@@ -1288,19 +1146,19 @@ RSpec/FilePath:
1288
1146
  # SupportedStyles: implicit, each, example
1289
1147
  RSpec/HookArgument:
1290
1148
  Exclude:
1291
- - 'spec/lib/extractor/writer_spec.rb'
1292
- - 'spec/lib/method_description_spec.rb'
1293
- - 'spec/lib/resource_description_spec.rb'
1294
- - 'spec/lib/swagger/response_validation_spec.rb'
1149
+ - 'spec/controllers/pets_controller_spec.rb'
1150
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1151
+ - 'spec/lib/apipie/method_description_spec.rb'
1152
+ - 'spec/lib/apipie/resource_description_spec.rb'
1295
1153
 
1296
1154
  # Offense count: 5
1297
1155
  # This cop supports safe autocorrection (--autocorrect).
1298
1156
  RSpec/HooksBeforeExamples:
1299
1157
  Exclude:
1300
1158
  - 'spec/controllers/users_controller_spec.rb'
1301
- - 'spec/lib/application_spec.rb'
1302
- - 'spec/lib/extractor/writer_spec.rb'
1303
- - 'spec/lib/param_description_spec.rb'
1159
+ - 'spec/lib/apipie/application_spec.rb'
1160
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1161
+ - 'spec/lib/apipie/param_description_spec.rb'
1304
1162
 
1305
1163
  # Offense count: 2
1306
1164
  # This cop supports safe autocorrection (--autocorrect).
@@ -1308,27 +1166,27 @@ RSpec/HooksBeforeExamples:
1308
1166
  # SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
1309
1167
  RSpec/ImplicitSubject:
1310
1168
  Exclude:
1311
- - 'spec/lib/application_spec.rb'
1169
+ - 'spec/lib/apipie/application_spec.rb'
1312
1170
 
1313
1171
  # Offense count: 30
1314
1172
  # Configuration parameters: AssignmentOnly.
1315
1173
  RSpec/InstanceVariable:
1316
1174
  Exclude:
1317
- - 'spec/controllers/apipies_controller_spec.rb'
1318
- - 'spec/lib/method_description_spec.rb'
1319
- - 'spec/lib/resource_description_spec.rb'
1175
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1176
+ - 'spec/lib/apipie/method_description_spec.rb'
1177
+ - 'spec/lib/apipie/resource_description_spec.rb'
1320
1178
 
1321
1179
  # Offense count: 9
1322
1180
  # This cop supports safe autocorrection (--autocorrect).
1323
1181
  RSpec/LeadingSubject:
1324
1182
  Exclude:
1325
- - 'spec/lib/generator/swagger/context_spec.rb'
1326
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
1327
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
1328
- - 'spec/lib/generator/swagger/param_description/name_spec.rb'
1329
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
1330
- - 'spec/lib/generator/swagger/param_description_spec.rb'
1331
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
1183
+ - 'spec/lib/apipie/generator/swagger/context_spec.rb'
1184
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1185
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1186
+ - 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
1187
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1188
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1189
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1332
1190
  - 'spec/support/rake.rb'
1333
1191
 
1334
1192
  # Offense count: 1
@@ -1346,12 +1204,12 @@ RSpec/MessageSpies:
1346
1204
  RSpec/MultipleExpectations:
1347
1205
  Max: 19
1348
1206
 
1349
- # Offense count: 64
1207
+ # Offense count: 66
1350
1208
  # Configuration parameters: AllowSubject.
1351
1209
  RSpec/MultipleMemoizedHelpers:
1352
1210
  Max: 15
1353
1211
 
1354
- # Offense count: 63
1212
+ # Offense count: 64
1355
1213
  # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
1356
1214
  # SupportedStyles: always, named_only
1357
1215
  RSpec/NamedSubject:
@@ -1360,29 +1218,31 @@ RSpec/NamedSubject:
1360
1218
  - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1361
1219
  - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1362
1220
  - 'spec/controllers/users_controller_spec.rb'
1363
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
1364
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
1365
- - 'spec/lib/generator/swagger/param_description_spec.rb'
1366
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
1367
- - 'spec/lib/generator/swagger/warning_spec.rb'
1368
- - 'spec/lib/generator/swagger/warning_writer_spec.rb'
1369
- - 'spec/lib/method_description/apis_service_spec.rb'
1370
- - 'spec/lib/param_description_spec.rb'
1221
+ - 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
1222
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
1223
+ - 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
1224
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
1225
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
1226
+ - 'spec/lib/apipie/generator/swagger/warning_writer_spec.rb'
1227
+ - 'spec/lib/apipie/method_description/apis_service_spec.rb'
1228
+ - 'spec/lib/apipie/param_description/deprecation_spec.rb'
1229
+ - 'spec/lib/apipie/param_description_spec.rb'
1371
1230
  - 'spec/lib/rake_spec.rb'
1372
1231
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1373
1232
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1374
1233
 
1375
- # Offense count: 43
1234
+ # Offense count: 51
1376
1235
  # Configuration parameters: AllowedGroups.
1377
1236
  RSpec/NestedGroups:
1378
1237
  Max: 6
1379
1238
 
1380
- # Offense count: 1
1239
+ # Offense count: 2
1381
1240
  # Configuration parameters: AllowedPatterns.
1382
1241
  # AllowedPatterns: ^expect_, ^assert_
1383
1242
  RSpec/NoExpectationExample:
1384
1243
  Exclude:
1385
1244
  - 'spec/controllers/users_controller_spec.rb'
1245
+ - 'spec/test_engine/memes_controller_spec.rb'
1386
1246
 
1387
1247
  # Offense count: 11
1388
1248
  # This cop supports safe autocorrection (--autocorrect).
@@ -1390,18 +1250,18 @@ RSpec/NoExpectationExample:
1390
1250
  # SupportedStyles: not_to, to_not
1391
1251
  RSpec/NotToNot:
1392
1252
  Exclude:
1393
- - 'spec/lib/file_handler_spec.rb'
1394
- - 'spec/lib/param_description_spec.rb'
1253
+ - 'spec/lib/apipie/file_handler_spec.rb'
1254
+ - 'spec/lib/apipie/param_description_spec.rb'
1395
1255
 
1396
1256
  # Offense count: 1
1397
1257
  RSpec/OverwritingSetup:
1398
1258
  Exclude:
1399
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
1259
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1400
1260
 
1401
1261
  # Offense count: 1
1402
1262
  RSpec/PendingWithoutReason:
1403
1263
  Exclude:
1404
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
1264
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
1405
1265
 
1406
1266
  # Offense count: 6
1407
1267
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -1409,44 +1269,51 @@ RSpec/PendingWithoutReason:
1409
1269
  # SupportedStyles: inflected, explicit
1410
1270
  RSpec/PredicateMatcher:
1411
1271
  Exclude:
1412
- - 'spec/lib/file_handler_spec.rb'
1272
+ - 'spec/lib/apipie/file_handler_spec.rb'
1413
1273
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1414
1274
 
1275
+ # Offense count: 1
1276
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1277
+ # Configuration parameters: Inferences.
1278
+ RSpec/Rails/InferredSpecType:
1279
+ Exclude:
1280
+ - 'spec/controllers/pets_controller_spec.rb'
1281
+
1415
1282
  # Offense count: 4
1416
1283
  RSpec/RepeatedExample:
1417
1284
  Exclude:
1418
- - 'spec/lib/method_description_spec.rb'
1419
- - 'spec/lib/resource_description_spec.rb'
1285
+ - 'spec/lib/apipie/method_description_spec.rb'
1286
+ - 'spec/lib/apipie/resource_description_spec.rb'
1420
1287
 
1421
1288
  # Offense count: 2
1422
1289
  RSpec/RepeatedExampleGroupBody:
1423
1290
  Exclude:
1424
- - 'spec/lib/generator/swagger/warning_spec.rb'
1291
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
1425
1292
 
1426
1293
  # Offense count: 4
1427
1294
  RSpec/RepeatedExampleGroupDescription:
1428
1295
  Exclude:
1429
- - 'spec/controllers/apipies_controller_spec.rb'
1430
- - 'spec/lib/application_spec.rb'
1296
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1297
+ - 'spec/lib/apipie/application_spec.rb'
1431
1298
 
1432
1299
  # Offense count: 2
1433
1300
  RSpec/StubbedMock:
1434
1301
  Exclude:
1435
- - 'spec/lib/extractor/writer_spec.rb'
1436
- - 'spec/lib/param_description_spec.rb'
1302
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1303
+ - 'spec/lib/apipie/param_description_spec.rb'
1437
1304
 
1438
1305
  # Offense count: 5
1439
1306
  # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
1440
1307
  RSpec/VerifiedDoubles:
1441
1308
  Exclude:
1442
- - 'spec/controllers/apipies_controller_spec.rb'
1443
- - 'spec/lib/extractor/writer_spec.rb'
1309
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1310
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1444
1311
  - 'spec/lib/validators/array_validator_spec.rb'
1445
1312
 
1446
1313
  # Offense count: 1
1447
1314
  RSpec/VoidExpect:
1448
1315
  Exclude:
1449
- - 'spec/lib/extractor/writer_spec.rb'
1316
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1450
1317
 
1451
1318
  # Offense count: 4
1452
1319
  # This cop supports unsafe autocorrection (--autocorrect-all).
@@ -1464,7 +1331,7 @@ Rails/Delegate:
1464
1331
  Exclude:
1465
1332
  - 'lib/apipie/response_description_adapter.rb'
1466
1333
 
1467
- # Offense count: 23
1334
+ # Offense count: 24
1468
1335
  # Configuration parameters: EnforcedStyle.
1469
1336
  # SupportedStyles: slashes, arguments
1470
1337
  Rails/FilePath:
@@ -1472,10 +1339,10 @@ Rails/FilePath:
1472
1339
  - 'lib/apipie/configuration.rb'
1473
1340
  - 'lib/apipie/dsl_definition.rb'
1474
1341
  - 'lib/tasks/apipie.rake'
1475
- - 'spec/controllers/apipies_controller_spec.rb'
1476
1342
  - 'spec/dummy/config/initializers/apipie.rb'
1477
- - 'spec/lib/application_spec.rb'
1478
- - 'spec/lib/extractor/writer_spec.rb'
1343
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1344
+ - 'spec/lib/apipie/application_spec.rb'
1345
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1479
1346
  - 'spec/lib/rake_spec.rb'
1480
1347
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1481
1348
  - 'spec/spec_helper.rb'
@@ -1523,12 +1390,12 @@ Rails/OutputSafety:
1523
1390
  - 'lib/apipie/helpers.rb'
1524
1391
 
1525
1392
  # Offense count: 6
1526
- # This cop supports safe autocorrection (--autocorrect).
1393
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1527
1394
  Rails/Pluck:
1528
1395
  Exclude:
1529
1396
  - 'lib/apipie/extractor/writer.rb'
1530
- - 'spec/lib/method_description_spec.rb'
1531
- - 'spec/lib/resource_description_spec.rb'
1397
+ - 'spec/lib/apipie/method_description_spec.rb'
1398
+ - 'spec/lib/apipie/resource_description_spec.rb'
1532
1399
 
1533
1400
  # Offense count: 5
1534
1401
  # This cop supports safe autocorrection (--autocorrect).
@@ -1555,28 +1422,13 @@ Rails/RootPathnameMethods:
1555
1422
  - 'lib/apipie/configuration.rb'
1556
1423
  - 'lib/apipie/dsl_definition.rb'
1557
1424
  - 'lib/tasks/apipie.rake'
1558
- - 'spec/controllers/apipies_controller_spec.rb'
1559
1425
  - 'spec/dummy/config/initializers/apipie.rb'
1560
- - 'spec/lib/application_spec.rb'
1561
- - 'spec/lib/extractor/writer_spec.rb'
1426
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
1427
+ - 'spec/lib/apipie/application_spec.rb'
1428
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1562
1429
  - 'spec/lib/rake_spec.rb'
1563
1430
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1564
1431
 
1565
- # Offense count: 4
1566
- # This cop supports unsafe autocorrection (--autocorrect-all).
1567
- # Configuration parameters: EnforcedStyle.
1568
- # SupportedStyles: strict, flexible
1569
- Rails/TimeZone:
1570
- Exclude:
1571
- - 'lib/tasks/apipie.rake'
1572
-
1573
- # Offense count: 3
1574
- # This cop supports safe autocorrection (--autocorrect).
1575
- Rails/TopLevelHashWithIndifferentAccess:
1576
- Exclude:
1577
- - 'lib/apipie/application.rb'
1578
- - 'lib/apipie/configuration.rb'
1579
-
1580
1432
  # Offense count: 1
1581
1433
  # This cop supports unsafe autocorrection (--autocorrect-all).
1582
1434
  Security/IoMethods:
@@ -1600,16 +1452,9 @@ Style/AndOr:
1600
1452
  Exclude:
1601
1453
  - 'lib/apipie/param_description.rb'
1602
1454
 
1603
- # Offense count: 2
1604
- # This cop supports safe autocorrection (--autocorrect).
1605
- # Configuration parameters: AllowOnlyRestArgument.
1606
- Style/ArgumentsForwarding:
1607
- Exclude:
1608
- - 'lib/apipie/dsl_definition.rb'
1609
-
1610
1455
  # Offense count: 17
1611
1456
  # This cop supports safe autocorrection (--autocorrect).
1612
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
1457
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
1613
1458
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
1614
1459
  # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
1615
1460
  # FunctionalMethods: let, let!, subject, watch
@@ -1619,7 +1464,7 @@ Style/BlockDelimiters:
1619
1464
  - 'lib/tasks/apipie.rake'
1620
1465
  - 'spec/controllers/users_controller_spec.rb'
1621
1466
  - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1622
- - 'spec/lib/extractor/writer_spec.rb'
1467
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
1623
1468
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1624
1469
 
1625
1470
  # Offense count: 1
@@ -1629,12 +1474,6 @@ Style/CaseEquality:
1629
1474
  Exclude:
1630
1475
  - 'lib/apipie/validator.rb'
1631
1476
 
1632
- # Offense count: 1
1633
- # This cop supports unsafe autocorrection (--autocorrect-all).
1634
- Style/CaseLikeIf:
1635
- Exclude:
1636
- - 'lib/apipie/generator/swagger/operation_id.rb'
1637
-
1638
1477
  # Offense count: 28
1639
1478
  # This cop supports unsafe autocorrection (--autocorrect-all).
1640
1479
  # Configuration parameters: EnforcedStyle.
@@ -1677,7 +1516,7 @@ Style/ClassCheck:
1677
1516
 
1678
1517
  # Offense count: 2
1679
1518
  # This cop supports safe autocorrection (--autocorrect).
1680
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
1519
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
1681
1520
  # AllowedMethods: ==, equal?, eql?
1682
1521
  Style/ClassEqualityComparison:
1683
1522
  Exclude:
@@ -1707,8 +1546,8 @@ Style/ColonMethodCall:
1707
1546
  Style/CommentAnnotation:
1708
1547
  Exclude:
1709
1548
  - 'lib/apipie/apipie_module.rb'
1549
+ - 'spec/controllers/pets_controller_spec.rb'
1710
1550
  - 'spec/lib/swagger/rake_swagger_spec.rb'
1711
- - 'spec/lib/swagger/response_validation_spec.rb'
1712
1551
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
1713
1552
 
1714
1553
  # Offense count: 17
@@ -1817,161 +1656,13 @@ Style/For:
1817
1656
 
1818
1657
  # Offense count: 8
1819
1658
  # This cop supports safe autocorrection (--autocorrect).
1820
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods.
1659
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
1821
1660
  # SupportedStyles: annotated, template, unannotated
1661
+ # AllowedMethods: redirect
1822
1662
  Style/FormatStringToken:
1823
1663
  EnforcedStyle: template
1824
1664
 
1825
- # Offense count: 142
1826
- # This cop supports unsafe autocorrection (--autocorrect-all).
1827
- # Configuration parameters: EnforcedStyle.
1828
- # SupportedStyles: always, always_true, never
1829
- Style/FrozenStringLiteralComment:
1830
- Exclude:
1831
- - 'Gemfile'
1832
- - 'Rakefile'
1833
- - 'apipie-rails.gemspec'
1834
- - 'app/controllers/apipie/apipies_controller.rb'
1835
- - 'app/helpers/apipie_helper.rb'
1836
- - 'lib/apipie-rails.rb'
1837
- - 'lib/apipie/apipie_module.rb'
1838
- - 'lib/apipie/application.rb'
1839
- - 'lib/apipie/configuration.rb'
1840
- - 'lib/apipie/core_ext/route.rb'
1841
- - 'lib/apipie/dsl_definition.rb'
1842
- - 'lib/apipie/error_description.rb'
1843
- - 'lib/apipie/errors.rb'
1844
- - 'lib/apipie/extractor.rb'
1845
- - 'lib/apipie/extractor/collector.rb'
1846
- - 'lib/apipie/extractor/recorder.rb'
1847
- - 'lib/apipie/extractor/writer.rb'
1848
- - 'lib/apipie/generator/generator.rb'
1849
- - 'lib/apipie/generator/swagger/context.rb'
1850
- - 'lib/apipie/generator/swagger/operation_id.rb'
1851
- - 'lib/apipie/generator/swagger/param_description.rb'
1852
- - 'lib/apipie/generator/swagger/param_description/builder.rb'
1853
- - 'lib/apipie/generator/swagger/param_description/composite.rb'
1854
- - 'lib/apipie/generator/swagger/param_description/description.rb'
1855
- - 'lib/apipie/generator/swagger/param_description/in.rb'
1856
- - 'lib/apipie/generator/swagger/param_description/name.rb'
1857
- - 'lib/apipie/generator/swagger/param_description/type.rb'
1858
- - 'lib/apipie/generator/swagger/swagger.rb'
1859
- - 'lib/apipie/generator/swagger/type.rb'
1860
- - 'lib/apipie/generator/swagger/type_extractor.rb'
1861
- - 'lib/apipie/generator/swagger/warning.rb'
1862
- - 'lib/apipie/generator/swagger/warning_writer.rb'
1863
- - 'lib/apipie/helpers.rb'
1864
- - 'lib/apipie/markup.rb'
1865
- - 'lib/apipie/method_description.rb'
1866
- - 'lib/apipie/method_description/api.rb'
1867
- - 'lib/apipie/method_description/apis_service.rb'
1868
- - 'lib/apipie/middleware/checksum_in_headers.rb'
1869
- - 'lib/apipie/param_description.rb'
1870
- - 'lib/apipie/railtie.rb'
1871
- - 'lib/apipie/resource_description.rb'
1872
- - 'lib/apipie/response_description.rb'
1873
- - 'lib/apipie/response_description_adapter.rb'
1874
- - 'lib/apipie/routes_formatter.rb'
1875
- - 'lib/apipie/routing.rb'
1876
- - 'lib/apipie/rspec/response_validation_helper.rb'
1877
- - 'lib/apipie/see_description.rb'
1878
- - 'lib/apipie/static_dispatcher.rb'
1879
- - 'lib/apipie/swagger_generator.rb'
1880
- - 'lib/apipie/tag_list_description.rb'
1881
- - 'lib/apipie/validator.rb'
1882
- - 'lib/apipie/version.rb'
1883
- - 'lib/generators/apipie/install/install_generator.rb'
1884
- - 'lib/generators/apipie/views_generator.rb'
1885
- - 'lib/tasks/apipie.rake'
1886
- - 'spec/controllers/api/v1/architectures_controller_spec.rb'
1887
- - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1888
- - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1889
- - 'spec/controllers/apipies_controller_spec.rb'
1890
- - 'spec/controllers/concerns_controller_spec.rb'
1891
- - 'spec/controllers/extended_controller_spec.rb'
1892
- - 'spec/controllers/included_param_group_controller_spec.rb'
1893
- - 'spec/controllers/memes_controller_spec.rb'
1894
- - 'spec/controllers/users_controller_spec.rb'
1895
- - 'spec/dummy/Gemfile'
1896
- - 'spec/dummy/Rakefile'
1897
- - 'spec/dummy/app/controllers/api/base_controller.rb'
1898
- - 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
1899
- - 'spec/dummy/app/controllers/api/v1/base_controller.rb'
1900
- - 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
1901
- - 'spec/dummy/app/controllers/api/v2/base_controller.rb'
1902
- - 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
1903
- - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
1904
- - 'spec/dummy/app/controllers/application_controller.rb'
1905
- - 'spec/dummy/app/controllers/concerns_controller.rb'
1906
- - 'spec/dummy/app/controllers/extended_controller.rb'
1907
- - 'spec/dummy/app/controllers/extending_concern.rb'
1908
- - 'spec/dummy/app/controllers/files_controller.rb'
1909
- - 'spec/dummy/app/controllers/included_param_group_controller.rb'
1910
- - 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
1911
- - 'spec/dummy/app/controllers/pets_controller.rb'
1912
- - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1913
- - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1914
- - 'spec/dummy/app/controllers/sample_controller.rb'
1915
- - 'spec/dummy/app/controllers/tagged_cats_controller.rb'
1916
- - 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
1917
- - 'spec/dummy/app/controllers/twitter_example_controller.rb'
1918
- - 'spec/dummy/app/controllers/users_controller.rb'
1919
- - 'spec/dummy/app/helpers/random_param_group.rb'
1920
- - 'spec/dummy/bin/setup'
1921
- - 'spec/dummy/components/test_engine/Gemfile'
1922
- - 'spec/dummy/components/test_engine/app/controllers/test_engine/application_controller.rb'
1923
- - 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
1924
- - 'spec/dummy/components/test_engine/config/routes.rb'
1925
- - 'spec/dummy/components/test_engine/lib/test_engine.rb'
1926
- - 'spec/dummy/components/test_engine/test_engine.gemspec'
1927
- - 'spec/dummy/config.ru'
1928
- - 'spec/dummy/config/application.rb'
1929
- - 'spec/dummy/config/boot.rb'
1930
- - 'spec/dummy/config/environment.rb'
1931
- - 'spec/dummy/config/environments/development.rb'
1932
- - 'spec/dummy/config/environments/production.rb'
1933
- - 'spec/dummy/config/environments/test.rb'
1934
- - 'spec/dummy/config/initializers/apipie.rb'
1935
- - 'spec/dummy/config/initializers/backtrace_silencers.rb'
1936
- - 'spec/dummy/config/initializers/inflections.rb'
1937
- - 'spec/dummy/config/initializers/mime_types.rb'
1938
- - 'spec/dummy/config/initializers/secret_token.rb'
1939
- - 'spec/dummy/config/initializers/session_store.rb'
1940
- - 'spec/dummy/config/routes.rb'
1941
- - 'spec/dummy/script/rails'
1942
- - 'spec/lib/application_spec.rb'
1943
- - 'spec/lib/extractor/extractor_spec.rb'
1944
- - 'spec/lib/extractor/middleware_spec.rb'
1945
- - 'spec/lib/extractor/writer_spec.rb'
1946
- - 'spec/lib/file_handler_spec.rb'
1947
- - 'spec/lib/generator/swagger/context_spec.rb'
1948
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
1949
- - 'spec/lib/generator/swagger/param_description/builder_spec.rb'
1950
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
1951
- - 'spec/lib/generator/swagger/param_description/description_spec.rb'
1952
- - 'spec/lib/generator/swagger/param_description/in_spec.rb'
1953
- - 'spec/lib/generator/swagger/param_description/name_spec.rb'
1954
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
1955
- - 'spec/lib/generator/swagger/param_description_spec.rb'
1956
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
1957
- - 'spec/lib/generator/swagger/warning_spec.rb'
1958
- - 'spec/lib/generator/swagger/warning_writer_spec.rb'
1959
- - 'spec/lib/method_description/apis_service_spec.rb'
1960
- - 'spec/lib/method_description_spec.rb'
1961
- - 'spec/lib/param_description_spec.rb'
1962
- - 'spec/lib/param_group_spec.rb'
1963
- - 'spec/lib/rake_spec.rb'
1964
- - 'spec/lib/resource_description_spec.rb'
1965
- - 'spec/lib/swagger/rake_swagger_spec.rb'
1966
- - 'spec/lib/swagger/response_validation_spec.rb'
1967
- - 'spec/lib/swagger/swagger_dsl_spec.rb'
1968
- - 'spec/lib/validator_spec.rb'
1969
- - 'spec/lib/validators/array_validator_spec.rb'
1970
- - 'spec/spec_helper.rb'
1971
- - 'spec/support/custom_bool_validator.rb'
1972
- - 'spec/support/rake.rb'
1973
-
1974
- # Offense count: 35
1665
+ # Offense count: 34
1975
1666
  # This cop supports safe autocorrection (--autocorrect).
1976
1667
  # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
1977
1668
  Style/GuardClause:
@@ -2024,37 +1715,6 @@ Style/IfInsideElse:
2024
1715
  - 'lib/apipie/swagger_generator.rb'
2025
1716
  - 'spec/spec_helper.rb'
2026
1717
 
2027
- # Offense count: 76
2028
- # This cop supports safe autocorrection (--autocorrect).
2029
- Style/IfUnlessModifier:
2030
- Exclude:
2031
- - 'Gemfile'
2032
- - 'app/controllers/apipie/apipies_controller.rb'
2033
- - 'lib/apipie/application.rb'
2034
- - 'lib/apipie/dsl_definition.rb'
2035
- - 'lib/apipie/extractor.rb'
2036
- - 'lib/apipie/extractor/collector.rb'
2037
- - 'lib/apipie/extractor/writer.rb'
2038
- - 'lib/apipie/generator/swagger/param_description/composite.rb'
2039
- - 'lib/apipie/generator/swagger/param_description/type.rb'
2040
- - 'lib/apipie/generator/swagger/type_extractor.rb'
2041
- - 'lib/apipie/generator/swagger/warning.rb'
2042
- - 'lib/apipie/method_description.rb'
2043
- - 'lib/apipie/param_description.rb'
2044
- - 'lib/apipie/resource_description.rb'
2045
- - 'lib/apipie/routes_formatter.rb'
2046
- - 'lib/apipie/rspec/response_validation_helper.rb'
2047
- - 'lib/apipie/see_description.rb'
2048
- - 'lib/apipie/swagger_generator.rb'
2049
- - 'lib/apipie/validator.rb'
2050
- - 'lib/tasks/apipie.rake'
2051
- - 'spec/dummy/Gemfile'
2052
- - 'spec/dummy/app/controllers/application_controller.rb'
2053
- - 'spec/dummy/app/controllers/users_controller.rb'
2054
- - 'spec/dummy/config/initializers/apipie.rb'
2055
- - 'spec/lib/swagger/swagger_dsl_spec.rb'
2056
- - 'spec/spec_helper.rb'
2057
-
2058
1718
  # Offense count: 4
2059
1719
  # This cop supports unsafe autocorrection (--autocorrect-all).
2060
1720
  # Configuration parameters: AllowedMethods.
@@ -2065,16 +1725,6 @@ Style/IfWithBooleanLiteralBranches:
2065
1725
  - 'lib/apipie/validator.rb'
2066
1726
  - 'lib/tasks/apipie.rake'
2067
1727
 
2068
- # Offense count: 4
2069
- # This cop supports unsafe autocorrection (--autocorrect-all).
2070
- # Configuration parameters: InverseMethods, InverseBlocks.
2071
- Style/InverseMethods:
2072
- Exclude:
2073
- - 'lib/apipie/extractor/collector.rb'
2074
- - 'lib/apipie/method_description.rb'
2075
- - 'lib/apipie/param_description.rb'
2076
- - 'lib/apipie/swagger_generator.rb'
2077
-
2078
1728
  # Offense count: 5
2079
1729
  # This cop supports safe autocorrection (--autocorrect).
2080
1730
  # Configuration parameters: EnforcedStyle.
@@ -2083,12 +1733,12 @@ Style/Lambda:
2083
1733
  Exclude:
2084
1734
  - 'lib/apipie/configuration.rb'
2085
1735
  - 'spec/dummy/app/controllers/users_controller.rb'
2086
- - 'spec/lib/extractor/middleware_spec.rb'
1736
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
2087
1737
  - 'spec/lib/validators/array_validator_spec.rb'
2088
1738
 
2089
1739
  # Offense count: 2
2090
1740
  # This cop supports safe autocorrection (--autocorrect).
2091
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
1741
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
2092
1742
  Style/MethodCallWithoutArgsParentheses:
2093
1743
  Exclude:
2094
1744
  - 'lib/apipie/extractor/recorder.rb'
@@ -2162,7 +1812,7 @@ Style/NegatedIfElseCondition:
2162
1812
  # 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
2163
1813
  Style/NestedParenthesizedCalls:
2164
1814
  Exclude:
2165
- - 'spec/lib/file_handler_spec.rb'
1815
+ - 'spec/lib/apipie/file_handler_spec.rb'
2166
1816
 
2167
1817
  # Offense count: 1
2168
1818
  # This cop supports safe autocorrection (--autocorrect).
@@ -2207,7 +1857,7 @@ Style/PerlBackrefs:
2207
1857
  # This cop supports safe autocorrection (--autocorrect).
2208
1858
  Style/Proc:
2209
1859
  Exclude:
2210
- - 'spec/controllers/apipies_controller_spec.rb'
1860
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
2211
1861
 
2212
1862
  # Offense count: 7
2213
1863
  # This cop supports safe autocorrection (--autocorrect).
@@ -2248,16 +1898,6 @@ Style/RedundantConditional:
2248
1898
  - 'lib/apipie/validator.rb'
2249
1899
  - 'lib/tasks/apipie.rake'
2250
1900
 
2251
- # Offense count: 9
2252
- # This cop supports safe autocorrection (--autocorrect).
2253
- Style/RedundantConstantBase:
2254
- Exclude:
2255
- - 'lib/tasks/apipie.rake'
2256
- - 'spec/dummy/config.ru'
2257
- - 'spec/lib/rake_spec.rb'
2258
- - 'spec/lib/swagger/rake_swagger_spec.rb'
2259
- - 'spec/spec_helper.rb'
2260
-
2261
1901
  # Offense count: 5
2262
1902
  # This cop supports unsafe autocorrection (--autocorrect-all).
2263
1903
  Style/RedundantInterpolation:
@@ -2321,21 +1961,6 @@ Style/RedundantStringEscape:
2321
1961
  Exclude:
2322
1962
  - 'spec/dummy/app/controllers/users_controller.rb'
2323
1963
 
2324
- # Offense count: 12
2325
- # This cop supports safe autocorrection (--autocorrect).
2326
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
2327
- # SupportedStyles: slashes, percent_r, mixed
2328
- Style/RegexpLiteral:
2329
- Exclude:
2330
- - 'lib/apipie/extractor.rb'
2331
- - 'lib/apipie/extractor/collector.rb'
2332
- - 'lib/apipie/extractor/recorder.rb'
2333
- - 'lib/apipie/generator/swagger/operation_id.rb'
2334
- - 'lib/apipie/helpers.rb'
2335
- - 'lib/apipie/routing.rb'
2336
- - 'lib/apipie/swagger_generator.rb'
2337
- - 'lib/tasks/apipie.rake'
2338
-
2339
1964
  # Offense count: 1
2340
1965
  # This cop supports safe autocorrection (--autocorrect).
2341
1966
  # Configuration parameters: EnforcedStyle.
@@ -2344,17 +1969,6 @@ Style/RescueStandardError:
2344
1969
  Exclude:
2345
1970
  - 'lib/apipie/dsl_definition.rb'
2346
1971
 
2347
- # Offense count: 6
2348
- # This cop supports unsafe autocorrection (--autocorrect-all).
2349
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
2350
- # AllowedMethods: present?, blank?, presence, try, try!
2351
- Style/SafeNavigation:
2352
- Exclude:
2353
- - 'lib/apipie/application.rb'
2354
- - 'lib/apipie/dsl_definition.rb'
2355
- - 'lib/apipie/extractor.rb'
2356
- - 'lib/apipie/validator.rb'
2357
-
2358
1972
  # Offense count: 1
2359
1973
  # This cop supports unsafe autocorrection (--autocorrect-all).
2360
1974
  Style/SelectByRegexp:
@@ -2410,13 +2024,12 @@ Style/StringConcatenation:
2410
2024
  - 'lib/apipie/extractor/writer.rb'
2411
2025
  - 'lib/apipie/swagger_generator.rb'
2412
2026
 
2413
- # Offense count: 1304
2027
+ # Offense count: 1293
2414
2028
  # This cop supports safe autocorrection (--autocorrect).
2415
2029
  # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
2416
2030
  # SupportedStyles: single_quotes, double_quotes
2417
2031
  Style/StringLiterals:
2418
2032
  Exclude:
2419
- - 'Gemfile'
2420
2033
  - 'Rakefile'
2421
2034
  - 'apipie-rails.gemspec'
2422
2035
  - 'app/controllers/apipie/apipies_controller.rb'
@@ -2448,13 +2061,11 @@ Style/StringLiterals:
2448
2061
  - 'spec/controllers/api/v1/architectures_controller_spec.rb'
2449
2062
  - 'spec/controllers/api/v2/architectures_controller_spec.rb'
2450
2063
  - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
2451
- - 'spec/controllers/apipies_controller_spec.rb'
2452
2064
  - 'spec/controllers/concerns_controller_spec.rb'
2453
2065
  - 'spec/controllers/extended_controller_spec.rb'
2454
2066
  - 'spec/controllers/included_param_group_controller_spec.rb'
2455
- - 'spec/controllers/memes_controller_spec.rb'
2067
+ - 'spec/controllers/pets_controller_spec.rb'
2456
2068
  - 'spec/controllers/users_controller_spec.rb'
2457
- - 'spec/dummy/Gemfile'
2458
2069
  - 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
2459
2070
  - 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
2460
2071
  - 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
@@ -2469,33 +2080,34 @@ Style/StringLiterals:
2469
2080
  - 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
2470
2081
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
2471
2082
  - 'spec/dummy/app/controllers/users_controller.rb'
2472
- - 'spec/dummy/bin/setup'
2473
2083
  - 'spec/dummy/components/test_engine/Gemfile'
2474
2084
  - 'spec/dummy/config/application.rb'
2475
2085
  - 'spec/dummy/config/initializers/apipie.rb'
2476
2086
  - 'spec/dummy/config/routes.rb'
2477
- - 'spec/lib/application_spec.rb'
2478
- - 'spec/lib/extractor/extractor_spec.rb'
2479
- - 'spec/lib/extractor/middleware_spec.rb'
2480
- - 'spec/lib/extractor/writer_spec.rb'
2481
- - 'spec/lib/file_handler_spec.rb'
2482
- - 'spec/lib/generator/swagger/operation_id_spec.rb'
2483
- - 'spec/lib/generator/swagger/param_description/composite_spec.rb'
2484
- - 'spec/lib/generator/swagger/type_extractor_spec.rb'
2485
- - 'spec/lib/generator/swagger/warning_spec.rb'
2486
- - 'spec/lib/method_description_spec.rb'
2487
- - 'spec/lib/param_description_spec.rb'
2488
- - 'spec/lib/param_group_spec.rb'
2087
+ - 'spec/lib/apipie/apipies_controller_spec.rb'
2088
+ - 'spec/lib/apipie/application_spec.rb'
2089
+ - 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
2090
+ - 'spec/lib/apipie/extractor/writer_spec.rb'
2091
+ - 'spec/lib/apipie/extractor_spec.rb'
2092
+ - 'spec/lib/apipie/file_handler_spec.rb'
2093
+ - 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
2094
+ - 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
2095
+ - 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
2096
+ - 'spec/lib/apipie/generator/swagger/warning_spec.rb'
2097
+ - 'spec/lib/apipie/method_description_spec.rb'
2098
+ - 'spec/lib/apipie/param_description/deprecation_spec.rb'
2099
+ - 'spec/lib/apipie/param_description_spec.rb'
2100
+ - 'spec/lib/apipie/param_group_spec.rb'
2101
+ - 'spec/lib/apipie/resource_description_spec.rb'
2102
+ - 'spec/lib/apipie/validator_spec.rb'
2489
2103
  - 'spec/lib/rake_spec.rb'
2490
- - 'spec/lib/resource_description_spec.rb'
2491
2104
  - 'spec/lib/swagger/rake_swagger_spec.rb'
2492
- - 'spec/lib/swagger/response_validation_spec.rb'
2493
2105
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
2494
- - 'spec/lib/validator_spec.rb'
2495
2106
  - 'spec/lib/validators/array_validator_spec.rb'
2496
2107
  - 'spec/spec_helper.rb'
2497
2108
  - 'spec/support/custom_bool_validator.rb'
2498
2109
  - 'spec/support/rake.rb'
2110
+ - 'spec/test_engine/memes_controller_spec.rb'
2499
2111
 
2500
2112
  # Offense count: 38
2501
2113
  # This cop supports safe autocorrection (--autocorrect).
@@ -2554,9 +2166,9 @@ Style/WordArray:
2554
2166
  - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
2555
2167
  - 'spec/dummy/app/controllers/twitter_example_controller.rb'
2556
2168
  - 'spec/dummy/app/controllers/users_controller.rb'
2557
- - 'spec/lib/generator/swagger/param_description/type_spec.rb'
2558
- - 'spec/lib/method_description_spec.rb'
2559
- - 'spec/lib/resource_description_spec.rb'
2169
+ - 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
2170
+ - 'spec/lib/apipie/method_description_spec.rb'
2171
+ - 'spec/lib/apipie/resource_description_spec.rb'
2560
2172
  - 'spec/lib/swagger/rake_swagger_spec.rb'
2561
2173
  - 'spec/lib/swagger/swagger_dsl_spec.rb'
2562
2174
  - 'spec/lib/validators/array_validator_spec.rb'