apipie-rails 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop-challenger.yml +28 -0
  3. data/.rubocop.yml +37 -0
  4. data/.rubocop_todo.yml +2001 -0
  5. data/CHANGELOG.md +14 -0
  6. data/README.rst +2 -2
  7. data/Rakefile +0 -5
  8. data/apipie-rails.gemspec +10 -7
  9. data/lib/apipie/dsl_definition.rb +3 -3
  10. data/lib/apipie/extractor/writer.rb +2 -2
  11. data/lib/apipie/generator/generator.rb +2 -0
  12. data/lib/apipie/generator/swagger/swagger.rb +2 -0
  13. data/lib/apipie/generator/swagger/type.rb +16 -0
  14. data/lib/apipie/generator/swagger/type_extractor.rb +70 -0
  15. data/lib/apipie/generator/swagger/warning.rb +77 -0
  16. data/lib/apipie/generator/swagger/warning_writer.rb +48 -0
  17. data/lib/apipie/method_description/api.rb +12 -0
  18. data/lib/apipie/method_description/apis_service.rb +82 -0
  19. data/lib/apipie/method_description.rb +1 -46
  20. data/lib/apipie/swagger_generator.rb +76 -81
  21. data/lib/apipie/validator.rb +4 -0
  22. data/lib/apipie/version.rb +1 -1
  23. data/lib/apipie-rails.rb +9 -1
  24. data/lib/generators/apipie/install/install_generator.rb +1 -1
  25. data/lib/generators/apipie/views_generator.rb +1 -1
  26. data/lib/tasks/apipie.rake +2 -2
  27. data/spec/dummy/Rakefile +1 -1
  28. data/spec/dummy/components/test_engine/test_engine.gemspec +1 -1
  29. data/spec/dummy/config/application.rb +1 -1
  30. data/spec/dummy/config/boot.rb +2 -2
  31. data/spec/dummy/config/environment.rb +1 -1
  32. data/spec/dummy/config/routes.rb +1 -0
  33. data/spec/dummy/config.ru +1 -1
  34. data/spec/dummy/script/rails +2 -2
  35. data/spec/lib/application_spec.rb +1 -1
  36. data/spec/lib/extractor/writer_spec.rb +7 -5
  37. data/spec/lib/generator/swagger/type_extractor_spec.rb +61 -0
  38. data/spec/lib/generator/swagger/warning_spec.rb +51 -0
  39. data/spec/lib/generator/swagger/warning_writer_spec.rb +59 -0
  40. data/spec/lib/method_description/apis_service_spec.rb +60 -0
  41. data/spec/lib/rake_spec.rb +1 -1
  42. data/spec/lib/swagger/rake_swagger_spec.rb +4 -4
  43. data/spec/spec_helper.rb +4 -4
  44. metadata +39 -38
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,2001 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-09-26 23:40:49 UTC using RuboCop version 1.36.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: Include.
12
+ # Include: **/*.gemspec
13
+ Gemspec/DeprecatedAttributeAssignment:
14
+ Exclude:
15
+ - 'apipie-rails.gemspec'
16
+
17
+ # Offense count: 1
18
+ # This cop supports safe autocorrection (--autocorrect).
19
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
20
+ # Include: **/*.gemspec
21
+ Gemspec/OrderedDependencies:
22
+ Exclude:
23
+ - 'apipie-rails.gemspec'
24
+
25
+ # Offense count: 2
26
+ # This cop supports safe autocorrection (--autocorrect).
27
+ # Configuration parameters: Include.
28
+ # Include: **/*.gemspec
29
+ Gemspec/RequireMFA:
30
+ Exclude:
31
+ - 'apipie-rails.gemspec'
32
+ - 'spec/dummy/components/test_engine/test_engine.gemspec'
33
+
34
+ # Offense count: 1
35
+ # Configuration parameters: Include.
36
+ # Include: **/*.gemspec
37
+ Gemspec/RequiredRubyVersion:
38
+ Exclude:
39
+ - 'spec/dummy/components/test_engine/test_engine.gemspec'
40
+
41
+ # Offense count: 26
42
+ # This cop supports safe autocorrection (--autocorrect).
43
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
44
+ # SupportedStyles: with_first_argument, with_fixed_indentation
45
+ Layout/ArgumentAlignment:
46
+ Exclude:
47
+ - 'lib/apipie/configuration.rb'
48
+ - 'lib/apipie/resource_description.rb'
49
+ - 'spec/controllers/users_controller_spec.rb'
50
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
51
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
52
+
53
+ # Offense count: 3
54
+ # This cop supports safe autocorrection (--autocorrect).
55
+ # Configuration parameters: EnforcedStyleAlignWith.
56
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
57
+ Layout/BlockAlignment:
58
+ Exclude:
59
+ - 'lib/apipie/application.rb'
60
+ - 'lib/apipie/extractor/writer.rb'
61
+ - 'spec/lib/param_group_spec.rb'
62
+
63
+ # Offense count: 10
64
+ # This cop supports safe autocorrection (--autocorrect).
65
+ # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
66
+ # SupportedStyles: case, end
67
+ Layout/CaseIndentation:
68
+ Exclude:
69
+ - 'lib/apipie/extractor.rb'
70
+ - 'lib/apipie/extractor/writer.rb'
71
+ - 'lib/apipie/helpers.rb'
72
+
73
+ # Offense count: 3
74
+ # This cop supports safe autocorrection (--autocorrect).
75
+ # Configuration parameters: AllowForAlignment.
76
+ Layout/CommentIndentation:
77
+ Exclude:
78
+ - 'lib/apipie/swagger_generator.rb'
79
+ - 'spec/dummy/app/controllers/pets_controller.rb'
80
+
81
+ # Offense count: 6
82
+ # This cop supports safe autocorrection (--autocorrect).
83
+ # Configuration parameters: EnforcedStyle.
84
+ # SupportedStyles: leading, trailing
85
+ Layout/DotPosition:
86
+ Exclude:
87
+ - 'lib/apipie/method_description.rb'
88
+ - 'spec/lib/application_spec.rb'
89
+
90
+ # Offense count: 7
91
+ # This cop supports safe autocorrection (--autocorrect).
92
+ Layout/ElseAlignment:
93
+ Exclude:
94
+ - 'app/controllers/apipie/apipies_controller.rb'
95
+ - 'lib/apipie/apipie_module.rb'
96
+ - 'lib/apipie/application.rb'
97
+ - 'lib/apipie/method_description.rb'
98
+ - 'lib/apipie/param_description.rb'
99
+ - 'lib/apipie/resource_description.rb'
100
+
101
+ # Offense count: 62
102
+ # This cop supports safe autocorrection (--autocorrect).
103
+ Layout/EmptyLineAfterGuardClause:
104
+ Enabled: false
105
+
106
+ # Offense count: 3
107
+ # This cop supports safe autocorrection (--autocorrect).
108
+ Layout/EmptyLineAfterMagicComment:
109
+ Exclude:
110
+ - 'apipie-rails.gemspec'
111
+ - 'lib/apipie/validator.rb'
112
+ - 'lib/tasks/apipie.rake'
113
+
114
+ # Offense count: 20
115
+ # This cop supports safe autocorrection (--autocorrect).
116
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
117
+ Layout/EmptyLineBetweenDefs:
118
+ Exclude:
119
+ - 'app/controllers/apipie/apipies_controller.rb'
120
+ - 'lib/apipie/apipie_module.rb'
121
+ - 'lib/apipie/dsl_definition.rb'
122
+ - 'lib/apipie/extractor/writer.rb'
123
+ - 'lib/apipie/response_description.rb'
124
+ - 'lib/apipie/response_description_adapter.rb'
125
+ - 'lib/apipie/swagger_generator.rb'
126
+ - 'lib/apipie/validator.rb'
127
+ - 'lib/tasks/apipie.rake'
128
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
129
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
130
+
131
+ # Offense count: 83
132
+ # This cop supports safe autocorrection (--autocorrect).
133
+ Layout/EmptyLines:
134
+ Enabled: false
135
+
136
+ # Offense count: 1
137
+ # This cop supports safe autocorrection (--autocorrect).
138
+ # Configuration parameters: EnforcedStyle.
139
+ # SupportedStyles: around, only_before
140
+ Layout/EmptyLinesAroundAccessModifier:
141
+ Exclude:
142
+ - 'app/controllers/apipie/apipies_controller.rb'
143
+
144
+ # Offense count: 6
145
+ # This cop supports safe autocorrection (--autocorrect).
146
+ # Configuration parameters: AllowAliasSyntax, AllowedMethods.
147
+ # AllowedMethods: alias_method, public, protected, private
148
+ Layout/EmptyLinesAroundAttributeAccessor:
149
+ Exclude:
150
+ - 'lib/apipie/configuration.rb'
151
+ - 'lib/apipie/swagger_generator.rb'
152
+
153
+ # Offense count: 106
154
+ # This cop supports safe autocorrection (--autocorrect).
155
+ # Configuration parameters: EnforcedStyle.
156
+ # SupportedStyles: empty_lines, no_empty_lines
157
+ Layout/EmptyLinesAroundBlockBody:
158
+ Enabled: false
159
+
160
+ # Offense count: 51
161
+ # This cop supports safe autocorrection (--autocorrect).
162
+ # Configuration parameters: EnforcedStyle.
163
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
164
+ Layout/EmptyLinesAroundClassBody:
165
+ Enabled: false
166
+
167
+ # Offense count: 1
168
+ # This cop supports safe autocorrection (--autocorrect).
169
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
170
+ Exclude:
171
+ - 'lib/apipie/swagger_generator.rb'
172
+
173
+ # Offense count: 11
174
+ # This cop supports safe autocorrection (--autocorrect).
175
+ Layout/EmptyLinesAroundMethodBody:
176
+ Exclude:
177
+ - 'lib/apipie/application.rb'
178
+ - 'lib/apipie/dsl_definition.rb'
179
+ - 'lib/apipie/param_description.rb'
180
+ - 'lib/apipie/resource_description.rb'
181
+ - 'lib/apipie/response_description.rb'
182
+ - 'lib/apipie/rspec/response_validation_helper.rb'
183
+ - 'lib/apipie/static_dispatcher.rb'
184
+ - 'lib/apipie/swagger_generator.rb'
185
+
186
+ # Offense count: 33
187
+ # This cop supports safe autocorrection (--autocorrect).
188
+ # Configuration parameters: EnforcedStyle.
189
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
190
+ Layout/EmptyLinesAroundModuleBody:
191
+ Enabled: false
192
+
193
+ # Offense count: 7
194
+ # This cop supports safe autocorrection (--autocorrect).
195
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
196
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
197
+ Layout/EndAlignment:
198
+ Exclude:
199
+ - 'app/controllers/apipie/apipies_controller.rb'
200
+ - 'lib/apipie/apipie_module.rb'
201
+ - 'lib/apipie/application.rb'
202
+ - 'lib/apipie/extractor/writer.rb'
203
+ - 'lib/apipie/method_description.rb'
204
+ - 'lib/apipie/param_description.rb'
205
+ - 'lib/apipie/resource_description.rb'
206
+
207
+ # Offense count: 32
208
+ # This cop supports safe autocorrection (--autocorrect).
209
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
210
+ Layout/ExtraSpacing:
211
+ Exclude:
212
+ - 'lib/apipie/configuration.rb'
213
+ - 'lib/apipie/dsl_definition.rb'
214
+ - 'lib/apipie/swagger_generator.rb'
215
+ - 'spec/controllers/users_controller_spec.rb'
216
+ - 'spec/dummy/app/controllers/pets_controller.rb'
217
+ - 'spec/dummy/config.ru'
218
+ - 'spec/dummy/config/environments/test.rb'
219
+ - 'spec/dummy/script/rails'
220
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
221
+
222
+ # Offense count: 9
223
+ # This cop supports safe autocorrection (--autocorrect).
224
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
225
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
226
+ Layout/FirstArrayElementIndentation:
227
+ Exclude:
228
+ - 'spec/dummy/app/controllers/pets_controller.rb'
229
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
230
+
231
+ # Offense count: 36
232
+ # This cop supports safe autocorrection (--autocorrect).
233
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
234
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
235
+ Layout/FirstHashElementIndentation:
236
+ Exclude:
237
+ - 'lib/apipie/dsl_definition.rb'
238
+ - 'lib/apipie/extractor.rb'
239
+ - 'lib/apipie/response_description.rb'
240
+ - 'lib/apipie/response_description_adapter.rb'
241
+ - 'lib/apipie/swagger_generator.rb'
242
+ - 'spec/dummy/app/controllers/pets_controller.rb'
243
+ - 'spec/lib/extractor/writer_spec.rb'
244
+
245
+ # Offense count: 117
246
+ # This cop supports safe autocorrection (--autocorrect).
247
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
248
+ # SupportedHashRocketStyles: key, separator, table
249
+ # SupportedColonStyles: key, separator, table
250
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
251
+ Layout/HashAlignment:
252
+ Exclude:
253
+ - 'lib/apipie/dsl_definition.rb'
254
+ - 'lib/apipie/swagger_generator.rb'
255
+ - 'lib/tasks/apipie.rake'
256
+ - 'spec/controllers/users_controller_spec.rb'
257
+ - 'spec/lib/extractor/writer_spec.rb'
258
+
259
+ # Offense count: 3
260
+ # This cop supports safe autocorrection (--autocorrect).
261
+ Layout/HeredocIndentation:
262
+ Exclude:
263
+ - 'lib/tasks/apipie.rake'
264
+ - 'spec/controllers/users_controller_spec.rb'
265
+
266
+ # Offense count: 1
267
+ # This cop supports safe autocorrection (--autocorrect).
268
+ # Configuration parameters: EnforcedStyle.
269
+ # SupportedStyles: normal, indented_internal_methods
270
+ Layout/IndentationConsistency:
271
+ Exclude:
272
+ - 'spec/lib/param_group_spec.rb'
273
+
274
+ # Offense count: 8
275
+ # This cop supports safe autocorrection (--autocorrect).
276
+ # Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
277
+ Layout/IndentationWidth:
278
+ Exclude:
279
+ - 'app/controllers/apipie/apipies_controller.rb'
280
+ - 'lib/apipie/apipie_module.rb'
281
+ - 'lib/apipie/application.rb'
282
+ - 'lib/apipie/extractor/writer.rb'
283
+ - 'lib/apipie/method_description.rb'
284
+ - 'lib/apipie/param_description.rb'
285
+ - 'lib/apipie/resource_description.rb'
286
+ - 'lib/tasks/apipie.rake'
287
+
288
+ # Offense count: 2
289
+ # This cop supports safe autocorrection (--autocorrect).
290
+ Layout/InitialIndentation:
291
+ Exclude:
292
+ - 'spec/dummy/app/controllers/extending_concern.rb'
293
+ - 'spec/dummy/app/controllers/sample_controller.rb'
294
+
295
+ # Offense count: 16
296
+ # This cop supports safe autocorrection (--autocorrect).
297
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
298
+ Layout/LeadingCommentSpace:
299
+ Exclude:
300
+ - 'lib/apipie/configuration.rb'
301
+ - 'lib/apipie/dsl_definition.rb'
302
+ - 'lib/tasks/apipie.rake'
303
+
304
+ # Offense count: 8
305
+ # This cop supports safe autocorrection (--autocorrect).
306
+ # Configuration parameters: EnforcedStyle.
307
+ # SupportedStyles: symmetrical, new_line, same_line
308
+ Layout/MultilineArrayBraceLayout:
309
+ Exclude:
310
+ - 'spec/controllers/users_controller_spec.rb'
311
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
312
+
313
+ # Offense count: 5
314
+ # This cop supports safe autocorrection (--autocorrect).
315
+ # Configuration parameters: EnforcedStyle.
316
+ # SupportedStyles: symmetrical, new_line, same_line
317
+ Layout/MultilineHashBraceLayout:
318
+ Exclude:
319
+ - 'spec/controllers/users_controller_spec.rb'
320
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
321
+
322
+ # Offense count: 1
323
+ # This cop supports safe autocorrection (--autocorrect).
324
+ # Configuration parameters: EnforcedStyle.
325
+ # SupportedStyles: symmetrical, new_line, same_line
326
+ Layout/MultilineMethodCallBraceLayout:
327
+ Exclude:
328
+ - 'lib/tasks/apipie.rake'
329
+
330
+ # Offense count: 4
331
+ # This cop supports safe autocorrection (--autocorrect).
332
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
333
+ # SupportedStyles: aligned, indented
334
+ Layout/MultilineOperationIndentation:
335
+ Exclude:
336
+ - 'lib/apipie/application.rb'
337
+ - 'lib/apipie/param_description.rb'
338
+ - 'lib/tasks/apipie.rake'
339
+
340
+ # Offense count: 1
341
+ # This cop supports safe autocorrection (--autocorrect).
342
+ Layout/SpaceAfterColon:
343
+ Exclude:
344
+ - 'spec/dummy/app/controllers/included_param_group_controller.rb'
345
+
346
+ # Offense count: 91
347
+ # This cop supports safe autocorrection (--autocorrect).
348
+ Layout/SpaceAfterComma:
349
+ Enabled: false
350
+
351
+ # Offense count: 4
352
+ # This cop supports safe autocorrection (--autocorrect).
353
+ Layout/SpaceAfterNot:
354
+ Exclude:
355
+ - 'lib/apipie/application.rb'
356
+ - 'lib/apipie/dsl_definition.rb'
357
+ - 'lib/apipie/extractor/collector.rb'
358
+ - 'lib/apipie/extractor/writer.rb'
359
+
360
+ # Offense count: 37
361
+ # This cop supports safe autocorrection (--autocorrect).
362
+ # Configuration parameters: EnforcedStyle.
363
+ # SupportedStyles: space, no_space
364
+ Layout/SpaceAroundEqualsInParameterDefault:
365
+ Exclude:
366
+ - 'app/helpers/apipie_helper.rb'
367
+ - 'lib/apipie/apipie_module.rb'
368
+ - 'lib/apipie/application.rb'
369
+ - 'lib/apipie/dsl_definition.rb'
370
+ - 'lib/apipie/error_description.rb'
371
+ - 'lib/apipie/method_description.rb'
372
+ - 'lib/apipie/response_description.rb'
373
+ - 'lib/apipie/response_description_adapter.rb'
374
+ - 'lib/apipie/rspec/response_validation_helper.rb'
375
+ - 'lib/apipie/swagger_generator.rb'
376
+ - 'lib/apipie/validator.rb'
377
+ - 'lib/tasks/apipie.rake'
378
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
379
+ - 'spec/spec_helper.rb'
380
+
381
+ # Offense count: 1
382
+ # This cop supports safe autocorrection (--autocorrect).
383
+ Layout/SpaceAroundMethodCallOperator:
384
+ Exclude:
385
+ - 'lib/apipie/validator.rb'
386
+
387
+ # Offense count: 136
388
+ # This cop supports safe autocorrection (--autocorrect).
389
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
390
+ # SupportedStylesForExponentOperator: space, no_space
391
+ Layout/SpaceAroundOperators:
392
+ Exclude:
393
+ - 'app/controllers/apipie/apipies_controller.rb'
394
+ - 'lib/apipie/dsl_definition.rb'
395
+ - 'lib/apipie/extractor/writer.rb'
396
+ - 'lib/tasks/apipie.rake'
397
+ - 'spec/controllers/users_controller_spec.rb'
398
+ - 'spec/dummy/app/controllers/pets_controller.rb'
399
+ - 'spec/dummy/config/environments/test.rb'
400
+ - 'spec/lib/extractor/writer_spec.rb'
401
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
402
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
403
+
404
+ # Offense count: 40
405
+ # This cop supports safe autocorrection (--autocorrect).
406
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
407
+ # SupportedStyles: space, no_space
408
+ # SupportedStylesForEmptyBraces: space, no_space
409
+ Layout/SpaceBeforeBlockBraces:
410
+ Exclude:
411
+ - 'lib/apipie/dsl_definition.rb'
412
+ - 'lib/apipie/extractor/writer.rb'
413
+ - 'lib/apipie/method_description.rb'
414
+ - 'lib/apipie/param_description.rb'
415
+ - 'lib/apipie/response_description.rb'
416
+ - 'lib/apipie/routes_formatter.rb'
417
+ - 'lib/apipie/swagger_generator.rb'
418
+ - 'lib/tasks/apipie.rake'
419
+ - 'spec/controllers/users_controller_spec.rb'
420
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
421
+ - 'spec/lib/method_description_spec.rb'
422
+ - 'spec/lib/resource_description_spec.rb'
423
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
424
+
425
+ # Offense count: 4
426
+ # This cop supports safe autocorrection (--autocorrect).
427
+ Layout/SpaceBeforeComma:
428
+ Exclude:
429
+ - 'spec/controllers/users_controller_spec.rb'
430
+
431
+ # Offense count: 2
432
+ # This cop supports safe autocorrection (--autocorrect).
433
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
434
+ # SupportedStyles: space, no_space, compact
435
+ # SupportedStylesForEmptyBrackets: space, no_space
436
+ Layout/SpaceInsideArrayLiteralBrackets:
437
+ Exclude:
438
+ - 'lib/apipie/extractor/writer.rb'
439
+ - 'spec/controllers/users_controller_spec.rb'
440
+
441
+ # Offense count: 95
442
+ # This cop supports safe autocorrection (--autocorrect).
443
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
444
+ # SupportedStyles: space, no_space
445
+ # SupportedStylesForEmptyBraces: space, no_space
446
+ Layout/SpaceInsideBlockBraces:
447
+ Enabled: false
448
+
449
+ # Offense count: 234
450
+ # This cop supports safe autocorrection (--autocorrect).
451
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
452
+ # SupportedStyles: space, no_space, compact
453
+ # SupportedStylesForEmptyBraces: space, no_space
454
+ Layout/SpaceInsideHashLiteralBraces:
455
+ Enabled: false
456
+
457
+ # Offense count: 3
458
+ # This cop supports safe autocorrection (--autocorrect).
459
+ # Configuration parameters: EnforcedStyle.
460
+ # SupportedStyles: space, compact, no_space
461
+ Layout/SpaceInsideParens:
462
+ Exclude:
463
+ - 'lib/apipie/middleware/checksum_in_headers.rb'
464
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
465
+
466
+ # Offense count: 1
467
+ # This cop supports safe autocorrection (--autocorrect).
468
+ # Configuration parameters: EnforcedStyle.
469
+ # SupportedStyles: space, no_space
470
+ Layout/SpaceInsideStringInterpolation:
471
+ Exclude:
472
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
473
+
474
+ # Offense count: 12
475
+ # This cop supports safe autocorrection (--autocorrect).
476
+ # Configuration parameters: EnforcedStyle.
477
+ # SupportedStyles: final_newline, final_blank_line
478
+ Layout/TrailingEmptyLines:
479
+ Exclude:
480
+ - 'Rakefile'
481
+ - 'lib/apipie/extractor/collector.rb'
482
+ - 'lib/apipie/rspec/response_validation_helper.rb'
483
+ - 'spec/controllers/concerns_controller_spec.rb'
484
+ - 'spec/dummy/app/controllers/included_param_group_controller.rb'
485
+ - 'spec/dummy/app/controllers/pets_controller.rb'
486
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
487
+ - 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
488
+ - 'spec/dummy/config/boot.rb'
489
+ - 'spec/dummy/config/environments/development.rb'
490
+ - 'spec/dummy/config/initializers/secret_token.rb'
491
+ - 'spec/lib/param_group_spec.rb'
492
+
493
+ # Offense count: 18
494
+ # This cop supports safe autocorrection (--autocorrect).
495
+ # Configuration parameters: AllowInHeredoc.
496
+ Layout/TrailingWhitespace:
497
+ Exclude:
498
+ - 'lib/apipie/error_description.rb'
499
+ - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
500
+ - 'spec/dummy/app/controllers/application_controller.rb'
501
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
502
+ - 'spec/lib/application_spec.rb'
503
+
504
+ # Offense count: 10
505
+ # Configuration parameters: AllowSafeAssignment.
506
+ Lint/AssignmentInCondition:
507
+ Exclude:
508
+ - 'lib/apipie/application.rb'
509
+ - 'lib/apipie/extractor.rb'
510
+ - 'lib/apipie/extractor/recorder.rb'
511
+ - 'lib/apipie/extractor/writer.rb'
512
+ - 'lib/apipie/param_description.rb'
513
+ - 'lib/apipie/static_dispatcher.rb'
514
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
515
+
516
+ # Offense count: 2
517
+ # Configuration parameters: AllowedMethods.
518
+ # AllowedMethods: enums
519
+ Lint/ConstantDefinitionInBlock:
520
+ Exclude:
521
+ - 'lib/apipie/rspec/response_validation_helper.rb'
522
+ - 'spec/controllers/users_controller_spec.rb'
523
+
524
+ # Offense count: 5
525
+ # This cop supports safe autocorrection (--autocorrect).
526
+ Lint/DeprecatedClassMethods:
527
+ Exclude:
528
+ - 'app/controllers/apipie/apipies_controller.rb'
529
+ - 'lib/apipie/extractor/writer.rb'
530
+ - 'spec/controllers/apipies_controller_spec.rb'
531
+ - 'spec/lib/extractor/writer_spec.rb'
532
+
533
+ # Offense count: 9
534
+ Lint/DuplicateMethods:
535
+ Exclude:
536
+ - 'lib/apipie/configuration.rb'
537
+ - 'lib/apipie/method_description.rb'
538
+
539
+ # Offense count: 1
540
+ # This cop supports safe autocorrection (--autocorrect).
541
+ Lint/IdentityComparison:
542
+ Exclude:
543
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
544
+
545
+ # Offense count: 5
546
+ Lint/MissingSuper:
547
+ Exclude:
548
+ - 'lib/apipie/errors.rb'
549
+ - 'lib/apipie/response_description_adapter.rb'
550
+ - 'lib/apipie/validator.rb'
551
+
552
+ # Offense count: 1
553
+ Lint/NestedMethodDefinition:
554
+ Exclude:
555
+ - 'lib/apipie/swagger_generator.rb'
556
+
557
+ # Offense count: 11
558
+ # This cop supports unsafe autocorrection (--autocorrect-all).
559
+ Lint/NonAtomicFileOperation:
560
+ Exclude:
561
+ - 'lib/tasks/apipie.rake'
562
+ - 'spec/lib/extractor/writer_spec.rb'
563
+
564
+ # Offense count: 1
565
+ # This cop supports unsafe autocorrection (--autocorrect-all).
566
+ Lint/NonDeterministicRequireOrder:
567
+ Exclude:
568
+ - 'spec/spec_helper.rb'
569
+
570
+ # Offense count: 2
571
+ # This cop supports safe autocorrection (--autocorrect).
572
+ Lint/ParenthesesAsGroupedExpression:
573
+ Exclude:
574
+ - 'lib/apipie/param_description.rb'
575
+ - 'lib/apipie/swagger_generator.rb'
576
+
577
+ # Offense count: 2
578
+ # This cop supports safe autocorrection (--autocorrect).
579
+ Lint/RedundantStringCoercion:
580
+ Exclude:
581
+ - 'lib/apipie/routes_formatter.rb'
582
+ - 'lib/apipie/rspec/response_validation_helper.rb'
583
+
584
+ # Offense count: 4
585
+ # This cop supports safe autocorrection (--autocorrect).
586
+ Lint/SendWithMixinArgument:
587
+ Exclude:
588
+ - 'lib/apipie/extractor.rb'
589
+ - 'lib/apipie/routing.rb'
590
+ - 'spec/dummy/config/application.rb'
591
+
592
+ # Offense count: 2
593
+ Lint/ShadowingOuterLocalVariable:
594
+ Exclude:
595
+ - 'lib/apipie/extractor/writer.rb'
596
+ - 'lib/apipie/swagger_generator.rb'
597
+
598
+ # Offense count: 5
599
+ # This cop supports safe autocorrection (--autocorrect).
600
+ Lint/ToJSON:
601
+ Exclude:
602
+ - 'lib/apipie/error_description.rb'
603
+ - 'lib/apipie/response_description_adapter.rb'
604
+ - 'lib/apipie/see_description.rb'
605
+ - 'lib/apipie/validator.rb'
606
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
607
+
608
+ # Offense count: 3
609
+ # Configuration parameters: AllowKeywordBlockArguments.
610
+ Lint/UnderscorePrefixedVariableName:
611
+ Exclude:
612
+ - 'lib/apipie/application.rb'
613
+ - 'lib/apipie/dsl_definition.rb'
614
+
615
+ # Offense count: 8
616
+ # This cop supports safe autocorrection (--autocorrect).
617
+ Lint/UnifiedInteger:
618
+ Exclude:
619
+ - 'spec/controllers/users_controller_spec.rb'
620
+ - 'spec/dummy/app/controllers/users_controller.rb'
621
+ - 'spec/dummy/config/initializers/apipie.rb'
622
+ - 'spec/lib/param_description_spec.rb'
623
+ - 'spec/lib/validator_spec.rb'
624
+
625
+ # Offense count: 29
626
+ # This cop supports safe autocorrection (--autocorrect).
627
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
628
+ Lint/UnusedBlockArgument:
629
+ Exclude:
630
+ - 'lib/apipie/configuration.rb'
631
+ - 'lib/apipie/extractor/collector.rb'
632
+ - 'lib/apipie/extractor/recorder.rb'
633
+ - 'lib/apipie/param_description.rb'
634
+ - 'lib/apipie/resource_description.rb'
635
+ - 'lib/apipie/rspec/response_validation_helper.rb'
636
+ - 'lib/apipie/swagger_generator.rb'
637
+ - 'lib/tasks/apipie.rake'
638
+ - 'spec/controllers/apipies_controller_spec.rb'
639
+ - 'spec/controllers/users_controller_spec.rb'
640
+ - 'spec/lib/extractor/extractor_spec.rb'
641
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
642
+ - 'spec/spec_helper.rb'
643
+
644
+ # Offense count: 29
645
+ # This cop supports safe autocorrection (--autocorrect).
646
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
647
+ Lint/UnusedMethodArgument:
648
+ Exclude:
649
+ - 'lib/apipie/application.rb'
650
+ - 'lib/apipie/dsl_definition.rb'
651
+ - 'lib/apipie/resource_description.rb'
652
+ - 'lib/apipie/response_description_adapter.rb'
653
+ - 'lib/apipie/swagger_generator.rb'
654
+ - 'lib/apipie/validator.rb'
655
+ - 'spec/dummy/config/initializers/apipie.rb'
656
+ - 'spec/support/custom_bool_validator.rb'
657
+
658
+ # Offense count: 5
659
+ Lint/UselessAssignment:
660
+ Exclude:
661
+ - 'lib/apipie/application.rb'
662
+ - 'lib/apipie/extractor/collector.rb'
663
+ - 'lib/apipie/method_description.rb'
664
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
665
+
666
+ # Offense count: 2
667
+ # This cop supports unsafe autocorrection (--autocorrect-all).
668
+ Lint/UselessMethodDefinition:
669
+ Exclude:
670
+ - 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
671
+
672
+ # Offense count: 3
673
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
674
+ Lint/Void:
675
+ Exclude:
676
+ - 'spec/controllers/users_controller_spec.rb'
677
+
678
+ # Offense count: 57
679
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
680
+ Metrics/AbcSize:
681
+ Max: 98
682
+
683
+ # Offense count: 8
684
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, inherit_mode.
685
+ # AllowedMethods: refine
686
+ Metrics/BlockLength:
687
+ Max: 272
688
+
689
+ # Offense count: 4
690
+ # Configuration parameters: CountBlocks.
691
+ Metrics/BlockNesting:
692
+ Max: 4
693
+
694
+ # Offense count: 12
695
+ # Configuration parameters: CountComments, CountAsOne.
696
+ Metrics/ClassLength:
697
+ Max: 488
698
+
699
+ # Offense count: 28
700
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
701
+ Metrics/CyclomaticComplexity:
702
+ Max: 24
703
+
704
+ # Offense count: 70
705
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
706
+ Metrics/MethodLength:
707
+ Max: 63
708
+
709
+ # Offense count: 1
710
+ # Configuration parameters: CountComments, CountAsOne.
711
+ Metrics/ModuleLength:
712
+ Max: 119
713
+
714
+ # Offense count: 4
715
+ # Configuration parameters: CountKeywordArgs.
716
+ Metrics/ParameterLists:
717
+ MaxOptionalParameters: 5
718
+ Max: 6
719
+
720
+ # Offense count: 25
721
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
722
+ Metrics/PerceivedComplexity:
723
+ Max: 26
724
+
725
+ # Offense count: 5
726
+ Naming/AccessorMethodName:
727
+ Exclude:
728
+ - 'app/controllers/apipie/apipies_controller.rb'
729
+ - 'spec/dummy/app/controllers/pets_controller.rb'
730
+ - 'spec/dummy/app/controllers/users_controller.rb'
731
+
732
+ # Offense count: 1
733
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
734
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
735
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
736
+ Naming/FileName:
737
+ Exclude:
738
+ - 'lib/apipie-rails.rb'
739
+
740
+ # Offense count: 1
741
+ # This cop supports safe autocorrection (--autocorrect).
742
+ # Configuration parameters: EnforcedStyle.
743
+ # SupportedStyles: lowercase, uppercase
744
+ Naming/HeredocDelimiterCase:
745
+ Exclude:
746
+ - 'spec/dummy/app/controllers/users_controller.rb'
747
+
748
+ # Offense count: 6
749
+ # Configuration parameters: ForbiddenDelimiters.
750
+ # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
751
+ Naming/HeredocDelimiterNaming:
752
+ Exclude:
753
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
754
+ - 'spec/dummy/app/controllers/users_controller.rb'
755
+
756
+ # Offense count: 2
757
+ # Configuration parameters: EnforcedStyleForLeadingUnderscores.
758
+ # SupportedStylesForLeadingUnderscores: disallowed, required, optional
759
+ Naming/MemoizedInstanceVariableName:
760
+ Exclude:
761
+ - 'lib/apipie/apipie_module.rb'
762
+ - 'lib/apipie/application.rb'
763
+
764
+ # Offense count: 4
765
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
766
+ # AllowedNames: as, at, by, db, id, in, io, ip, of, on, os, pp, to
767
+ Naming/MethodParameterName:
768
+ Exclude:
769
+ - 'lib/apipie/method_description.rb'
770
+ - 'lib/apipie/swagger_generator.rb'
771
+ - 'spec/controllers/users_controller_spec.rb'
772
+
773
+ # Offense count: 7
774
+ # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
775
+ # NamePrefix: is_, has_, have_
776
+ # ForbiddenPrefixes: is_, has_, have_
777
+ # AllowedMethods: is_a?
778
+ # MethodDefinitionMacros: define_method, define_singleton_method
779
+ Naming/PredicateName:
780
+ Exclude:
781
+ - 'lib/apipie/param_description.rb'
782
+ - 'lib/apipie/response_description.rb'
783
+ - 'lib/apipie/response_description_adapter.rb'
784
+ - 'lib/apipie/validator.rb'
785
+
786
+ # Offense count: 1
787
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
788
+ # SupportedStyles: snake_case, normalcase, non_integer
789
+ # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
790
+ Naming/VariableNumber:
791
+ Exclude:
792
+ - 'spec/dummy/app/controllers/users_controller.rb'
793
+
794
+ # Offense count: 1
795
+ # This cop supports safe autocorrection (--autocorrect).
796
+ Performance/BlockGivenWithExplicitBlock:
797
+ Exclude:
798
+ - 'lib/apipie/dsl_definition.rb'
799
+
800
+ # Offense count: 4
801
+ # Configuration parameters: MinSize.
802
+ Performance/CollectionLiteralInLoop:
803
+ Exclude:
804
+ - 'app/controllers/apipie/apipies_controller.rb'
805
+ - 'lib/apipie/dsl_definition.rb'
806
+ - 'lib/apipie/extractor/collector.rb'
807
+
808
+ # Offense count: 1
809
+ # This cop supports unsafe autocorrection (--autocorrect-all).
810
+ # Configuration parameters: SafeMultiline.
811
+ Performance/DeletePrefix:
812
+ Exclude:
813
+ - 'lib/tasks/apipie.rake'
814
+
815
+ # Offense count: 3
816
+ # This cop supports unsafe autocorrection (--autocorrect-all).
817
+ Performance/Detect:
818
+ Exclude:
819
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
820
+
821
+ # Offense count: 1
822
+ # This cop supports safe autocorrection (--autocorrect).
823
+ Performance/RedundantBlockCall:
824
+ Exclude:
825
+ - 'lib/apipie/extractor/recorder.rb'
826
+
827
+ # Offense count: 1
828
+ # This cop supports unsafe autocorrection (--autocorrect-all).
829
+ # Configuration parameters: MaxKeyValuePairs.
830
+ Performance/RedundantMerge:
831
+ Exclude:
832
+ - 'lib/apipie/middleware/checksum_in_headers.rb'
833
+
834
+ # Offense count: 8
835
+ # This cop supports safe autocorrection (--autocorrect).
836
+ Performance/RegexpMatch:
837
+ Exclude:
838
+ - 'app/controllers/apipie/apipies_controller.rb'
839
+ - 'lib/apipie/extractor/writer.rb'
840
+ - 'lib/apipie/helpers.rb'
841
+
842
+ # Offense count: 8
843
+ # This cop supports safe autocorrection (--autocorrect).
844
+ Performance/StringIdentifierArgument:
845
+ Exclude:
846
+ - 'lib/apipie/extractor/writer.rb'
847
+ - 'spec/controllers/users_controller_spec.rb'
848
+ - 'spec/lib/method_description_spec.rb'
849
+
850
+ # Offense count: 2
851
+ # This cop supports unsafe autocorrection (--autocorrect-all).
852
+ Performance/StringInclude:
853
+ Exclude:
854
+ - 'app/controllers/apipie/apipies_controller.rb'
855
+
856
+ # Offense count: 7
857
+ # This cop supports safe autocorrection (--autocorrect).
858
+ Performance/StringReplacement:
859
+ Exclude:
860
+ - 'app/controllers/apipie/apipies_controller.rb'
861
+ - 'lib/apipie/application.rb'
862
+ - 'lib/apipie/extractor/writer.rb'
863
+ - 'lib/apipie/static_dispatcher.rb'
864
+ - 'lib/apipie/swagger_generator.rb'
865
+ - 'lib/tasks/apipie.rake'
866
+
867
+ # Offense count: 2
868
+ # This cop supports unsafe autocorrection (--autocorrect-all).
869
+ # Configuration parameters: OnlySumOrWithInitialValue.
870
+ Performance/Sum:
871
+ Exclude:
872
+ - 'lib/apipie/extractor/writer.rb'
873
+
874
+ # Offense count: 3
875
+ RSpec/Be:
876
+ Exclude:
877
+ - 'spec/controllers/concerns_controller_spec.rb'
878
+ - 'spec/controllers/users_controller_spec.rb'
879
+
880
+ # Offense count: 51
881
+ # This cop supports safe autocorrection (--autocorrect).
882
+ RSpec/BeEq:
883
+ Exclude:
884
+ - 'spec/controllers/apipies_controller_spec.rb'
885
+ - 'spec/controllers/users_controller_spec.rb'
886
+ - 'spec/lib/method_description_spec.rb'
887
+ - 'spec/lib/param_description_spec.rb'
888
+ - 'spec/lib/param_group_spec.rb'
889
+ - 'spec/lib/resource_description_spec.rb'
890
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
891
+ - 'spec/lib/validators/array_validator_spec.rb'
892
+
893
+ # Offense count: 3
894
+ RSpec/BeforeAfterAll:
895
+ Exclude:
896
+ - 'spec/controllers/users_controller_spec.rb'
897
+
898
+ # Offense count: 35
899
+ # Configuration parameters: Prefixes, AllowedPatterns.
900
+ # Prefixes: when, with, without
901
+ RSpec/ContextWording:
902
+ Exclude:
903
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
904
+ - 'spec/controllers/apipies_controller_spec.rb'
905
+ - 'spec/controllers/users_controller_spec.rb'
906
+ - 'spec/lib/file_handler_spec.rb'
907
+ - 'spec/lib/param_description_spec.rb'
908
+ - 'spec/lib/param_group_spec.rb'
909
+ - 'spec/lib/validator_spec.rb'
910
+ - 'spec/lib/validators/array_validator_spec.rb'
911
+ - 'spec/support/rake.rb'
912
+
913
+ # Offense count: 4
914
+ # Configuration parameters: IgnoredMetadata.
915
+ RSpec/DescribeClass:
916
+ Exclude:
917
+ - 'spec/lib/param_group_spec.rb'
918
+ - 'spec/lib/rake_spec.rb'
919
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
920
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
921
+
922
+ # Offense count: 94
923
+ # This cop supports unsafe autocorrection (--autocorrect-all).
924
+ # Configuration parameters: SkipBlocks, EnforcedStyle.
925
+ # SupportedStyles: described_class, explicit
926
+ RSpec/DescribedClass:
927
+ Exclude:
928
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
929
+ - 'spec/controllers/api/v2/architectures_controller_spec.rb'
930
+ - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
931
+ - 'spec/controllers/included_param_group_controller_spec.rb'
932
+ - 'spec/controllers/memes_controller_spec.rb'
933
+ - 'spec/controllers/users_controller_spec.rb'
934
+ - 'spec/lib/extractor/extractor_spec.rb'
935
+ - 'spec/lib/extractor/middleware_spec.rb'
936
+ - 'spec/lib/extractor/writer_spec.rb'
937
+ - 'spec/lib/file_handler_spec.rb'
938
+ - 'spec/lib/method_description_spec.rb'
939
+ - 'spec/lib/param_description_spec.rb'
940
+ - 'spec/lib/resource_description_spec.rb'
941
+ - 'spec/lib/validators/array_validator_spec.rb'
942
+
943
+ # Offense count: 10
944
+ # This cop supports safe autocorrection (--autocorrect).
945
+ # Configuration parameters: AllowConsecutiveOneLiners.
946
+ RSpec/EmptyLineAfterExample:
947
+ Exclude:
948
+ - 'spec/controllers/apipies_controller_spec.rb'
949
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
950
+
951
+ # Offense count: 6
952
+ # This cop supports safe autocorrection (--autocorrect).
953
+ RSpec/EmptyLineAfterExampleGroup:
954
+ Exclude:
955
+ - 'spec/controllers/users_controller_spec.rb'
956
+ - 'spec/lib/param_description_spec.rb'
957
+
958
+ # Offense count: 1
959
+ # This cop supports safe autocorrection (--autocorrect).
960
+ RSpec/EmptyLineAfterFinalLet:
961
+ Exclude:
962
+ - 'spec/lib/validators/array_validator_spec.rb'
963
+
964
+ # Offense count: 4
965
+ # This cop supports safe autocorrection (--autocorrect).
966
+ # Configuration parameters: AllowConsecutiveOneLiners.
967
+ RSpec/EmptyLineAfterHook:
968
+ Exclude:
969
+ - 'spec/controllers/apipies_controller_spec.rb'
970
+ - 'spec/lib/application_spec.rb'
971
+
972
+ # Offense count: 48
973
+ # Configuration parameters: CountAsOne.
974
+ RSpec/ExampleLength:
975
+ Max: 79
976
+
977
+ # Offense count: 165
978
+ # This cop supports safe autocorrection (--autocorrect).
979
+ # Configuration parameters: CustomTransform, IgnoredWords.
980
+ RSpec/ExampleWording:
981
+ Enabled: false
982
+
983
+ # Offense count: 1
984
+ # This cop supports safe autocorrection (--autocorrect).
985
+ RSpec/ExcessiveDocstringSpacing:
986
+ Exclude:
987
+ - 'spec/controllers/users_controller_spec.rb'
988
+
989
+ # Offense count: 1
990
+ RSpec/ExpectInHook:
991
+ Exclude:
992
+ - 'spec/lib/extractor/writer_spec.rb'
993
+
994
+ # Offense count: 12
995
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
996
+ # Include: **/*_spec*rb*, **/spec/**/*
997
+ RSpec/FilePath:
998
+ Exclude:
999
+ - 'spec/controllers/apipies_controller_spec.rb'
1000
+ - 'spec/controllers/memes_controller_spec.rb'
1001
+ - 'spec/lib/application_spec.rb'
1002
+ - 'spec/lib/extractor/extractor_spec.rb'
1003
+ - 'spec/lib/extractor/middleware_spec.rb'
1004
+ - 'spec/lib/extractor/writer_spec.rb'
1005
+ - 'spec/lib/file_handler_spec.rb'
1006
+ - 'spec/lib/method_description_spec.rb'
1007
+ - 'spec/lib/param_description_spec.rb'
1008
+ - 'spec/lib/resource_description_spec.rb'
1009
+ - 'spec/lib/swagger/response_validation_spec.rb'
1010
+ - 'spec/lib/validator_spec.rb'
1011
+
1012
+ # Offense count: 8
1013
+ # This cop supports safe autocorrection (--autocorrect).
1014
+ # Configuration parameters: EnforcedStyle.
1015
+ # SupportedStyles: implicit, each, example
1016
+ RSpec/HookArgument:
1017
+ Exclude:
1018
+ - 'spec/lib/extractor/writer_spec.rb'
1019
+ - 'spec/lib/method_description_spec.rb'
1020
+ - 'spec/lib/resource_description_spec.rb'
1021
+ - 'spec/lib/swagger/response_validation_spec.rb'
1022
+
1023
+ # Offense count: 5
1024
+ # This cop supports safe autocorrection (--autocorrect).
1025
+ RSpec/HooksBeforeExamples:
1026
+ Exclude:
1027
+ - 'spec/controllers/users_controller_spec.rb'
1028
+ - 'spec/lib/application_spec.rb'
1029
+ - 'spec/lib/extractor/writer_spec.rb'
1030
+ - 'spec/lib/param_description_spec.rb'
1031
+
1032
+ # Offense count: 2
1033
+ # This cop supports safe autocorrection (--autocorrect).
1034
+ # Configuration parameters: EnforcedStyle.
1035
+ # SupportedStyles: single_line_only, single_statement_only, disallow
1036
+ RSpec/ImplicitSubject:
1037
+ Exclude:
1038
+ - 'spec/lib/application_spec.rb'
1039
+
1040
+ # Offense count: 30
1041
+ # Configuration parameters: AssignmentOnly.
1042
+ RSpec/InstanceVariable:
1043
+ Exclude:
1044
+ - 'spec/controllers/apipies_controller_spec.rb'
1045
+ - 'spec/lib/method_description_spec.rb'
1046
+ - 'spec/lib/resource_description_spec.rb'
1047
+
1048
+ # Offense count: 1
1049
+ # This cop supports safe autocorrection (--autocorrect).
1050
+ RSpec/LeadingSubject:
1051
+ Exclude:
1052
+ - 'spec/support/rake.rb'
1053
+
1054
+ # Offense count: 1
1055
+ RSpec/LeakyConstantDeclaration:
1056
+ Exclude:
1057
+ - 'spec/controllers/users_controller_spec.rb'
1058
+
1059
+ # Offense count: 9
1060
+ # Configuration parameters: .
1061
+ # SupportedStyles: have_received, receive
1062
+ RSpec/MessageSpies:
1063
+ EnforcedStyle: receive
1064
+
1065
+ # Offense count: 95
1066
+ RSpec/MultipleExpectations:
1067
+ Max: 19
1068
+
1069
+ # Offense count: 12
1070
+ # Configuration parameters: AllowSubject.
1071
+ RSpec/MultipleMemoizedHelpers:
1072
+ Max: 6
1073
+
1074
+ # Offense count: 42
1075
+ # Configuration parameters: IgnoreSharedExamples.
1076
+ RSpec/NamedSubject:
1077
+ Exclude:
1078
+ - 'spec/controllers/api/v1/architectures_controller_spec.rb'
1079
+ - 'spec/controllers/api/v2/architectures_controller_spec.rb'
1080
+ - 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
1081
+ - 'spec/controllers/users_controller_spec.rb'
1082
+ - 'spec/lib/param_description_spec.rb'
1083
+ - 'spec/lib/rake_spec.rb'
1084
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1085
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1086
+
1087
+ # Offense count: 31
1088
+ # Configuration parameters: AllowedGroups.
1089
+ RSpec/NestedGroups:
1090
+ Max: 6
1091
+
1092
+ # Offense count: 21
1093
+ RSpec/NoExpectationExample:
1094
+ Exclude:
1095
+ - 'spec/controllers/apipies_controller_spec.rb'
1096
+ - 'spec/controllers/concerns_controller_spec.rb'
1097
+ - 'spec/controllers/memes_controller_spec.rb'
1098
+ - 'spec/controllers/users_controller_spec.rb'
1099
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1100
+
1101
+ # Offense count: 11
1102
+ # This cop supports safe autocorrection (--autocorrect).
1103
+ # Configuration parameters: EnforcedStyle.
1104
+ # SupportedStyles: not_to, to_not
1105
+ RSpec/NotToNot:
1106
+ Exclude:
1107
+ - 'spec/lib/file_handler_spec.rb'
1108
+ - 'spec/lib/param_description_spec.rb'
1109
+
1110
+ # Offense count: 6
1111
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1112
+ # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
1113
+ # SupportedStyles: inflected, explicit
1114
+ RSpec/PredicateMatcher:
1115
+ Exclude:
1116
+ - 'spec/lib/file_handler_spec.rb'
1117
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1118
+
1119
+ # Offense count: 4
1120
+ RSpec/RepeatedExample:
1121
+ Exclude:
1122
+ - 'spec/lib/method_description_spec.rb'
1123
+ - 'spec/lib/resource_description_spec.rb'
1124
+
1125
+ # Offense count: 4
1126
+ RSpec/RepeatedExampleGroupDescription:
1127
+ Exclude:
1128
+ - 'spec/controllers/apipies_controller_spec.rb'
1129
+ - 'spec/lib/application_spec.rb'
1130
+
1131
+ # Offense count: 2
1132
+ RSpec/StubbedMock:
1133
+ Exclude:
1134
+ - 'spec/lib/extractor/writer_spec.rb'
1135
+ - 'spec/lib/param_description_spec.rb'
1136
+
1137
+ # Offense count: 5
1138
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
1139
+ RSpec/VerifiedDoubles:
1140
+ Exclude:
1141
+ - 'spec/controllers/apipies_controller_spec.rb'
1142
+ - 'spec/lib/extractor/writer_spec.rb'
1143
+ - 'spec/lib/validators/array_validator_spec.rb'
1144
+
1145
+ # Offense count: 1
1146
+ RSpec/VoidExpect:
1147
+ Exclude:
1148
+ - 'spec/lib/extractor/writer_spec.rb'
1149
+
1150
+ # Offense count: 4
1151
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1152
+ Rails/ApplicationController:
1153
+ Exclude:
1154
+ - 'app/controllers/apipie/apipies_controller.rb'
1155
+ - 'spec/dummy/app/controllers/api/base_controller.rb'
1156
+ - 'spec/dummy/app/controllers/tagged_cats_controller.rb'
1157
+ - 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
1158
+
1159
+ # Offense count: 1
1160
+ # This cop supports safe autocorrection (--autocorrect).
1161
+ # Configuration parameters: EnforceForPrefixed.
1162
+ Rails/Delegate:
1163
+ Exclude:
1164
+ - 'lib/apipie/response_description_adapter.rb'
1165
+
1166
+ # Offense count: 14
1167
+ # Configuration parameters: EnforcedStyle.
1168
+ # SupportedStyles: slashes, arguments
1169
+ Rails/FilePath:
1170
+ Exclude:
1171
+ - 'lib/apipie/configuration.rb'
1172
+ - 'lib/apipie/dsl_definition.rb'
1173
+ - 'lib/tasks/apipie.rake'
1174
+ - 'spec/controllers/apipies_controller_spec.rb'
1175
+ - 'spec/dummy/config/initializers/apipie.rb'
1176
+ - 'spec/lib/application_spec.rb'
1177
+ - 'spec/lib/extractor/writer_spec.rb'
1178
+
1179
+ # Offense count: 5
1180
+ # This cop supports safe autocorrection (--autocorrect).
1181
+ # Configuration parameters: EnforcedStyle.
1182
+ # SupportedStyles: numeric, symbolic
1183
+ Rails/HttpStatus:
1184
+ Exclude:
1185
+ - 'app/controllers/apipie/apipies_controller.rb'
1186
+ - 'spec/dummy/app/controllers/pets_controller.rb'
1187
+ - 'spec/dummy/app/controllers/users_controller.rb'
1188
+
1189
+ # Offense count: 1
1190
+ # This cop supports safe autocorrection (--autocorrect).
1191
+ Rails/IndexBy:
1192
+ Exclude:
1193
+ - 'lib/apipie/swagger_generator.rb'
1194
+
1195
+ # Offense count: 5
1196
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1197
+ Rails/NegateInclude:
1198
+ Exclude:
1199
+ - 'lib/apipie/extractor/collector.rb'
1200
+ - 'lib/apipie/extractor/writer.rb'
1201
+ - 'lib/apipie/swagger_generator.rb'
1202
+ - 'spec/spec_helper.rb'
1203
+
1204
+ # Offense count: 9
1205
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1206
+ # Configuration parameters: Include.
1207
+ # Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
1208
+ Rails/Output:
1209
+ Exclude:
1210
+ - 'lib/apipie/apipie_module.rb'
1211
+ - 'lib/apipie/extractor.rb'
1212
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1213
+ - 'lib/apipie/swagger_generator.rb'
1214
+
1215
+ # Offense count: 2
1216
+ Rails/OutputSafety:
1217
+ Exclude:
1218
+ - 'lib/apipie/helpers.rb'
1219
+
1220
+ # Offense count: 5
1221
+ # This cop supports safe autocorrection (--autocorrect).
1222
+ Rails/Pluck:
1223
+ Exclude:
1224
+ - 'spec/lib/method_description_spec.rb'
1225
+ - 'spec/lib/resource_description_spec.rb'
1226
+
1227
+ # Offense count: 5
1228
+ # This cop supports safe autocorrection (--autocorrect).
1229
+ # Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
1230
+ Rails/Present:
1231
+ Exclude:
1232
+ - 'lib/apipie/application.rb'
1233
+ - 'lib/apipie/configuration.rb'
1234
+ - 'lib/apipie/extractor/recorder.rb'
1235
+ - 'lib/apipie/method_description.rb'
1236
+
1237
+ # Offense count: 1
1238
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1239
+ # Configuration parameters: Include.
1240
+ # Include: **/Rakefile, **/*.rake
1241
+ Rails/RakeEnvironment:
1242
+ Exclude:
1243
+ - 'lib/tasks/apipie.rake'
1244
+
1245
+ # Offense count: 18
1246
+ # This cop supports safe autocorrection (--autocorrect).
1247
+ # Configuration parameters: SafeAutocorrect.
1248
+ Rails/RootPathnameMethods:
1249
+ Exclude:
1250
+ - 'lib/apipie/configuration.rb'
1251
+ - 'lib/apipie/dsl_definition.rb'
1252
+ - 'lib/tasks/apipie.rake'
1253
+ - 'spec/controllers/apipies_controller_spec.rb'
1254
+ - 'spec/dummy/config/initializers/apipie.rb'
1255
+ - 'spec/lib/application_spec.rb'
1256
+ - 'spec/lib/extractor/writer_spec.rb'
1257
+ - 'spec/lib/rake_spec.rb'
1258
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1259
+
1260
+ # Offense count: 4
1261
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1262
+ # Configuration parameters: EnforcedStyle.
1263
+ # SupportedStyles: strict, flexible
1264
+ Rails/TimeZone:
1265
+ Exclude:
1266
+ - 'lib/tasks/apipie.rake'
1267
+
1268
+ # Offense count: 1
1269
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1270
+ Security/IoMethods:
1271
+ Exclude:
1272
+ - 'lib/apipie/extractor/writer.rb'
1273
+
1274
+ # Offense count: 5
1275
+ # This cop supports safe autocorrection (--autocorrect).
1276
+ # Configuration parameters: EnforcedStyle.
1277
+ # SupportedStyles: separated, grouped
1278
+ Style/AccessorGrouping:
1279
+ Exclude:
1280
+ - 'lib/apipie/param_description.rb'
1281
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1282
+
1283
+ # Offense count: 22
1284
+ # This cop supports safe autocorrection (--autocorrect).
1285
+ # Configuration parameters: EnforcedStyle.
1286
+ # SupportedStyles: prefer_alias, prefer_alias_method
1287
+ Style/Alias:
1288
+ Exclude:
1289
+ - 'lib/apipie/application.rb'
1290
+ - 'lib/apipie/configuration.rb'
1291
+ - 'lib/apipie/dsl_definition.rb'
1292
+ - 'lib/apipie/param_description.rb'
1293
+ - 'lib/apipie/response_description.rb'
1294
+ - 'lib/apipie/response_description_adapter.rb'
1295
+
1296
+ # Offense count: 1
1297
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1298
+ # Configuration parameters: EnforcedStyle.
1299
+ # SupportedStyles: always, conditionals
1300
+ Style/AndOr:
1301
+ Exclude:
1302
+ - 'lib/apipie/param_description.rb'
1303
+
1304
+ # Offense count: 17
1305
+ # This cop supports safe autocorrection (--autocorrect).
1306
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
1307
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
1308
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
1309
+ # FunctionalMethods: let, let!, subject, watch
1310
+ # AllowedMethods: lambda, proc, it
1311
+ Style/BlockDelimiters:
1312
+ Exclude:
1313
+ - 'lib/tasks/apipie.rake'
1314
+ - 'spec/controllers/users_controller_spec.rb'
1315
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1316
+ - 'spec/lib/extractor/writer_spec.rb'
1317
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1318
+
1319
+ # Offense count: 1
1320
+ # This cop supports safe autocorrection (--autocorrect).
1321
+ # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
1322
+ Style/CaseEquality:
1323
+ Exclude:
1324
+ - 'lib/apipie/validator.rb'
1325
+
1326
+ # Offense count: 5
1327
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1328
+ Style/CaseLikeIf:
1329
+ Exclude:
1330
+ - 'lib/apipie/dsl_definition.rb'
1331
+ - 'lib/apipie/extractor/writer.rb'
1332
+ - 'lib/apipie/response_description_adapter.rb'
1333
+ - 'spec/controllers/users_controller_spec.rb'
1334
+
1335
+ # Offense count: 11
1336
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1337
+ # Configuration parameters: EnforcedStyle.
1338
+ # SupportedStyles: nested, compact
1339
+ Style/ClassAndModuleChildren:
1340
+ Exclude:
1341
+ - 'lib/apipie/core_ext/route.rb'
1342
+ - 'lib/apipie/extractor.rb'
1343
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1344
+ - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
1345
+ - 'spec/dummy/config/initializers/apipie.rb'
1346
+ - 'spec/lib/validators/array_validator_spec.rb'
1347
+
1348
+ # Offense count: 4
1349
+ # This cop supports safe autocorrection (--autocorrect).
1350
+ # Configuration parameters: EnforcedStyle.
1351
+ # SupportedStyles: is_a?, kind_of?
1352
+ Style/ClassCheck:
1353
+ Exclude:
1354
+ - 'app/controllers/apipie/apipies_controller.rb'
1355
+ - 'lib/apipie/errors.rb'
1356
+ - 'lib/apipie/validator.rb'
1357
+
1358
+ # Offense count: 4
1359
+ # This cop supports safe autocorrection (--autocorrect).
1360
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
1361
+ # AllowedMethods: ==, equal?, eql?
1362
+ Style/ClassEqualityComparison:
1363
+ Exclude:
1364
+ - 'lib/apipie/application.rb'
1365
+ - 'lib/apipie/swagger_generator.rb'
1366
+ - 'lib/apipie/validator.rb'
1367
+
1368
+ # Offense count: 1
1369
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1370
+ Style/CollectionCompact:
1371
+ Exclude:
1372
+ - 'lib/apipie/swagger_generator.rb'
1373
+
1374
+ # Offense count: 20
1375
+ # This cop supports safe autocorrection (--autocorrect).
1376
+ Style/ColonMethodCall:
1377
+ Exclude:
1378
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1379
+ - 'lib/apipie/swagger_generator.rb'
1380
+ - 'lib/apipie/validator.rb'
1381
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1382
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1383
+
1384
+ # Offense count: 4
1385
+ # This cop supports safe autocorrection (--autocorrect).
1386
+ # Configuration parameters: Keywords, RequireColon.
1387
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
1388
+ Style/CommentAnnotation:
1389
+ Exclude:
1390
+ - 'lib/apipie/apipie_module.rb'
1391
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1392
+ - 'spec/lib/swagger/response_validation_spec.rb'
1393
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1394
+
1395
+ # Offense count: 17
1396
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1397
+ Style/CommentedKeyword:
1398
+ Exclude:
1399
+ - 'lib/apipie/dsl_definition.rb'
1400
+ - 'lib/apipie/extractor/recorder.rb'
1401
+
1402
+ # Offense count: 12
1403
+ # This cop supports safe autocorrection (--autocorrect).
1404
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
1405
+ # SupportedStyles: assign_to_condition, assign_inside_condition
1406
+ Style/ConditionalAssignment:
1407
+ Exclude:
1408
+ - 'app/controllers/apipie/apipies_controller.rb'
1409
+ - 'lib/apipie/extractor/writer.rb'
1410
+ - 'lib/apipie/param_description.rb'
1411
+ - 'lib/apipie/response_description.rb'
1412
+ - 'lib/apipie/see_description.rb'
1413
+ - 'lib/apipie/swagger_generator.rb'
1414
+ - 'lib/tasks/apipie.rake'
1415
+
1416
+ # Offense count: 61
1417
+ # Configuration parameters: AllowedConstants.
1418
+ Style/Documentation:
1419
+ Enabled: false
1420
+
1421
+ # Offense count: 1
1422
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1423
+ # Configuration parameters: EnforcedStyle.
1424
+ # SupportedStyles: allowed_in_returns, forbidden
1425
+ Style/DoubleNegation:
1426
+ Exclude:
1427
+ - 'lib/apipie/response_description_adapter.rb'
1428
+
1429
+ # Offense count: 3
1430
+ # This cop supports safe autocorrection (--autocorrect).
1431
+ Style/EachWithObject:
1432
+ Exclude:
1433
+ - 'lib/apipie/application.rb'
1434
+ - 'lib/apipie/method_description.rb'
1435
+
1436
+ # Offense count: 1
1437
+ # This cop supports safe autocorrection (--autocorrect).
1438
+ Style/EmptyCaseCondition:
1439
+ Exclude:
1440
+ - 'lib/apipie/extractor.rb'
1441
+
1442
+ # Offense count: 3
1443
+ # This cop supports safe autocorrection (--autocorrect).
1444
+ # Configuration parameters: EnforcedStyle, AllowComments.
1445
+ # SupportedStyles: empty, nil, both
1446
+ Style/EmptyElse:
1447
+ Exclude:
1448
+ - 'lib/apipie/extractor.rb'
1449
+ - 'lib/apipie/extractor/recorder.rb'
1450
+ - 'lib/apipie/extractor/writer.rb'
1451
+
1452
+ # Offense count: 26
1453
+ # This cop supports safe autocorrection (--autocorrect).
1454
+ # Configuration parameters: EnforcedStyle.
1455
+ # SupportedStyles: compact, expanded
1456
+ Style/EmptyMethod:
1457
+ Exclude:
1458
+ - 'app/controllers/apipie/apipies_controller.rb'
1459
+ - 'lib/apipie/extractor/recorder.rb'
1460
+ - 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
1461
+ - 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
1462
+ - 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
1463
+ - 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
1464
+ - 'spec/dummy/app/controllers/extended_controller.rb'
1465
+ - 'spec/dummy/app/controllers/included_param_group_controller.rb'
1466
+ - 'spec/dummy/app/controllers/users_controller.rb'
1467
+
1468
+ # Offense count: 3
1469
+ # This cop supports safe autocorrection (--autocorrect).
1470
+ Style/Encoding:
1471
+ Exclude:
1472
+ - 'apipie-rails.gemspec'
1473
+ - 'lib/apipie/validator.rb'
1474
+ - 'lib/tasks/apipie.rake'
1475
+
1476
+ # Offense count: 1
1477
+ # This cop supports safe autocorrection (--autocorrect).
1478
+ # Configuration parameters: AllowedVars.
1479
+ Style/FetchEnvVar:
1480
+ Exclude:
1481
+ - 'lib/tasks/apipie.rake'
1482
+
1483
+ # Offense count: 1
1484
+ # This cop supports safe autocorrection (--autocorrect).
1485
+ Style/FileRead:
1486
+ Exclude:
1487
+ - 'lib/apipie/dsl_definition.rb'
1488
+
1489
+ # Offense count: 2
1490
+ # This cop supports safe autocorrection (--autocorrect).
1491
+ Style/FileWrite:
1492
+ Exclude:
1493
+ - 'lib/tasks/apipie.rake'
1494
+
1495
+ # Offense count: 7
1496
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1497
+ # Configuration parameters: EnforcedStyle.
1498
+ # SupportedStyles: each, for
1499
+ Style/For:
1500
+ Exclude:
1501
+ - 'lib/apipie/response_description_adapter.rb'
1502
+ - 'lib/apipie/swagger_generator.rb'
1503
+
1504
+ # Offense count: 109
1505
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1506
+ # Configuration parameters: EnforcedStyle.
1507
+ # SupportedStyles: always, always_true, never
1508
+ Style/FrozenStringLiteralComment:
1509
+ Enabled: false
1510
+
1511
+ # Offense count: 36
1512
+ # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
1513
+ Style/GuardClause:
1514
+ Exclude:
1515
+ - 'app/controllers/apipie/apipies_controller.rb'
1516
+ - 'lib/apipie/application.rb'
1517
+ - 'lib/apipie/dsl_definition.rb'
1518
+ - 'lib/apipie/extractor.rb'
1519
+ - 'lib/apipie/extractor/collector.rb'
1520
+ - 'lib/apipie/extractor/writer.rb'
1521
+ - 'lib/apipie/param_description.rb'
1522
+ - 'lib/apipie/resource_description.rb'
1523
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1524
+ - 'lib/apipie/static_dispatcher.rb'
1525
+ - 'lib/apipie/swagger_generator.rb'
1526
+ - 'lib/apipie/validator.rb'
1527
+ - 'spec/dummy/app/controllers/application_controller.rb'
1528
+ - 'spec/dummy/config/initializers/apipie.rb'
1529
+
1530
+ # Offense count: 1
1531
+ # This cop supports safe autocorrection (--autocorrect).
1532
+ # Configuration parameters: AllowSplatArgument.
1533
+ Style/HashConversion:
1534
+ Exclude:
1535
+ - 'lib/apipie/swagger_generator.rb'
1536
+
1537
+ # Offense count: 840
1538
+ # This cop supports safe autocorrection (--autocorrect).
1539
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
1540
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
1541
+ # SupportedShorthandSyntax: always, never, either, consistent
1542
+ Style/HashSyntax:
1543
+ Enabled: false
1544
+
1545
+ # Offense count: 4
1546
+ # This cop supports safe autocorrection (--autocorrect).
1547
+ # Configuration parameters: AllowIfModifier.
1548
+ Style/IfInsideElse:
1549
+ Exclude:
1550
+ - 'lib/apipie/application.rb'
1551
+ - 'lib/apipie/swagger_generator.rb'
1552
+ - 'spec/spec_helper.rb'
1553
+
1554
+ # Offense count: 66
1555
+ # This cop supports safe autocorrection (--autocorrect).
1556
+ Style/IfUnlessModifier:
1557
+ Enabled: false
1558
+
1559
+ # Offense count: 4
1560
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1561
+ # Configuration parameters: AllowedMethods.
1562
+ # AllowedMethods: nonzero?
1563
+ Style/IfWithBooleanLiteralBranches:
1564
+ Exclude:
1565
+ - 'lib/apipie/param_description.rb'
1566
+ - 'lib/apipie/validator.rb'
1567
+ - 'lib/tasks/apipie.rake'
1568
+
1569
+ # Offense count: 4
1570
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1571
+ # Configuration parameters: InverseMethods, InverseBlocks.
1572
+ Style/InverseMethods:
1573
+ Exclude:
1574
+ - 'lib/apipie/extractor/collector.rb'
1575
+ - 'lib/apipie/method_description.rb'
1576
+ - 'lib/apipie/param_description.rb'
1577
+ - 'lib/apipie/swagger_generator.rb'
1578
+
1579
+ # Offense count: 5
1580
+ # This cop supports safe autocorrection (--autocorrect).
1581
+ # Configuration parameters: EnforcedStyle.
1582
+ # SupportedStyles: line_count_dependent, lambda, literal
1583
+ Style/Lambda:
1584
+ Exclude:
1585
+ - 'lib/apipie/configuration.rb'
1586
+ - 'spec/dummy/app/controllers/users_controller.rb'
1587
+ - 'spec/lib/extractor/middleware_spec.rb'
1588
+ - 'spec/lib/validators/array_validator_spec.rb'
1589
+
1590
+ # Offense count: 2
1591
+ # This cop supports safe autocorrection (--autocorrect).
1592
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
1593
+ Style/MethodCallWithoutArgsParentheses:
1594
+ Exclude:
1595
+ - 'lib/apipie/extractor/recorder.rb'
1596
+ - 'lib/apipie/markup.rb'
1597
+
1598
+ # Offense count: 4
1599
+ # This cop supports safe autocorrection (--autocorrect).
1600
+ # Configuration parameters: EnforcedStyle.
1601
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
1602
+ Style/MethodDefParentheses:
1603
+ Exclude:
1604
+ - 'app/controllers/apipie/apipies_controller.rb'
1605
+ - 'lib/apipie/dsl_definition.rb'
1606
+ - 'lib/apipie/extractor/writer.rb'
1607
+
1608
+ # Offense count: 1
1609
+ Style/MissingRespondToMissing:
1610
+ Exclude:
1611
+ - 'lib/apipie/apipie_module.rb'
1612
+
1613
+ # Offense count: 2
1614
+ Style/MultilineBlockChain:
1615
+ Exclude:
1616
+ - 'lib/apipie/method_description.rb'
1617
+ - 'lib/apipie/param_description.rb'
1618
+
1619
+ # Offense count: 2
1620
+ # This cop supports safe autocorrection (--autocorrect).
1621
+ # Configuration parameters: AllowMethodComparison.
1622
+ Style/MultipleComparison:
1623
+ Exclude:
1624
+ - 'lib/apipie/validator.rb'
1625
+ - 'spec/dummy/config/initializers/apipie.rb'
1626
+
1627
+ # Offense count: 3
1628
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1629
+ # Configuration parameters: EnforcedStyle.
1630
+ # SupportedStyles: literals, strict
1631
+ Style/MutableConstant:
1632
+ Exclude:
1633
+ - 'lib/apipie/extractor/recorder.rb'
1634
+ - 'lib/apipie/routes_formatter.rb'
1635
+ - 'lib/apipie/version.rb'
1636
+
1637
+ # Offense count: 12
1638
+ # This cop supports safe autocorrection (--autocorrect).
1639
+ # Configuration parameters: EnforcedStyle.
1640
+ # SupportedStyles: both, prefix, postfix
1641
+ Style/NegatedIf:
1642
+ Exclude:
1643
+ - 'lib/apipie/param_description.rb'
1644
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1645
+ - 'lib/apipie/swagger_generator.rb'
1646
+ - 'lib/apipie/validator.rb'
1647
+
1648
+ # Offense count: 2
1649
+ # This cop supports safe autocorrection (--autocorrect).
1650
+ Style/NegatedIfElseCondition:
1651
+ Exclude:
1652
+ - 'lib/apipie/extractor/writer.rb'
1653
+ - 'lib/tasks/apipie.rake'
1654
+
1655
+ # Offense count: 4
1656
+ # This cop supports safe autocorrection (--autocorrect).
1657
+ # Configuration parameters: AllowedMethods.
1658
+ # 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
1659
+ Style/NestedParenthesizedCalls:
1660
+ Exclude:
1661
+ - 'spec/lib/file_handler_spec.rb'
1662
+
1663
+ # Offense count: 4
1664
+ # This cop supports safe autocorrection (--autocorrect).
1665
+ # Configuration parameters: EnforcedStyle, MinBodyLength.
1666
+ # SupportedStyles: skip_modifier_ifs, always
1667
+ Style/Next:
1668
+ Exclude:
1669
+ - 'app/controllers/apipie/apipies_controller.rb'
1670
+ - 'lib/apipie/extractor/writer.rb'
1671
+ - 'lib/apipie/swagger_generator.rb'
1672
+ - 'lib/tasks/apipie.rake'
1673
+
1674
+ # Offense count: 1
1675
+ Style/OpenStructUse:
1676
+ Exclude:
1677
+ - 'lib/apipie/swagger_generator.rb'
1678
+
1679
+ # Offense count: 14
1680
+ # Configuration parameters: AllowedMethods.
1681
+ # AllowedMethods: respond_to_missing?
1682
+ Style/OptionalBooleanParameter:
1683
+ Exclude:
1684
+ - 'lib/apipie/apipie_module.rb'
1685
+ - 'lib/apipie/application.rb'
1686
+ - 'lib/apipie/swagger_generator.rb'
1687
+ - 'lib/tasks/apipie.rake'
1688
+
1689
+ # Offense count: 3
1690
+ # This cop supports safe autocorrection (--autocorrect).
1691
+ Style/ParallelAssignment:
1692
+ Exclude:
1693
+ - 'lib/apipie/extractor.rb'
1694
+ - 'lib/apipie/extractor/recorder.rb'
1695
+
1696
+ # Offense count: 6
1697
+ # This cop supports safe autocorrection (--autocorrect).
1698
+ # Configuration parameters: PreferredDelimiters.
1699
+ Style/PercentLiteralDelimiters:
1700
+ Exclude:
1701
+ - 'apipie-rails.gemspec'
1702
+ - 'lib/apipie/extractor/recorder.rb'
1703
+ - 'lib/apipie/routes_formatter.rb'
1704
+ - 'lib/apipie/validator.rb'
1705
+
1706
+ # Offense count: 1
1707
+ # This cop supports safe autocorrection (--autocorrect).
1708
+ Style/PerlBackrefs:
1709
+ Exclude:
1710
+ - 'lib/apipie/extractor.rb'
1711
+
1712
+ # Offense count: 27
1713
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1714
+ # Configuration parameters: EnforcedStyle.
1715
+ # SupportedStyles: short, verbose
1716
+ Style/PreferredHashMethods:
1717
+ Exclude:
1718
+ - 'lib/apipie/apipie_module.rb'
1719
+ - 'lib/apipie/application.rb'
1720
+ - 'lib/apipie/dsl_definition.rb'
1721
+ - 'lib/apipie/extractor/writer.rb'
1722
+ - 'lib/apipie/method_description.rb'
1723
+ - 'lib/apipie/param_description.rb'
1724
+ - 'lib/apipie/resource_description.rb'
1725
+ - 'lib/apipie/validator.rb'
1726
+ - 'spec/lib/param_group_spec.rb'
1727
+
1728
+ # Offense count: 5
1729
+ # This cop supports safe autocorrection (--autocorrect).
1730
+ Style/Proc:
1731
+ Exclude:
1732
+ - 'spec/controllers/apipies_controller_spec.rb'
1733
+
1734
+ # Offense count: 7
1735
+ # This cop supports safe autocorrection (--autocorrect).
1736
+ # Configuration parameters: EnforcedStyle, AllowedCompactTypes.
1737
+ # SupportedStyles: compact, exploded
1738
+ Style/RaiseArgs:
1739
+ Exclude:
1740
+ - 'lib/apipie/application.rb'
1741
+ - 'lib/apipie/dsl_definition.rb'
1742
+ - 'lib/apipie/extractor/writer.rb'
1743
+ - 'lib/apipie/param_description.rb'
1744
+ - 'lib/apipie/see_description.rb'
1745
+ - 'lib/apipie/validator.rb'
1746
+
1747
+ # Offense count: 1
1748
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1749
+ # Configuration parameters: Methods.
1750
+ Style/RedundantArgument:
1751
+ Exclude:
1752
+ - 'lib/apipie/param_description.rb'
1753
+
1754
+ # Offense count: 1
1755
+ # This cop supports safe autocorrection (--autocorrect).
1756
+ Style/RedundantAssignment:
1757
+ Exclude:
1758
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1759
+
1760
+ # Offense count: 1
1761
+ # This cop supports safe autocorrection (--autocorrect).
1762
+ Style/RedundantCondition:
1763
+ Exclude:
1764
+ - 'lib/apipie/response_description.rb'
1765
+
1766
+ # Offense count: 3
1767
+ # This cop supports safe autocorrection (--autocorrect).
1768
+ Style/RedundantConditional:
1769
+ Exclude:
1770
+ - 'lib/apipie/validator.rb'
1771
+ - 'lib/tasks/apipie.rake'
1772
+
1773
+ # Offense count: 5
1774
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1775
+ Style/RedundantInterpolation:
1776
+ Exclude:
1777
+ - 'lib/apipie/swagger_generator.rb'
1778
+ - 'lib/tasks/apipie.rake'
1779
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1780
+
1781
+ # Offense count: 2
1782
+ # This cop supports safe autocorrection (--autocorrect).
1783
+ Style/RedundantParentheses:
1784
+ Exclude:
1785
+ - 'lib/apipie/extractor/collector.rb'
1786
+ - 'lib/apipie/swagger_generator.rb'
1787
+
1788
+ # Offense count: 2
1789
+ # This cop supports safe autocorrection (--autocorrect).
1790
+ Style/RedundantPercentQ:
1791
+ Exclude:
1792
+ - 'apipie-rails.gemspec'
1793
+
1794
+ # Offense count: 37
1795
+ # This cop supports safe autocorrection (--autocorrect).
1796
+ # Configuration parameters: AllowMultipleReturnValues.
1797
+ Style/RedundantReturn:
1798
+ Exclude:
1799
+ - 'lib/apipie/application.rb'
1800
+ - 'lib/apipie/configuration.rb'
1801
+ - 'lib/apipie/dsl_definition.rb'
1802
+ - 'lib/apipie/extractor.rb'
1803
+ - 'lib/apipie/extractor/collector.rb'
1804
+ - 'lib/apipie/extractor/writer.rb'
1805
+ - 'lib/apipie/method_description.rb'
1806
+ - 'lib/apipie/middleware/checksum_in_headers.rb'
1807
+ - 'lib/apipie/param_description.rb'
1808
+ - 'lib/apipie/swagger_generator.rb'
1809
+ - 'lib/apipie/validator.rb'
1810
+ - 'lib/tasks/apipie.rake'
1811
+
1812
+ # Offense count: 50
1813
+ # This cop supports safe autocorrection (--autocorrect).
1814
+ Style/RedundantSelf:
1815
+ Exclude:
1816
+ - 'lib/apipie/apipie_module.rb'
1817
+ - 'lib/apipie/application.rb'
1818
+ - 'lib/apipie/dsl_definition.rb'
1819
+ - 'lib/apipie/extractor/writer.rb'
1820
+ - 'lib/apipie/method_description.rb'
1821
+ - 'lib/apipie/param_description.rb'
1822
+ - 'lib/apipie/resource_description.rb'
1823
+ - 'lib/apipie/response_description.rb'
1824
+ - 'lib/apipie/response_description_adapter.rb'
1825
+ - 'lib/apipie/swagger_generator.rb'
1826
+ - 'lib/apipie/validator.rb'
1827
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1828
+ - 'spec/dummy/config/initializers/apipie.rb'
1829
+
1830
+ # Offense count: 12
1831
+ # This cop supports safe autocorrection (--autocorrect).
1832
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
1833
+ # SupportedStyles: slashes, percent_r, mixed
1834
+ Style/RegexpLiteral:
1835
+ Exclude:
1836
+ - 'lib/apipie/extractor.rb'
1837
+ - 'lib/apipie/extractor/collector.rb'
1838
+ - 'lib/apipie/extractor/recorder.rb'
1839
+ - 'lib/apipie/helpers.rb'
1840
+ - 'lib/apipie/routing.rb'
1841
+ - 'lib/apipie/swagger_generator.rb'
1842
+ - 'lib/tasks/apipie.rake'
1843
+
1844
+ # Offense count: 1
1845
+ # This cop supports safe autocorrection (--autocorrect).
1846
+ # Configuration parameters: EnforcedStyle.
1847
+ # SupportedStyles: implicit, explicit
1848
+ Style/RescueStandardError:
1849
+ Exclude:
1850
+ - 'lib/apipie/dsl_definition.rb'
1851
+
1852
+ # Offense count: 6
1853
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1854
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
1855
+ # AllowedMethods: present?, blank?, presence, try, try!
1856
+ Style/SafeNavigation:
1857
+ Exclude:
1858
+ - 'lib/apipie/application.rb'
1859
+ - 'lib/apipie/dsl_definition.rb'
1860
+ - 'lib/apipie/extractor.rb'
1861
+ - 'lib/apipie/validator.rb'
1862
+
1863
+ # Offense count: 1
1864
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1865
+ Style/SelectByRegexp:
1866
+ Exclude:
1867
+ - 'lib/apipie/routes_formatter.rb'
1868
+
1869
+ # Offense count: 1
1870
+ # This cop supports safe autocorrection (--autocorrect).
1871
+ # Configuration parameters: AllowAsExpressionSeparator.
1872
+ Style/Semicolon:
1873
+ Exclude:
1874
+ - 'lib/apipie/method_description.rb'
1875
+
1876
+ # Offense count: 11
1877
+ # This cop supports safe autocorrection (--autocorrect).
1878
+ # Configuration parameters: AllowIfMethodIsEmpty.
1879
+ Style/SingleLineMethods:
1880
+ Exclude:
1881
+ - 'lib/apipie/resource_description.rb'
1882
+ - 'lib/apipie/swagger_generator.rb'
1883
+ - 'lib/apipie/tag_list_description.rb'
1884
+
1885
+ # Offense count: 6
1886
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1887
+ Style/SlicingWithRange:
1888
+ Exclude:
1889
+ - 'lib/apipie/application.rb'
1890
+ - 'lib/apipie/extractor/writer.rb'
1891
+ - 'lib/apipie/method_description.rb'
1892
+ - 'lib/apipie/param_description.rb'
1893
+ - 'lib/tasks/apipie.rake'
1894
+
1895
+ # Offense count: 4
1896
+ # This cop supports safe autocorrection (--autocorrect).
1897
+ # Configuration parameters: AllowModifier.
1898
+ Style/SoleNestedConditional:
1899
+ Exclude:
1900
+ - 'lib/apipie/swagger_generator.rb'
1901
+ - 'lib/apipie/validator.rb'
1902
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1903
+
1904
+ # Offense count: 4
1905
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1906
+ # Configuration parameters: RequireEnglish.
1907
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
1908
+ Style/SpecialGlobalVars:
1909
+ EnforcedStyle: use_perl_names
1910
+
1911
+ # Offense count: 7
1912
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1913
+ # Configuration parameters: Mode.
1914
+ Style/StringConcatenation:
1915
+ Exclude:
1916
+ - 'lib/apipie/application.rb'
1917
+ - 'lib/apipie/extractor/writer.rb'
1918
+ - 'lib/apipie/swagger_generator.rb'
1919
+
1920
+ # Offense count: 1301
1921
+ # This cop supports safe autocorrection (--autocorrect).
1922
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
1923
+ # SupportedStyles: single_quotes, double_quotes
1924
+ Style/StringLiterals:
1925
+ Enabled: false
1926
+
1927
+ # Offense count: 38
1928
+ # This cop supports safe autocorrection (--autocorrect).
1929
+ # Configuration parameters: MinSize.
1930
+ # SupportedStyles: percent, brackets
1931
+ Style/SymbolArray:
1932
+ EnforcedStyle: brackets
1933
+
1934
+ # Offense count: 4
1935
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1936
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
1937
+ # AllowedMethods: respond_to, define_method
1938
+ Style/SymbolProc:
1939
+ Exclude:
1940
+ - 'lib/apipie/method_description.rb'
1941
+ - 'lib/tasks/apipie.rake'
1942
+
1943
+ # Offense count: 2
1944
+ # This cop supports safe autocorrection (--autocorrect).
1945
+ # Configuration parameters: EnforcedStyleForMultiline.
1946
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1947
+ Style/TrailingCommaInArrayLiteral:
1948
+ Exclude:
1949
+ - 'spec/controllers/users_controller_spec.rb'
1950
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1951
+
1952
+ # Offense count: 4
1953
+ # This cop supports safe autocorrection (--autocorrect).
1954
+ # Configuration parameters: EnforcedStyleForMultiline.
1955
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1956
+ Style/TrailingCommaInHashLiteral:
1957
+ Exclude:
1958
+ - 'lib/apipie/response_description.rb'
1959
+ - 'lib/apipie/swagger_generator.rb'
1960
+ - 'spec/controllers/users_controller_spec.rb'
1961
+
1962
+ # Offense count: 1
1963
+ # This cop supports safe autocorrection (--autocorrect).
1964
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
1965
+ # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
1966
+ Style/TrivialAccessors:
1967
+ Exclude:
1968
+ - 'lib/apipie/method_description.rb'
1969
+
1970
+ # Offense count: 3
1971
+ # This cop supports safe autocorrection (--autocorrect).
1972
+ Style/UnlessElse:
1973
+ Exclude:
1974
+ - 'lib/apipie/errors.rb'
1975
+ - 'lib/apipie/validator.rb'
1976
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1977
+
1978
+ # Offense count: 32
1979
+ # This cop supports safe autocorrection (--autocorrect).
1980
+ # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
1981
+ # SupportedStyles: percent, brackets
1982
+ Style/WordArray:
1983
+ Exclude:
1984
+ - 'lib/apipie/swagger_generator.rb'
1985
+ - 'spec/controllers/users_controller_spec.rb'
1986
+ - 'spec/dummy/app/controllers/pets_controller.rb'
1987
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1988
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
1989
+ - 'spec/dummy/app/controllers/users_controller.rb'
1990
+ - 'spec/lib/method_description_spec.rb'
1991
+ - 'spec/lib/resource_description_spec.rb'
1992
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1993
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1994
+ - 'spec/lib/validators/array_validator_spec.rb'
1995
+
1996
+ # Offense count: 4
1997
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1998
+ Style/ZeroLengthPredicate:
1999
+ Exclude:
2000
+ - 'lib/apipie/swagger_generator.rb'
2001
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'