apipie-rails 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop-challenger.yml +1 -1
- data/.github/workflows/rubocop.yml +20 -0
- data/.rubocop.yml +6 -0
- data/.rubocop_todo.yml +256 -371
- data/CHANGELOG.md +10 -1
- data/README.rst +20 -0
- data/apipie-rails.gemspec +4 -0
- data/app/views/apipie/apipies/_deprecation.html.erb +16 -0
- data/app/views/apipie/apipies/_params.html.erb +7 -1
- data/config/locales/en.yml +7 -0
- data/lib/apipie/application.rb +4 -6
- data/lib/apipie/configuration.rb +13 -2
- data/lib/apipie/dsl_definition.rb +2 -2
- data/lib/apipie/extractor/recorder.rb +1 -1
- data/lib/apipie/extractor.rb +1 -1
- data/lib/apipie/markup.rb +9 -8
- data/lib/apipie/param_description/deprecation.rb +24 -0
- data/lib/apipie/param_description.rb +38 -11
- data/lib/apipie/resource_description.rb +1 -1
- data/lib/apipie/validator.rb +7 -8
- data/lib/apipie/version.rb +1 -1
- data/lib/apipie-rails.rb +1 -0
- data/lib/tasks/apipie.rake +1 -0
- data/spec/controllers/users_controller_spec.rb +8 -1
- data/spec/{controllers → lib/apipie}/apipies_controller_spec.rb +2 -2
- data/spec/lib/{application_spec.rb → apipie/application_spec.rb} +6 -3
- data/spec/lib/apipie/configuration_spec.rb +23 -0
- data/spec/lib/apipie/extractor/recorder_spec.rb +40 -0
- data/spec/lib/{method_description_spec.rb → apipie/method_description_spec.rb} +4 -4
- data/spec/lib/apipie/param_description/deprecation_spec.rb +31 -0
- data/spec/lib/{param_description_spec.rb → apipie/param_description_spec.rb} +81 -1
- data/spec/lib/{resource_description_spec.rb → apipie/resource_description_spec.rb} +2 -2
- data/spec/lib/swagger/swagger_dsl_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +76 -28
- /data/spec/{lib/swagger/response_validation_spec.rb → controllers/pets_controller_spec.rb} +0 -0
- /data/spec/lib/{extractor → apipie/extractor/recorder}/middleware_spec.rb +0 -0
- /data/spec/lib/{extractor → apipie/extractor}/writer_spec.rb +0 -0
- /data/spec/lib/{extractor → apipie}/extractor_spec.rb +0 -0
- /data/spec/lib/{file_handler_spec.rb → apipie/file_handler_spec.rb} +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/context_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/operation_id_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description/builder_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description/composite_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description/description_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description/in_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description/name_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description/type_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/param_description_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/type_extractor_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/warning_spec.rb +0 -0
- /data/spec/lib/{generator → apipie/generator}/swagger/warning_writer_spec.rb +0 -0
- /data/spec/lib/{method_description → apipie/method_description}/apis_service_spec.rb +0 -0
- /data/spec/lib/{param_group_spec.rb → apipie/param_group_spec.rb} +0 -0
- /data/spec/lib/{validator_spec.rb → apipie/validator_spec.rb} +0 -0
- /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
|
3
|
-
# on 2023-
|
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
|
@@ -14,16 +14,15 @@ Gemspec/DeprecatedAttributeAssignment:
|
|
14
14
|
Exclude:
|
15
15
|
- 'apipie-rails.gemspec'
|
16
16
|
|
17
|
-
# Offense count:
|
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:
|
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:
|
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:
|
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/
|
192
|
-
- 'spec/lib/
|
193
|
-
- 'spec/lib/
|
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:
|
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/
|
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/
|
233
|
-
- 'spec/lib/
|
234
|
-
- 'spec/lib/
|
235
|
-
- 'spec/lib/
|
236
|
-
- 'spec/lib/generator/swagger/param_description/
|
237
|
-
- 'spec/lib/
|
238
|
-
- 'spec/lib/
|
239
|
-
- 'spec/lib/
|
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:
|
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:
|
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
|
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:
|
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/
|
521
|
-
- 'spec/lib/
|
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
|
|
@@ -558,7 +548,7 @@ Layout/SpaceAroundMethodCallOperator:
|
|
558
548
|
Exclude:
|
559
549
|
- 'lib/apipie/validator.rb'
|
560
550
|
|
561
|
-
# Offense count:
|
551
|
+
# Offense count: 142
|
562
552
|
# This cop supports safe autocorrection (--autocorrect).
|
563
553
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
564
554
|
# SupportedStylesForExponentOperator: space, no_space
|
@@ -571,11 +561,11 @@ Layout/SpaceAroundOperators:
|
|
571
561
|
- 'spec/controllers/users_controller_spec.rb'
|
572
562
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
573
563
|
- 'spec/dummy/config/environments/test.rb'
|
574
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
564
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
575
565
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
576
566
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
577
567
|
|
578
|
-
# Offense count:
|
568
|
+
# Offense count: 34
|
579
569
|
# This cop supports safe autocorrection (--autocorrect).
|
580
570
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
581
571
|
# SupportedStyles: space, no_space
|
@@ -592,8 +582,6 @@ Layout/SpaceBeforeBlockBraces:
|
|
592
582
|
- 'lib/tasks/apipie.rake'
|
593
583
|
- 'spec/controllers/users_controller_spec.rb'
|
594
584
|
- '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
585
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
598
586
|
|
599
587
|
# Offense count: 4
|
@@ -613,7 +601,7 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
|
613
601
|
- 'lib/apipie/generator/swagger/param_description/composite.rb'
|
614
602
|
- 'spec/controllers/users_controller_spec.rb'
|
615
603
|
|
616
|
-
# Offense count:
|
604
|
+
# Offense count: 81
|
617
605
|
# This cop supports safe autocorrection (--autocorrect).
|
618
606
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
619
607
|
# SupportedStyles: space, no_space
|
@@ -630,11 +618,9 @@ Layout/SpaceInsideBlockBraces:
|
|
630
618
|
- 'lib/tasks/apipie.rake'
|
631
619
|
- 'spec/controllers/users_controller_spec.rb'
|
632
620
|
- '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'
|
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'
|
638
624
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
639
625
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
640
626
|
- 'spec/spec_helper.rb'
|
@@ -655,14 +641,14 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
655
641
|
- 'lib/apipie/see_description.rb'
|
656
642
|
- 'lib/apipie/swagger_generator.rb'
|
657
643
|
- 'lib/tasks/apipie.rake'
|
658
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
659
644
|
- 'spec/controllers/users_controller_spec.rb'
|
660
645
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
661
646
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
662
647
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
663
648
|
- 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
|
664
|
-
- 'spec/lib/
|
665
|
-
- 'spec/lib/
|
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'
|
666
652
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
667
653
|
|
668
654
|
# Offense count: 5
|
@@ -672,16 +658,8 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
672
658
|
Layout/SpaceInsideParens:
|
673
659
|
Exclude:
|
674
660
|
- '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:
|
661
|
+
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
|
662
|
+
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
|
685
663
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
686
664
|
|
687
665
|
# Offense count: 15
|
@@ -702,11 +680,11 @@ Layout/TrailingEmptyLines:
|
|
702
680
|
- 'spec/dummy/config/boot.rb'
|
703
681
|
- 'spec/dummy/config/environments/development.rb'
|
704
682
|
- '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'
|
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'
|
708
686
|
|
709
|
-
# Offense count:
|
687
|
+
# Offense count: 16
|
710
688
|
# This cop supports safe autocorrection (--autocorrect).
|
711
689
|
# Configuration parameters: AllowInHeredoc.
|
712
690
|
Layout/TrailingWhitespace:
|
@@ -715,10 +693,9 @@ Layout/TrailingWhitespace:
|
|
715
693
|
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
|
716
694
|
- 'spec/dummy/app/controllers/application_controller.rb'
|
717
695
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
718
|
-
- 'spec/lib/application_spec.rb'
|
719
696
|
|
720
697
|
# Offense count: 10
|
721
|
-
# This cop supports
|
698
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
722
699
|
# Configuration parameters: AllowSafeAssignment.
|
723
700
|
Lint/AssignmentInCondition:
|
724
701
|
Exclude:
|
@@ -748,12 +725,12 @@ Lint/DuplicateMethods:
|
|
748
725
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
749
726
|
Lint/EmptyBlock:
|
750
727
|
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'
|
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'
|
757
734
|
|
758
735
|
# Offense count: 1
|
759
736
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -773,7 +750,7 @@ Lint/MissingSuper:
|
|
773
750
|
Lint/NonAtomicFileOperation:
|
774
751
|
Exclude:
|
775
752
|
- 'lib/tasks/apipie.rake'
|
776
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
753
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
777
754
|
|
778
755
|
# Offense count: 1
|
779
756
|
Lint/NonLocalExitFromIterator:
|
@@ -786,12 +763,6 @@ Lint/ParenthesesAsGroupedExpression:
|
|
786
763
|
Exclude:
|
787
764
|
- 'lib/apipie/param_description.rb'
|
788
765
|
|
789
|
-
# Offense count: 1
|
790
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
791
|
-
Lint/RedundantDirGlobSort:
|
792
|
-
Exclude:
|
793
|
-
- 'lib/apipie/application.rb'
|
794
|
-
|
795
766
|
# Offense count: 2
|
796
767
|
# This cop supports safe autocorrection (--autocorrect).
|
797
768
|
Lint/RedundantStringCoercion:
|
@@ -842,20 +813,19 @@ Lint/UnusedBlockArgument:
|
|
842
813
|
- 'lib/apipie/rspec/response_validation_helper.rb'
|
843
814
|
- 'lib/apipie/swagger_generator.rb'
|
844
815
|
- 'lib/tasks/apipie.rake'
|
845
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
846
816
|
- 'spec/controllers/users_controller_spec.rb'
|
847
|
-
- 'spec/lib/
|
817
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
818
|
+
- 'spec/lib/apipie/extractor_spec.rb'
|
848
819
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
849
820
|
- 'spec/spec_helper.rb'
|
850
821
|
|
851
|
-
# Offense count:
|
822
|
+
# Offense count: 28
|
852
823
|
# This cop supports safe autocorrection (--autocorrect).
|
853
824
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
854
825
|
Lint/UnusedMethodArgument:
|
855
826
|
Exclude:
|
856
827
|
- 'lib/apipie/application.rb'
|
857
828
|
- 'lib/apipie/dsl_definition.rb'
|
858
|
-
- 'lib/apipie/resource_description.rb'
|
859
829
|
- 'lib/apipie/response_description_adapter.rb'
|
860
830
|
- 'lib/apipie/swagger_generator.rb'
|
861
831
|
- 'lib/apipie/validator.rb'
|
@@ -883,7 +853,7 @@ Lint/Void:
|
|
883
853
|
- 'spec/controllers/users_controller_spec.rb'
|
884
854
|
|
885
855
|
# Offense count: 57
|
886
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns,
|
856
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
887
857
|
Metrics/AbcSize:
|
888
858
|
Max: 90
|
889
859
|
|
@@ -893,12 +863,12 @@ Metrics/BlockNesting:
|
|
893
863
|
Max: 4
|
894
864
|
|
895
865
|
# Offense count: 25
|
896
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns
|
866
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
897
867
|
Metrics/CyclomaticComplexity:
|
898
868
|
Max: 24
|
899
869
|
|
900
870
|
# Offense count: 71
|
901
|
-
# Configuration parameters: CountComments, CountAsOne,
|
871
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
902
872
|
Metrics/MethodLength:
|
903
873
|
Max: 58
|
904
874
|
|
@@ -914,7 +884,7 @@ Metrics/ParameterLists:
|
|
914
884
|
Max: 6
|
915
885
|
|
916
886
|
# Offense count: 23
|
917
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns
|
887
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
918
888
|
Metrics/PerceivedComplexity:
|
919
889
|
Max: 25
|
920
890
|
|
@@ -925,16 +895,6 @@ Naming/AccessorMethodName:
|
|
925
895
|
- 'spec/dummy/app/controllers/pets_controller.rb'
|
926
896
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
927
897
|
|
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
898
|
# Offense count: 1
|
939
899
|
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
940
900
|
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
@@ -951,9 +911,9 @@ Naming/HeredocDelimiterCase:
|
|
951
911
|
Exclude:
|
952
912
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
953
913
|
|
954
|
-
# Offense count:
|
914
|
+
# Offense count: 7
|
955
915
|
# Configuration parameters: ForbiddenDelimiters.
|
956
|
-
# ForbiddenDelimiters: (
|
916
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
957
917
|
Naming/HeredocDelimiterNaming:
|
958
918
|
Exclude:
|
959
919
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
@@ -992,23 +952,11 @@ Naming/PredicateName:
|
|
992
952
|
# Offense count: 1
|
993
953
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
994
954
|
# SupportedStyles: snake_case, normalcase, non_integer
|
995
|
-
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
955
|
+
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
996
956
|
Naming/VariableNumber:
|
997
957
|
Exclude:
|
998
958
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
999
959
|
|
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
960
|
# Offense count: 4
|
1013
961
|
# Configuration parameters: MinSize.
|
1014
962
|
Performance/CollectionLiteralInLoop:
|
@@ -1036,15 +984,6 @@ Performance/InefficientHashSearch:
|
|
1036
984
|
Exclude:
|
1037
985
|
- 'lib/apipie/generator/swagger/warning.rb'
|
1038
986
|
|
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
987
|
# Offense count: 1
|
1049
988
|
# This cop supports safe autocorrection (--autocorrect).
|
1050
989
|
Performance/RedundantBlockCall:
|
@@ -1073,7 +1012,7 @@ Performance/StringIdentifierArgument:
|
|
1073
1012
|
Exclude:
|
1074
1013
|
- 'lib/apipie/extractor/writer.rb'
|
1075
1014
|
- 'spec/controllers/users_controller_spec.rb'
|
1076
|
-
- 'spec/lib/method_description_spec.rb'
|
1015
|
+
- 'spec/lib/apipie/method_description_spec.rb'
|
1077
1016
|
|
1078
1017
|
# Offense count: 2
|
1079
1018
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
@@ -1110,15 +1049,15 @@ RSpec/Be:
|
|
1110
1049
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1111
1050
|
RSpec/BeEq:
|
1112
1051
|
Exclude:
|
1113
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
1114
1052
|
- 'spec/controllers/users_controller_spec.rb'
|
1115
|
-
- 'spec/lib/
|
1116
|
-
- 'spec/lib/generator/swagger/
|
1117
|
-
- 'spec/lib/
|
1118
|
-
- 'spec/lib/
|
1119
|
-
- 'spec/lib/
|
1120
|
-
- 'spec/lib/
|
1121
|
-
- 'spec/lib/
|
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'
|
1122
1061
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1123
1062
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1124
1063
|
|
@@ -1127,22 +1066,22 @@ RSpec/BeforeAfterAll:
|
|
1127
1066
|
Exclude:
|
1128
1067
|
- 'spec/controllers/users_controller_spec.rb'
|
1129
1068
|
|
1130
|
-
# Offense count:
|
1069
|
+
# Offense count: 55
|
1131
1070
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
1132
1071
|
# Prefixes: when, with, without
|
1133
1072
|
RSpec/ContextWording:
|
1134
1073
|
Exclude:
|
1135
1074
|
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
1136
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
1137
1075
|
- 'spec/controllers/users_controller_spec.rb'
|
1138
|
-
- 'spec/lib/
|
1139
|
-
- 'spec/lib/
|
1140
|
-
- 'spec/lib/generator/swagger/param_description/
|
1141
|
-
- 'spec/lib/generator/swagger/
|
1142
|
-
- 'spec/lib/
|
1143
|
-
- 'spec/lib/
|
1144
|
-
- 'spec/lib/
|
1145
|
-
- 'spec/lib/
|
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'
|
1146
1085
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1147
1086
|
- 'spec/support/rake.rb'
|
1148
1087
|
|
@@ -1150,12 +1089,12 @@ RSpec/ContextWording:
|
|
1150
1089
|
# Configuration parameters: IgnoredMetadata.
|
1151
1090
|
RSpec/DescribeClass:
|
1152
1091
|
Exclude:
|
1153
|
-
- 'spec/lib/param_group_spec.rb'
|
1092
|
+
- 'spec/lib/apipie/param_group_spec.rb'
|
1154
1093
|
- 'spec/lib/rake_spec.rb'
|
1155
1094
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1156
1095
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1157
1096
|
|
1158
|
-
# Offense count:
|
1097
|
+
# Offense count: 96
|
1159
1098
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1160
1099
|
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
1161
1100
|
# SupportedStyles: described_class, explicit
|
@@ -1165,30 +1104,30 @@ RSpec/DescribedClass:
|
|
1165
1104
|
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
1166
1105
|
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
1167
1106
|
- 'spec/controllers/included_param_group_controller_spec.rb'
|
1168
|
-
- 'spec/controllers/memes_controller_spec.rb'
|
1169
1107
|
- 'spec/controllers/users_controller_spec.rb'
|
1170
|
-
- 'spec/lib/extractor/
|
1171
|
-
- 'spec/lib/extractor/
|
1172
|
-
- 'spec/lib/
|
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'
|
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'
|
1177
1115
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1116
|
+
- 'spec/test_engine/memes_controller_spec.rb'
|
1178
1117
|
|
1179
1118
|
# Offense count: 1
|
1180
1119
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1181
1120
|
RSpec/EmptyExampleGroup:
|
1182
1121
|
Exclude:
|
1183
|
-
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1122
|
+
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
|
1184
1123
|
|
1185
1124
|
# Offense count: 11
|
1186
1125
|
# This cop supports safe autocorrection (--autocorrect).
|
1187
1126
|
# Configuration parameters: AllowConsecutiveOneLiners.
|
1188
1127
|
RSpec/EmptyLineAfterExample:
|
1189
1128
|
Exclude:
|
1190
|
-
- 'spec/
|
1191
|
-
- 'spec/lib/generator/swagger/context_spec.rb'
|
1129
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1130
|
+
- 'spec/lib/apipie/generator/swagger/context_spec.rb'
|
1192
1131
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1193
1132
|
|
1194
1133
|
# Offense count: 6
|
@@ -1196,7 +1135,7 @@ RSpec/EmptyLineAfterExample:
|
|
1196
1135
|
RSpec/EmptyLineAfterExampleGroup:
|
1197
1136
|
Exclude:
|
1198
1137
|
- 'spec/controllers/users_controller_spec.rb'
|
1199
|
-
- 'spec/lib/param_description_spec.rb'
|
1138
|
+
- 'spec/lib/apipie/param_description_spec.rb'
|
1200
1139
|
|
1201
1140
|
# Offense count: 1
|
1202
1141
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1209,13 +1148,13 @@ RSpec/EmptyLineAfterFinalLet:
|
|
1209
1148
|
# Configuration parameters: AllowConsecutiveOneLiners.
|
1210
1149
|
RSpec/EmptyLineAfterHook:
|
1211
1150
|
Exclude:
|
1212
|
-
- 'spec/
|
1213
|
-
- 'spec/lib/application_spec.rb'
|
1151
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1152
|
+
- 'spec/lib/apipie/application_spec.rb'
|
1214
1153
|
|
1215
1154
|
# Offense count: 48
|
1216
1155
|
# Configuration parameters: CountAsOne.
|
1217
1156
|
RSpec/ExampleLength:
|
1218
|
-
Max:
|
1157
|
+
Max: 85
|
1219
1158
|
|
1220
1159
|
# Offense count: 165
|
1221
1160
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1229,16 +1168,16 @@ RSpec/ExampleWording:
|
|
1229
1168
|
- 'spec/controllers/concerns_controller_spec.rb'
|
1230
1169
|
- 'spec/controllers/extended_controller_spec.rb'
|
1231
1170
|
- 'spec/controllers/included_param_group_controller_spec.rb'
|
1232
|
-
- 'spec/controllers/memes_controller_spec.rb'
|
1233
1171
|
- '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'
|
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'
|
1240
1179
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1241
|
-
- 'spec/
|
1180
|
+
- 'spec/test_engine/memes_controller_spec.rb'
|
1242
1181
|
|
1243
1182
|
# Offense count: 1
|
1244
1183
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1249,38 +1188,7 @@ RSpec/ExcessiveDocstringSpacing:
|
|
1249
1188
|
# Offense count: 1
|
1250
1189
|
RSpec/ExpectInHook:
|
1251
1190
|
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'
|
1191
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1284
1192
|
|
1285
1193
|
# Offense count: 8
|
1286
1194
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1288,19 +1196,19 @@ RSpec/FilePath:
|
|
1288
1196
|
# SupportedStyles: implicit, each, example
|
1289
1197
|
RSpec/HookArgument:
|
1290
1198
|
Exclude:
|
1291
|
-
- 'spec/
|
1292
|
-
- 'spec/lib/
|
1293
|
-
- 'spec/lib/
|
1294
|
-
- 'spec/lib/
|
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'
|
1295
1203
|
|
1296
1204
|
# Offense count: 5
|
1297
1205
|
# This cop supports safe autocorrection (--autocorrect).
|
1298
1206
|
RSpec/HooksBeforeExamples:
|
1299
1207
|
Exclude:
|
1300
1208
|
- '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'
|
1209
|
+
- 'spec/lib/apipie/application_spec.rb'
|
1210
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1211
|
+
- 'spec/lib/apipie/param_description_spec.rb'
|
1304
1212
|
|
1305
1213
|
# Offense count: 2
|
1306
1214
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1308,27 +1216,27 @@ RSpec/HooksBeforeExamples:
|
|
1308
1216
|
# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
|
1309
1217
|
RSpec/ImplicitSubject:
|
1310
1218
|
Exclude:
|
1311
|
-
- 'spec/lib/application_spec.rb'
|
1219
|
+
- 'spec/lib/apipie/application_spec.rb'
|
1312
1220
|
|
1313
1221
|
# Offense count: 30
|
1314
1222
|
# Configuration parameters: AssignmentOnly.
|
1315
1223
|
RSpec/InstanceVariable:
|
1316
1224
|
Exclude:
|
1317
|
-
- 'spec/
|
1318
|
-
- 'spec/lib/method_description_spec.rb'
|
1319
|
-
- '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'
|
1320
1228
|
|
1321
1229
|
# Offense count: 9
|
1322
1230
|
# This cop supports safe autocorrection (--autocorrect).
|
1323
1231
|
RSpec/LeadingSubject:
|
1324
1232
|
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'
|
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'
|
1332
1240
|
- 'spec/support/rake.rb'
|
1333
1241
|
|
1334
1242
|
# Offense count: 1
|
@@ -1351,7 +1259,7 @@ RSpec/MultipleExpectations:
|
|
1351
1259
|
RSpec/MultipleMemoizedHelpers:
|
1352
1260
|
Max: 15
|
1353
1261
|
|
1354
|
-
# Offense count:
|
1262
|
+
# Offense count: 64
|
1355
1263
|
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
1356
1264
|
# SupportedStyles: always, named_only
|
1357
1265
|
RSpec/NamedSubject:
|
@@ -1360,29 +1268,31 @@ RSpec/NamedSubject:
|
|
1360
1268
|
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
1361
1269
|
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
1362
1270
|
- '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/
|
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'
|
1371
1280
|
- 'spec/lib/rake_spec.rb'
|
1372
1281
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1373
1282
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1374
1283
|
|
1375
|
-
# Offense count:
|
1284
|
+
# Offense count: 51
|
1376
1285
|
# Configuration parameters: AllowedGroups.
|
1377
1286
|
RSpec/NestedGroups:
|
1378
1287
|
Max: 6
|
1379
1288
|
|
1380
|
-
# Offense count:
|
1289
|
+
# Offense count: 2
|
1381
1290
|
# Configuration parameters: AllowedPatterns.
|
1382
1291
|
# AllowedPatterns: ^expect_, ^assert_
|
1383
1292
|
RSpec/NoExpectationExample:
|
1384
1293
|
Exclude:
|
1385
1294
|
- 'spec/controllers/users_controller_spec.rb'
|
1295
|
+
- 'spec/test_engine/memes_controller_spec.rb'
|
1386
1296
|
|
1387
1297
|
# Offense count: 11
|
1388
1298
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1390,18 +1300,18 @@ RSpec/NoExpectationExample:
|
|
1390
1300
|
# SupportedStyles: not_to, to_not
|
1391
1301
|
RSpec/NotToNot:
|
1392
1302
|
Exclude:
|
1393
|
-
- 'spec/lib/file_handler_spec.rb'
|
1394
|
-
- 'spec/lib/param_description_spec.rb'
|
1303
|
+
- 'spec/lib/apipie/file_handler_spec.rb'
|
1304
|
+
- 'spec/lib/apipie/param_description_spec.rb'
|
1395
1305
|
|
1396
1306
|
# Offense count: 1
|
1397
1307
|
RSpec/OverwritingSetup:
|
1398
1308
|
Exclude:
|
1399
|
-
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1309
|
+
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
|
1400
1310
|
|
1401
1311
|
# Offense count: 1
|
1402
1312
|
RSpec/PendingWithoutReason:
|
1403
1313
|
Exclude:
|
1404
|
-
- 'spec/lib/generator/swagger/param_description/composite_spec.rb'
|
1314
|
+
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
|
1405
1315
|
|
1406
1316
|
# Offense count: 6
|
1407
1317
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
@@ -1409,44 +1319,51 @@ RSpec/PendingWithoutReason:
|
|
1409
1319
|
# SupportedStyles: inflected, explicit
|
1410
1320
|
RSpec/PredicateMatcher:
|
1411
1321
|
Exclude:
|
1412
|
-
- 'spec/lib/file_handler_spec.rb'
|
1322
|
+
- 'spec/lib/apipie/file_handler_spec.rb'
|
1413
1323
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1414
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
|
+
|
1415
1332
|
# Offense count: 4
|
1416
1333
|
RSpec/RepeatedExample:
|
1417
1334
|
Exclude:
|
1418
|
-
- 'spec/lib/method_description_spec.rb'
|
1419
|
-
- 'spec/lib/resource_description_spec.rb'
|
1335
|
+
- 'spec/lib/apipie/method_description_spec.rb'
|
1336
|
+
- 'spec/lib/apipie/resource_description_spec.rb'
|
1420
1337
|
|
1421
1338
|
# Offense count: 2
|
1422
1339
|
RSpec/RepeatedExampleGroupBody:
|
1423
1340
|
Exclude:
|
1424
|
-
- 'spec/lib/generator/swagger/warning_spec.rb'
|
1341
|
+
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
|
1425
1342
|
|
1426
1343
|
# Offense count: 4
|
1427
1344
|
RSpec/RepeatedExampleGroupDescription:
|
1428
1345
|
Exclude:
|
1429
|
-
- 'spec/
|
1430
|
-
- 'spec/lib/application_spec.rb'
|
1346
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1347
|
+
- 'spec/lib/apipie/application_spec.rb'
|
1431
1348
|
|
1432
1349
|
# Offense count: 2
|
1433
1350
|
RSpec/StubbedMock:
|
1434
1351
|
Exclude:
|
1435
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
1436
|
-
- 'spec/lib/param_description_spec.rb'
|
1352
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1353
|
+
- 'spec/lib/apipie/param_description_spec.rb'
|
1437
1354
|
|
1438
1355
|
# Offense count: 5
|
1439
1356
|
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
|
1440
1357
|
RSpec/VerifiedDoubles:
|
1441
1358
|
Exclude:
|
1442
|
-
- 'spec/
|
1443
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
1359
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1360
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1444
1361
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1445
1362
|
|
1446
1363
|
# Offense count: 1
|
1447
1364
|
RSpec/VoidExpect:
|
1448
1365
|
Exclude:
|
1449
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
1366
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1450
1367
|
|
1451
1368
|
# Offense count: 4
|
1452
1369
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
@@ -1464,7 +1381,7 @@ Rails/Delegate:
|
|
1464
1381
|
Exclude:
|
1465
1382
|
- 'lib/apipie/response_description_adapter.rb'
|
1466
1383
|
|
1467
|
-
# Offense count:
|
1384
|
+
# Offense count: 24
|
1468
1385
|
# Configuration parameters: EnforcedStyle.
|
1469
1386
|
# SupportedStyles: slashes, arguments
|
1470
1387
|
Rails/FilePath:
|
@@ -1472,10 +1389,10 @@ Rails/FilePath:
|
|
1472
1389
|
- 'lib/apipie/configuration.rb'
|
1473
1390
|
- 'lib/apipie/dsl_definition.rb'
|
1474
1391
|
- 'lib/tasks/apipie.rake'
|
1475
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
1476
1392
|
- 'spec/dummy/config/initializers/apipie.rb'
|
1477
|
-
- 'spec/lib/
|
1478
|
-
- 'spec/lib/
|
1393
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1394
|
+
- 'spec/lib/apipie/application_spec.rb'
|
1395
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1479
1396
|
- 'spec/lib/rake_spec.rb'
|
1480
1397
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1481
1398
|
- 'spec/spec_helper.rb'
|
@@ -1523,12 +1440,12 @@ Rails/OutputSafety:
|
|
1523
1440
|
- 'lib/apipie/helpers.rb'
|
1524
1441
|
|
1525
1442
|
# Offense count: 6
|
1526
|
-
# This cop supports
|
1443
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1527
1444
|
Rails/Pluck:
|
1528
1445
|
Exclude:
|
1529
1446
|
- 'lib/apipie/extractor/writer.rb'
|
1530
|
-
- 'spec/lib/method_description_spec.rb'
|
1531
|
-
- 'spec/lib/resource_description_spec.rb'
|
1447
|
+
- 'spec/lib/apipie/method_description_spec.rb'
|
1448
|
+
- 'spec/lib/apipie/resource_description_spec.rb'
|
1532
1449
|
|
1533
1450
|
# Offense count: 5
|
1534
1451
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -1555,10 +1472,10 @@ Rails/RootPathnameMethods:
|
|
1555
1472
|
- 'lib/apipie/configuration.rb'
|
1556
1473
|
- 'lib/apipie/dsl_definition.rb'
|
1557
1474
|
- 'lib/tasks/apipie.rake'
|
1558
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
1559
1475
|
- 'spec/dummy/config/initializers/apipie.rb'
|
1560
|
-
- 'spec/lib/
|
1561
|
-
- 'spec/lib/
|
1476
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
1477
|
+
- 'spec/lib/apipie/application_spec.rb'
|
1478
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1562
1479
|
- 'spec/lib/rake_spec.rb'
|
1563
1480
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1564
1481
|
|
@@ -1570,13 +1487,6 @@ Rails/TimeZone:
|
|
1570
1487
|
Exclude:
|
1571
1488
|
- 'lib/tasks/apipie.rake'
|
1572
1489
|
|
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
1490
|
# Offense count: 1
|
1581
1491
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1582
1492
|
Security/IoMethods:
|
@@ -1600,16 +1510,9 @@ Style/AndOr:
|
|
1600
1510
|
Exclude:
|
1601
1511
|
- 'lib/apipie/param_description.rb'
|
1602
1512
|
|
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
1513
|
# Offense count: 17
|
1611
1514
|
# This cop supports safe autocorrection (--autocorrect).
|
1612
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns,
|
1515
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
1613
1516
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
1614
1517
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
1615
1518
|
# FunctionalMethods: let, let!, subject, watch
|
@@ -1619,7 +1522,7 @@ Style/BlockDelimiters:
|
|
1619
1522
|
- 'lib/tasks/apipie.rake'
|
1620
1523
|
- 'spec/controllers/users_controller_spec.rb'
|
1621
1524
|
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
|
1622
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
1525
|
+
- 'spec/lib/apipie/extractor/writer_spec.rb'
|
1623
1526
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1624
1527
|
|
1625
1528
|
# Offense count: 1
|
@@ -1629,12 +1532,6 @@ Style/CaseEquality:
|
|
1629
1532
|
Exclude:
|
1630
1533
|
- 'lib/apipie/validator.rb'
|
1631
1534
|
|
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
1535
|
# Offense count: 28
|
1639
1536
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1640
1537
|
# Configuration parameters: EnforcedStyle.
|
@@ -1677,7 +1574,7 @@ Style/ClassCheck:
|
|
1677
1574
|
|
1678
1575
|
# Offense count: 2
|
1679
1576
|
# This cop supports safe autocorrection (--autocorrect).
|
1680
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns
|
1577
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
1681
1578
|
# AllowedMethods: ==, equal?, eql?
|
1682
1579
|
Style/ClassEqualityComparison:
|
1683
1580
|
Exclude:
|
@@ -1707,8 +1604,8 @@ Style/ColonMethodCall:
|
|
1707
1604
|
Style/CommentAnnotation:
|
1708
1605
|
Exclude:
|
1709
1606
|
- 'lib/apipie/apipie_module.rb'
|
1607
|
+
- 'spec/controllers/pets_controller_spec.rb'
|
1710
1608
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1711
|
-
- 'spec/lib/swagger/response_validation_spec.rb'
|
1712
1609
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1713
1610
|
|
1714
1611
|
# Offense count: 17
|
@@ -1817,18 +1714,18 @@ Style/For:
|
|
1817
1714
|
|
1818
1715
|
# Offense count: 8
|
1819
1716
|
# This cop supports safe autocorrection (--autocorrect).
|
1820
|
-
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns
|
1717
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
|
1821
1718
|
# SupportedStyles: annotated, template, unannotated
|
1719
|
+
# AllowedMethods: redirect
|
1822
1720
|
Style/FormatStringToken:
|
1823
1721
|
EnforcedStyle: template
|
1824
1722
|
|
1825
|
-
# Offense count:
|
1723
|
+
# Offense count: 140
|
1826
1724
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
1827
1725
|
# Configuration parameters: EnforcedStyle.
|
1828
1726
|
# SupportedStyles: always, always_true, never
|
1829
1727
|
Style/FrozenStringLiteralComment:
|
1830
1728
|
Exclude:
|
1831
|
-
- 'Gemfile'
|
1832
1729
|
- 'Rakefile'
|
1833
1730
|
- 'apipie-rails.gemspec'
|
1834
1731
|
- 'app/controllers/apipie/apipies_controller.rb'
|
@@ -1886,13 +1783,11 @@ Style/FrozenStringLiteralComment:
|
|
1886
1783
|
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
1887
1784
|
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
1888
1785
|
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
1889
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
1890
1786
|
- 'spec/controllers/concerns_controller_spec.rb'
|
1891
1787
|
- 'spec/controllers/extended_controller_spec.rb'
|
1892
1788
|
- 'spec/controllers/included_param_group_controller_spec.rb'
|
1893
|
-
- 'spec/controllers/
|
1789
|
+
- 'spec/controllers/pets_controller_spec.rb'
|
1894
1790
|
- 'spec/controllers/users_controller_spec.rb'
|
1895
|
-
- 'spec/dummy/Gemfile'
|
1896
1791
|
- 'spec/dummy/Rakefile'
|
1897
1792
|
- 'spec/dummy/app/controllers/api/base_controller.rb'
|
1898
1793
|
- 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
|
@@ -1917,7 +1812,6 @@ Style/FrozenStringLiteralComment:
|
|
1917
1812
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
1918
1813
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
1919
1814
|
- 'spec/dummy/app/helpers/random_param_group.rb'
|
1920
|
-
- 'spec/dummy/bin/setup'
|
1921
1815
|
- 'spec/dummy/components/test_engine/Gemfile'
|
1922
1816
|
- 'spec/dummy/components/test_engine/app/controllers/test_engine/application_controller.rb'
|
1923
1817
|
- 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
|
@@ -1939,39 +1833,41 @@ Style/FrozenStringLiteralComment:
|
|
1939
1833
|
- 'spec/dummy/config/initializers/session_store.rb'
|
1940
1834
|
- 'spec/dummy/config/routes.rb'
|
1941
1835
|
- 'spec/dummy/script/rails'
|
1942
|
-
- 'spec/lib/
|
1943
|
-
- 'spec/lib/
|
1944
|
-
- 'spec/lib/extractor/middleware_spec.rb'
|
1945
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
1946
|
-
- 'spec/lib/
|
1947
|
-
- 'spec/lib/
|
1948
|
-
- 'spec/lib/generator/swagger/
|
1949
|
-
- 'spec/lib/generator/swagger/
|
1950
|
-
- 'spec/lib/generator/swagger/param_description/
|
1951
|
-
- 'spec/lib/generator/swagger/param_description/
|
1952
|
-
- 'spec/lib/generator/swagger/param_description/
|
1953
|
-
- 'spec/lib/generator/swagger/param_description/
|
1954
|
-
- 'spec/lib/generator/swagger/param_description/
|
1955
|
-
- 'spec/lib/generator/swagger/
|
1956
|
-
- 'spec/lib/generator/swagger/
|
1957
|
-
- 'spec/lib/generator/swagger/
|
1958
|
-
- 'spec/lib/generator/swagger/
|
1959
|
-
- 'spec/lib/
|
1960
|
-
- 'spec/lib/
|
1961
|
-
- 'spec/lib/
|
1962
|
-
- 'spec/lib/
|
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'
|
1963
1861
|
- 'spec/lib/rake_spec.rb'
|
1964
|
-
- 'spec/lib/resource_description_spec.rb'
|
1965
1862
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
1966
|
-
- 'spec/lib/swagger/response_validation_spec.rb'
|
1967
1863
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
1968
|
-
- 'spec/lib/validator_spec.rb'
|
1969
1864
|
- 'spec/lib/validators/array_validator_spec.rb'
|
1970
1865
|
- 'spec/spec_helper.rb'
|
1971
1866
|
- 'spec/support/custom_bool_validator.rb'
|
1972
1867
|
- 'spec/support/rake.rb'
|
1868
|
+
- 'spec/test_engine/memes_controller_spec.rb'
|
1973
1869
|
|
1974
|
-
# Offense count:
|
1870
|
+
# Offense count: 34
|
1975
1871
|
# This cop supports safe autocorrection (--autocorrect).
|
1976
1872
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
1977
1873
|
Style/GuardClause:
|
@@ -2024,11 +1920,10 @@ Style/IfInsideElse:
|
|
2024
1920
|
- 'lib/apipie/swagger_generator.rb'
|
2025
1921
|
- 'spec/spec_helper.rb'
|
2026
1922
|
|
2027
|
-
# Offense count:
|
1923
|
+
# Offense count: 73
|
2028
1924
|
# This cop supports safe autocorrection (--autocorrect).
|
2029
1925
|
Style/IfUnlessModifier:
|
2030
1926
|
Exclude:
|
2031
|
-
- 'Gemfile'
|
2032
1927
|
- 'app/controllers/apipie/apipies_controller.rb'
|
2033
1928
|
- 'lib/apipie/application.rb'
|
2034
1929
|
- 'lib/apipie/dsl_definition.rb'
|
@@ -2048,7 +1943,6 @@ Style/IfUnlessModifier:
|
|
2048
1943
|
- 'lib/apipie/swagger_generator.rb'
|
2049
1944
|
- 'lib/apipie/validator.rb'
|
2050
1945
|
- 'lib/tasks/apipie.rake'
|
2051
|
-
- 'spec/dummy/Gemfile'
|
2052
1946
|
- 'spec/dummy/app/controllers/application_controller.rb'
|
2053
1947
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
2054
1948
|
- 'spec/dummy/config/initializers/apipie.rb'
|
@@ -2065,15 +1959,19 @@ Style/IfWithBooleanLiteralBranches:
|
|
2065
1959
|
- 'lib/apipie/validator.rb'
|
2066
1960
|
- 'lib/tasks/apipie.rake'
|
2067
1961
|
|
2068
|
-
# Offense count:
|
1962
|
+
# Offense count: 13
|
2069
1963
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2070
1964
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
2071
1965
|
Style/InverseMethods:
|
2072
1966
|
Exclude:
|
1967
|
+
- 'lib/apipie/configuration.rb'
|
2073
1968
|
- 'lib/apipie/extractor/collector.rb'
|
1969
|
+
- 'lib/apipie/extractor/writer.rb'
|
1970
|
+
- 'lib/apipie/generator/swagger/warning.rb'
|
2074
1971
|
- 'lib/apipie/method_description.rb'
|
2075
1972
|
- 'lib/apipie/param_description.rb'
|
2076
1973
|
- 'lib/apipie/swagger_generator.rb'
|
1974
|
+
- 'spec/spec_helper.rb'
|
2077
1975
|
|
2078
1976
|
# Offense count: 5
|
2079
1977
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -2083,12 +1981,12 @@ Style/Lambda:
|
|
2083
1981
|
Exclude:
|
2084
1982
|
- 'lib/apipie/configuration.rb'
|
2085
1983
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
2086
|
-
- 'spec/lib/extractor/middleware_spec.rb'
|
1984
|
+
- 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
|
2087
1985
|
- 'spec/lib/validators/array_validator_spec.rb'
|
2088
1986
|
|
2089
1987
|
# Offense count: 2
|
2090
1988
|
# This cop supports safe autocorrection (--autocorrect).
|
2091
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns
|
1989
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
2092
1990
|
Style/MethodCallWithoutArgsParentheses:
|
2093
1991
|
Exclude:
|
2094
1992
|
- 'lib/apipie/extractor/recorder.rb'
|
@@ -2162,7 +2060,7 @@ Style/NegatedIfElseCondition:
|
|
2162
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
|
2163
2061
|
Style/NestedParenthesizedCalls:
|
2164
2062
|
Exclude:
|
2165
|
-
- 'spec/lib/file_handler_spec.rb'
|
2063
|
+
- 'spec/lib/apipie/file_handler_spec.rb'
|
2166
2064
|
|
2167
2065
|
# Offense count: 1
|
2168
2066
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -2207,7 +2105,7 @@ Style/PerlBackrefs:
|
|
2207
2105
|
# This cop supports safe autocorrection (--autocorrect).
|
2208
2106
|
Style/Proc:
|
2209
2107
|
Exclude:
|
2210
|
-
- 'spec/
|
2108
|
+
- 'spec/lib/apipie/apipies_controller_spec.rb'
|
2211
2109
|
|
2212
2110
|
# Offense count: 7
|
2213
2111
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -2344,17 +2242,6 @@ Style/RescueStandardError:
|
|
2344
2242
|
Exclude:
|
2345
2243
|
- 'lib/apipie/dsl_definition.rb'
|
2346
2244
|
|
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
2245
|
# Offense count: 1
|
2359
2246
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
2360
2247
|
Style/SelectByRegexp:
|
@@ -2410,13 +2297,12 @@ Style/StringConcatenation:
|
|
2410
2297
|
- 'lib/apipie/extractor/writer.rb'
|
2411
2298
|
- 'lib/apipie/swagger_generator.rb'
|
2412
2299
|
|
2413
|
-
# Offense count:
|
2300
|
+
# Offense count: 1293
|
2414
2301
|
# This cop supports safe autocorrection (--autocorrect).
|
2415
2302
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
2416
2303
|
# SupportedStyles: single_quotes, double_quotes
|
2417
2304
|
Style/StringLiterals:
|
2418
2305
|
Exclude:
|
2419
|
-
- 'Gemfile'
|
2420
2306
|
- 'Rakefile'
|
2421
2307
|
- 'apipie-rails.gemspec'
|
2422
2308
|
- 'app/controllers/apipie/apipies_controller.rb'
|
@@ -2448,13 +2334,11 @@ Style/StringLiterals:
|
|
2448
2334
|
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
|
2449
2335
|
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
|
2450
2336
|
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
|
2451
|
-
- 'spec/controllers/apipies_controller_spec.rb'
|
2452
2337
|
- 'spec/controllers/concerns_controller_spec.rb'
|
2453
2338
|
- 'spec/controllers/extended_controller_spec.rb'
|
2454
2339
|
- 'spec/controllers/included_param_group_controller_spec.rb'
|
2455
|
-
- 'spec/controllers/
|
2340
|
+
- 'spec/controllers/pets_controller_spec.rb'
|
2456
2341
|
- 'spec/controllers/users_controller_spec.rb'
|
2457
|
-
- 'spec/dummy/Gemfile'
|
2458
2342
|
- 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
|
2459
2343
|
- 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
|
2460
2344
|
- 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
|
@@ -2469,33 +2353,34 @@ Style/StringLiterals:
|
|
2469
2353
|
- 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
|
2470
2354
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
2471
2355
|
- 'spec/dummy/app/controllers/users_controller.rb'
|
2472
|
-
- 'spec/dummy/bin/setup'
|
2473
2356
|
- 'spec/dummy/components/test_engine/Gemfile'
|
2474
2357
|
- 'spec/dummy/config/application.rb'
|
2475
2358
|
- 'spec/dummy/config/initializers/apipie.rb'
|
2476
2359
|
- 'spec/dummy/config/routes.rb'
|
2477
|
-
- 'spec/lib/
|
2478
|
-
- 'spec/lib/
|
2479
|
-
- 'spec/lib/extractor/middleware_spec.rb'
|
2480
|
-
- 'spec/lib/extractor/writer_spec.rb'
|
2481
|
-
- 'spec/lib/
|
2482
|
-
- 'spec/lib/
|
2483
|
-
- 'spec/lib/generator/swagger/
|
2484
|
-
- 'spec/lib/generator/swagger/
|
2485
|
-
- 'spec/lib/generator/swagger/
|
2486
|
-
- 'spec/lib/
|
2487
|
-
- 'spec/lib/
|
2488
|
-
- 'spec/lib/
|
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'
|
2489
2376
|
- 'spec/lib/rake_spec.rb'
|
2490
|
-
- 'spec/lib/resource_description_spec.rb'
|
2491
2377
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
2492
|
-
- 'spec/lib/swagger/response_validation_spec.rb'
|
2493
2378
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
2494
|
-
- 'spec/lib/validator_spec.rb'
|
2495
2379
|
- 'spec/lib/validators/array_validator_spec.rb'
|
2496
2380
|
- 'spec/spec_helper.rb'
|
2497
2381
|
- 'spec/support/custom_bool_validator.rb'
|
2498
2382
|
- 'spec/support/rake.rb'
|
2383
|
+
- 'spec/test_engine/memes_controller_spec.rb'
|
2499
2384
|
|
2500
2385
|
# Offense count: 38
|
2501
2386
|
# This cop supports safe autocorrection (--autocorrect).
|
@@ -2554,9 +2439,9 @@ Style/WordArray:
|
|
2554
2439
|
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
|
2555
2440
|
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
|
2556
2441
|
- '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'
|
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'
|
2560
2445
|
- 'spec/lib/swagger/rake_swagger_spec.rb'
|
2561
2446
|
- 'spec/lib/swagger/swagger_dsl_spec.rb'
|
2562
2447
|
- 'spec/lib/validators/array_validator_spec.rb'
|