apipie-rails 0.3.6 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/build.yml +67 -0
  3. data/.github/workflows/rubocop-challenger.yml +28 -0
  4. data/.gitignore +2 -0
  5. data/.rubocop.yml +37 -0
  6. data/.rubocop_todo.yml +1991 -0
  7. data/CHANGELOG.md +246 -2
  8. data/PROPOSAL_FOR_RESPONSE_DESCRIPTIONS.md +244 -0
  9. data/README.rst +646 -25
  10. data/Rakefile +0 -5
  11. data/apipie-rails.gemspec +14 -9
  12. data/app/controllers/apipie/apipies_controller.rb +51 -20
  13. data/app/public/apipie/javascripts/bundled/bootstrap-collapse.js +70 -41
  14. data/app/public/apipie/javascripts/bundled/bootstrap.js +1033 -479
  15. data/app/public/apipie/javascripts/bundled/jquery.js +5 -5
  16. data/app/public/apipie/stylesheets/bundled/bootstrap-responsive.min.css +9 -12
  17. data/app/public/apipie/stylesheets/bundled/bootstrap.min.css +9 -689
  18. data/app/views/apipie/apipies/_method_detail.erb +21 -0
  19. data/app/views/apipie/apipies/_params.html.erb +4 -2
  20. data/app/views/apipie/apipies/index.html.erb +5 -1
  21. data/app/views/apipie/apipies/resource.html.erb +3 -0
  22. data/app/views/layouts/apipie/apipie.html.erb +1 -1
  23. data/config/locales/en.yml +1 -0
  24. data/config/locales/fr.yml +31 -0
  25. data/config/locales/it.yml +31 -0
  26. data/config/locales/ja.yml +31 -0
  27. data/config/locales/ko.yml +31 -0
  28. data/config/locales/pt-BR.yml +1 -1
  29. data/gemfiles/Gemfile.rails50 +10 -0
  30. data/gemfiles/Gemfile.rails51 +10 -0
  31. data/gemfiles/Gemfile.rails52 +10 -0
  32. data/gemfiles/Gemfile.rails60 +17 -0
  33. data/gemfiles/Gemfile.rails61 +17 -0
  34. data/gemfiles/Gemfile.rails70 +17 -0
  35. data/lib/apipie/apipie_module.rb +22 -4
  36. data/lib/apipie/application.rb +54 -25
  37. data/lib/apipie/configuration.rb +26 -4
  38. data/lib/apipie/core_ext/route.rb +9 -0
  39. data/lib/apipie/dsl_definition.rb +168 -16
  40. data/lib/apipie/error_description.rb +9 -2
  41. data/lib/apipie/errors.rb +34 -0
  42. data/lib/apipie/extractor/collector.rb +4 -0
  43. data/lib/apipie/extractor/recorder.rb +14 -12
  44. data/lib/apipie/extractor/writer.rb +86 -58
  45. data/lib/apipie/extractor.rb +5 -5
  46. data/lib/apipie/generator/generator.rb +2 -0
  47. data/lib/apipie/generator/swagger/swagger.rb +2 -0
  48. data/lib/apipie/generator/swagger/type.rb +16 -0
  49. data/lib/apipie/generator/swagger/type_extractor.rb +70 -0
  50. data/lib/apipie/generator/swagger/warning.rb +77 -0
  51. data/lib/apipie/generator/swagger/warning_writer.rb +48 -0
  52. data/lib/apipie/markup.rb +14 -11
  53. data/lib/apipie/method_description/api.rb +12 -0
  54. data/lib/apipie/method_description/apis_service.rb +82 -0
  55. data/lib/apipie/method_description.rb +51 -49
  56. data/lib/apipie/param_description.rb +63 -5
  57. data/lib/apipie/resource_description.rb +11 -4
  58. data/lib/apipie/response_description.rb +131 -0
  59. data/lib/apipie/response_description_adapter.rb +200 -0
  60. data/lib/apipie/routes_formatter.rb +1 -1
  61. data/lib/apipie/rspec/response_validation_helper.rb +194 -0
  62. data/lib/apipie/static_dispatcher.rb +5 -2
  63. data/lib/apipie/swagger_generator.rb +717 -0
  64. data/lib/apipie/tag_list_description.rb +11 -0
  65. data/lib/apipie/validator.rb +83 -9
  66. data/lib/apipie/version.rb +1 -1
  67. data/lib/apipie-rails.rb +15 -4
  68. data/lib/generators/apipie/install/install_generator.rb +1 -1
  69. data/lib/generators/apipie/views_generator.rb +1 -1
  70. data/lib/tasks/apipie.rake +115 -15
  71. data/rel-eng/gem_release.ipynb +398 -0
  72. data/spec/controllers/apipies_controller_spec.rb +79 -14
  73. data/spec/controllers/concerns_controller_spec.rb +2 -2
  74. data/spec/controllers/extended_controller_spec.rb +14 -0
  75. data/spec/controllers/included_param_group_controller_spec.rb +13 -0
  76. data/spec/controllers/memes_controller_spec.rb +10 -0
  77. data/spec/controllers/users_controller_spec.rb +139 -76
  78. data/spec/dummy/Rakefile +1 -1
  79. data/spec/dummy/app/controllers/application_controller.rb +5 -1
  80. data/spec/dummy/app/controllers/concerns_controller.rb +1 -1
  81. data/spec/dummy/app/controllers/extended_controller.rb +14 -0
  82. data/spec/dummy/app/controllers/extending_concern.rb +10 -0
  83. data/spec/dummy/app/controllers/included_param_group_controller.rb +19 -0
  84. data/spec/dummy/app/controllers/overridden_concerns_controller.rb +2 -2
  85. data/spec/dummy/app/controllers/pets_controller.rb +408 -0
  86. data/spec/dummy/app/controllers/pets_using_auto_views_controller.rb +73 -0
  87. data/spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb +95 -0
  88. data/spec/dummy/app/controllers/{concerns/sample_controller.rb → sample_controller.rb} +5 -7
  89. data/spec/dummy/app/controllers/tagged_cats_controller.rb +32 -0
  90. data/spec/dummy/app/controllers/tagged_dogs_controller.rb +15 -0
  91. data/spec/dummy/app/controllers/twitter_example_controller.rb +5 -0
  92. data/spec/dummy/app/controllers/users_controller.rb +26 -12
  93. data/spec/dummy/app/helpers/random_param_group.rb +8 -0
  94. data/spec/dummy/components/test_engine/Gemfile +6 -0
  95. data/spec/dummy/components/test_engine/app/controllers/test_engine/application_controller.rb +4 -0
  96. data/spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb +37 -0
  97. data/spec/dummy/components/test_engine/config/routes.rb +3 -0
  98. data/spec/dummy/components/test_engine/db/.gitkeep +0 -0
  99. data/spec/dummy/components/test_engine/lib/test_engine.rb +7 -0
  100. data/spec/dummy/components/test_engine/test_engine.gemspec +11 -0
  101. data/spec/dummy/config/application.rb +6 -4
  102. data/spec/dummy/config/boot.rb +2 -2
  103. data/spec/dummy/config/environment.rb +1 -1
  104. data/spec/dummy/config/environments/development.rb +3 -3
  105. data/spec/dummy/config/environments/production.rb +3 -3
  106. data/spec/dummy/config/environments/test.rb +3 -5
  107. data/spec/dummy/config/initializers/apipie.rb +5 -3
  108. data/spec/dummy/config/routes.rb +25 -1
  109. data/spec/dummy/config.ru +1 -1
  110. data/spec/dummy/script/rails +2 -2
  111. data/spec/lib/application_spec.rb +1 -1
  112. data/spec/lib/extractor/writer_spec.rb +37 -7
  113. data/spec/lib/file_handler_spec.rb +25 -0
  114. data/spec/lib/generator/swagger/type_extractor_spec.rb +61 -0
  115. data/spec/lib/generator/swagger/warning_spec.rb +51 -0
  116. data/spec/lib/generator/swagger/warning_writer_spec.rb +59 -0
  117. data/spec/lib/method_description/apis_service_spec.rb +60 -0
  118. data/spec/lib/method_description_spec.rb +34 -0
  119. data/spec/lib/param_description_spec.rb +90 -4
  120. data/spec/lib/rake_spec.rb +2 -4
  121. data/spec/lib/swagger/openapi_2_0_schema.json +1607 -0
  122. data/spec/lib/swagger/rake_swagger_spec.rb +154 -0
  123. data/spec/lib/swagger/response_validation_spec.rb +104 -0
  124. data/spec/lib/swagger/swagger_dsl_spec.rb +658 -0
  125. data/spec/lib/validator_spec.rb +59 -1
  126. data/spec/lib/validators/array_validator_spec.rb +28 -8
  127. data/spec/spec_helper.rb +49 -3
  128. data/spec/support/custom_bool_validator.rb +17 -0
  129. metadata +104 -99
  130. data/.travis.yml +0 -12
  131. data/Gemfile +0 -7
  132. data/Gemfile.rails32 +0 -6
  133. data/Gemfile.rails40 +0 -5
  134. data/Gemfile.rails41 +0 -5
  135. data/Gemfile.rails42 +0 -5
  136. data/lib/apipie/client/generator.rb +0 -135
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,1991 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2022-09-30 23:40:43 UTC using RuboCop version 1.36.0.
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: 38
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: 91
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: 1
1614
+ Style/MultilineBlockChain:
1615
+ Exclude:
1616
+ - 'lib/apipie/param_description.rb'
1617
+
1618
+ # Offense count: 2
1619
+ # This cop supports safe autocorrection (--autocorrect).
1620
+ # Configuration parameters: AllowMethodComparison.
1621
+ Style/MultipleComparison:
1622
+ Exclude:
1623
+ - 'lib/apipie/validator.rb'
1624
+ - 'spec/dummy/config/initializers/apipie.rb'
1625
+
1626
+ # Offense count: 3
1627
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1628
+ # Configuration parameters: EnforcedStyle.
1629
+ # SupportedStyles: literals, strict
1630
+ Style/MutableConstant:
1631
+ Exclude:
1632
+ - 'lib/apipie/extractor/recorder.rb'
1633
+ - 'lib/apipie/routes_formatter.rb'
1634
+ - 'lib/apipie/version.rb'
1635
+
1636
+ # Offense count: 12
1637
+ # This cop supports safe autocorrection (--autocorrect).
1638
+ # Configuration parameters: EnforcedStyle.
1639
+ # SupportedStyles: both, prefix, postfix
1640
+ Style/NegatedIf:
1641
+ Exclude:
1642
+ - 'lib/apipie/param_description.rb'
1643
+ - 'lib/apipie/rspec/response_validation_helper.rb'
1644
+ - 'lib/apipie/swagger_generator.rb'
1645
+ - 'lib/apipie/validator.rb'
1646
+
1647
+ # Offense count: 2
1648
+ # This cop supports safe autocorrection (--autocorrect).
1649
+ Style/NegatedIfElseCondition:
1650
+ Exclude:
1651
+ - 'lib/apipie/extractor/writer.rb'
1652
+ - 'lib/tasks/apipie.rake'
1653
+
1654
+ # Offense count: 4
1655
+ # This cop supports safe autocorrection (--autocorrect).
1656
+ # Configuration parameters: AllowedMethods.
1657
+ # AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
1658
+ Style/NestedParenthesizedCalls:
1659
+ Exclude:
1660
+ - 'spec/lib/file_handler_spec.rb'
1661
+
1662
+ # Offense count: 4
1663
+ # This cop supports safe autocorrection (--autocorrect).
1664
+ # Configuration parameters: EnforcedStyle, MinBodyLength.
1665
+ # SupportedStyles: skip_modifier_ifs, always
1666
+ Style/Next:
1667
+ Exclude:
1668
+ - 'app/controllers/apipie/apipies_controller.rb'
1669
+ - 'lib/apipie/extractor/writer.rb'
1670
+ - 'lib/apipie/swagger_generator.rb'
1671
+ - 'lib/tasks/apipie.rake'
1672
+
1673
+ # Offense count: 1
1674
+ Style/OpenStructUse:
1675
+ Exclude:
1676
+ - 'lib/apipie/swagger_generator.rb'
1677
+
1678
+ # Offense count: 14
1679
+ # Configuration parameters: AllowedMethods.
1680
+ # AllowedMethods: respond_to_missing?
1681
+ Style/OptionalBooleanParameter:
1682
+ Exclude:
1683
+ - 'lib/apipie/apipie_module.rb'
1684
+ - 'lib/apipie/application.rb'
1685
+ - 'lib/apipie/swagger_generator.rb'
1686
+ - 'lib/tasks/apipie.rake'
1687
+
1688
+ # Offense count: 3
1689
+ # This cop supports safe autocorrection (--autocorrect).
1690
+ Style/ParallelAssignment:
1691
+ Exclude:
1692
+ - 'lib/apipie/extractor.rb'
1693
+ - 'lib/apipie/extractor/recorder.rb'
1694
+
1695
+ # Offense count: 6
1696
+ # This cop supports safe autocorrection (--autocorrect).
1697
+ # Configuration parameters: PreferredDelimiters.
1698
+ Style/PercentLiteralDelimiters:
1699
+ Exclude:
1700
+ - 'apipie-rails.gemspec'
1701
+ - 'lib/apipie/extractor/recorder.rb'
1702
+ - 'lib/apipie/routes_formatter.rb'
1703
+ - 'lib/apipie/validator.rb'
1704
+
1705
+ # Offense count: 1
1706
+ # This cop supports safe autocorrection (--autocorrect).
1707
+ Style/PerlBackrefs:
1708
+ Exclude:
1709
+ - 'lib/apipie/extractor.rb'
1710
+
1711
+ # Offense count: 27
1712
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1713
+ # Configuration parameters: EnforcedStyle.
1714
+ # SupportedStyles: short, verbose
1715
+ Style/PreferredHashMethods:
1716
+ Exclude:
1717
+ - 'lib/apipie/apipie_module.rb'
1718
+ - 'lib/apipie/application.rb'
1719
+ - 'lib/apipie/dsl_definition.rb'
1720
+ - 'lib/apipie/extractor/writer.rb'
1721
+ - 'lib/apipie/method_description.rb'
1722
+ - 'lib/apipie/param_description.rb'
1723
+ - 'lib/apipie/resource_description.rb'
1724
+ - 'lib/apipie/validator.rb'
1725
+ - 'spec/lib/param_group_spec.rb'
1726
+
1727
+ # Offense count: 5
1728
+ # This cop supports safe autocorrection (--autocorrect).
1729
+ Style/Proc:
1730
+ Exclude:
1731
+ - 'spec/controllers/apipies_controller_spec.rb'
1732
+
1733
+ # Offense count: 7
1734
+ # This cop supports safe autocorrection (--autocorrect).
1735
+ # Configuration parameters: EnforcedStyle, AllowedCompactTypes.
1736
+ # SupportedStyles: compact, exploded
1737
+ Style/RaiseArgs:
1738
+ Exclude:
1739
+ - 'lib/apipie/application.rb'
1740
+ - 'lib/apipie/dsl_definition.rb'
1741
+ - 'lib/apipie/extractor/writer.rb'
1742
+ - 'lib/apipie/param_description.rb'
1743
+ - 'lib/apipie/see_description.rb'
1744
+ - 'lib/apipie/validator.rb'
1745
+
1746
+ # Offense count: 1
1747
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1748
+ # Configuration parameters: Methods.
1749
+ Style/RedundantArgument:
1750
+ Exclude:
1751
+ - 'lib/apipie/param_description.rb'
1752
+
1753
+ # Offense count: 1
1754
+ # This cop supports safe autocorrection (--autocorrect).
1755
+ Style/RedundantAssignment:
1756
+ Exclude:
1757
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1758
+
1759
+ # Offense count: 1
1760
+ # This cop supports safe autocorrection (--autocorrect).
1761
+ Style/RedundantCondition:
1762
+ Exclude:
1763
+ - 'lib/apipie/response_description.rb'
1764
+
1765
+ # Offense count: 3
1766
+ # This cop supports safe autocorrection (--autocorrect).
1767
+ Style/RedundantConditional:
1768
+ Exclude:
1769
+ - 'lib/apipie/validator.rb'
1770
+ - 'lib/tasks/apipie.rake'
1771
+
1772
+ # Offense count: 5
1773
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1774
+ Style/RedundantInterpolation:
1775
+ Exclude:
1776
+ - 'lib/apipie/swagger_generator.rb'
1777
+ - 'lib/tasks/apipie.rake'
1778
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1779
+
1780
+ # Offense count: 2
1781
+ # This cop supports safe autocorrection (--autocorrect).
1782
+ Style/RedundantParentheses:
1783
+ Exclude:
1784
+ - 'lib/apipie/extractor/collector.rb'
1785
+ - 'lib/apipie/swagger_generator.rb'
1786
+
1787
+ # Offense count: 2
1788
+ # This cop supports safe autocorrection (--autocorrect).
1789
+ Style/RedundantPercentQ:
1790
+ Exclude:
1791
+ - 'apipie-rails.gemspec'
1792
+
1793
+ # Offense count: 37
1794
+ # This cop supports safe autocorrection (--autocorrect).
1795
+ # Configuration parameters: AllowMultipleReturnValues.
1796
+ Style/RedundantReturn:
1797
+ Exclude:
1798
+ - 'lib/apipie/application.rb'
1799
+ - 'lib/apipie/configuration.rb'
1800
+ - 'lib/apipie/dsl_definition.rb'
1801
+ - 'lib/apipie/extractor.rb'
1802
+ - 'lib/apipie/extractor/collector.rb'
1803
+ - 'lib/apipie/extractor/writer.rb'
1804
+ - 'lib/apipie/method_description.rb'
1805
+ - 'lib/apipie/middleware/checksum_in_headers.rb'
1806
+ - 'lib/apipie/param_description.rb'
1807
+ - 'lib/apipie/swagger_generator.rb'
1808
+ - 'lib/apipie/validator.rb'
1809
+ - 'lib/tasks/apipie.rake'
1810
+
1811
+ # Offense count: 50
1812
+ # This cop supports safe autocorrection (--autocorrect).
1813
+ Style/RedundantSelf:
1814
+ Exclude:
1815
+ - 'lib/apipie/apipie_module.rb'
1816
+ - 'lib/apipie/application.rb'
1817
+ - 'lib/apipie/dsl_definition.rb'
1818
+ - 'lib/apipie/extractor/writer.rb'
1819
+ - 'lib/apipie/method_description.rb'
1820
+ - 'lib/apipie/param_description.rb'
1821
+ - 'lib/apipie/resource_description.rb'
1822
+ - 'lib/apipie/response_description.rb'
1823
+ - 'lib/apipie/response_description_adapter.rb'
1824
+ - 'lib/apipie/swagger_generator.rb'
1825
+ - 'lib/apipie/validator.rb'
1826
+ - 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
1827
+ - 'spec/dummy/config/initializers/apipie.rb'
1828
+
1829
+ # Offense count: 12
1830
+ # This cop supports safe autocorrection (--autocorrect).
1831
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
1832
+ # SupportedStyles: slashes, percent_r, mixed
1833
+ Style/RegexpLiteral:
1834
+ Exclude:
1835
+ - 'lib/apipie/extractor.rb'
1836
+ - 'lib/apipie/extractor/collector.rb'
1837
+ - 'lib/apipie/extractor/recorder.rb'
1838
+ - 'lib/apipie/helpers.rb'
1839
+ - 'lib/apipie/routing.rb'
1840
+ - 'lib/apipie/swagger_generator.rb'
1841
+ - 'lib/tasks/apipie.rake'
1842
+
1843
+ # Offense count: 1
1844
+ # This cop supports safe autocorrection (--autocorrect).
1845
+ # Configuration parameters: EnforcedStyle.
1846
+ # SupportedStyles: implicit, explicit
1847
+ Style/RescueStandardError:
1848
+ Exclude:
1849
+ - 'lib/apipie/dsl_definition.rb'
1850
+
1851
+ # Offense count: 6
1852
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1853
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
1854
+ # AllowedMethods: present?, blank?, presence, try, try!
1855
+ Style/SafeNavigation:
1856
+ Exclude:
1857
+ - 'lib/apipie/application.rb'
1858
+ - 'lib/apipie/dsl_definition.rb'
1859
+ - 'lib/apipie/extractor.rb'
1860
+ - 'lib/apipie/validator.rb'
1861
+
1862
+ # Offense count: 1
1863
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1864
+ Style/SelectByRegexp:
1865
+ Exclude:
1866
+ - 'lib/apipie/routes_formatter.rb'
1867
+
1868
+ # Offense count: 1
1869
+ # This cop supports safe autocorrection (--autocorrect).
1870
+ # Configuration parameters: AllowAsExpressionSeparator.
1871
+ Style/Semicolon:
1872
+ Exclude:
1873
+ - 'lib/apipie/method_description.rb'
1874
+
1875
+ # Offense count: 11
1876
+ # This cop supports safe autocorrection (--autocorrect).
1877
+ # Configuration parameters: AllowIfMethodIsEmpty.
1878
+ Style/SingleLineMethods:
1879
+ Exclude:
1880
+ - 'lib/apipie/resource_description.rb'
1881
+ - 'lib/apipie/swagger_generator.rb'
1882
+ - 'lib/apipie/tag_list_description.rb'
1883
+
1884
+ # Offense count: 6
1885
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1886
+ Style/SlicingWithRange:
1887
+ Exclude:
1888
+ - 'lib/apipie/application.rb'
1889
+ - 'lib/apipie/extractor/writer.rb'
1890
+ - 'lib/apipie/method_description.rb'
1891
+ - 'lib/apipie/param_description.rb'
1892
+ - 'lib/tasks/apipie.rake'
1893
+
1894
+ # Offense count: 4
1895
+ # This cop supports safe autocorrection (--autocorrect).
1896
+ # Configuration parameters: AllowModifier.
1897
+ Style/SoleNestedConditional:
1898
+ Exclude:
1899
+ - 'lib/apipie/swagger_generator.rb'
1900
+ - 'lib/apipie/validator.rb'
1901
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1902
+
1903
+ # Offense count: 4
1904
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1905
+ # Configuration parameters: RequireEnglish.
1906
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
1907
+ Style/SpecialGlobalVars:
1908
+ EnforcedStyle: use_perl_names
1909
+
1910
+ # Offense count: 7
1911
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1912
+ # Configuration parameters: Mode.
1913
+ Style/StringConcatenation:
1914
+ Exclude:
1915
+ - 'lib/apipie/application.rb'
1916
+ - 'lib/apipie/extractor/writer.rb'
1917
+ - 'lib/apipie/swagger_generator.rb'
1918
+
1919
+ # Offense count: 1301
1920
+ # This cop supports safe autocorrection (--autocorrect).
1921
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
1922
+ # SupportedStyles: single_quotes, double_quotes
1923
+ Style/StringLiterals:
1924
+ Enabled: false
1925
+
1926
+ # Offense count: 38
1927
+ # This cop supports safe autocorrection (--autocorrect).
1928
+ # Configuration parameters: MinSize.
1929
+ # SupportedStyles: percent, brackets
1930
+ Style/SymbolArray:
1931
+ EnforcedStyle: brackets
1932
+
1933
+ # Offense count: 2
1934
+ # This cop supports safe autocorrection (--autocorrect).
1935
+ # Configuration parameters: EnforcedStyleForMultiline.
1936
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1937
+ Style/TrailingCommaInArrayLiteral:
1938
+ Exclude:
1939
+ - 'spec/controllers/users_controller_spec.rb'
1940
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1941
+
1942
+ # Offense count: 4
1943
+ # This cop supports safe autocorrection (--autocorrect).
1944
+ # Configuration parameters: EnforcedStyleForMultiline.
1945
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1946
+ Style/TrailingCommaInHashLiteral:
1947
+ Exclude:
1948
+ - 'lib/apipie/response_description.rb'
1949
+ - 'lib/apipie/swagger_generator.rb'
1950
+ - 'spec/controllers/users_controller_spec.rb'
1951
+
1952
+ # Offense count: 1
1953
+ # This cop supports safe autocorrection (--autocorrect).
1954
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
1955
+ # 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
1956
+ Style/TrivialAccessors:
1957
+ Exclude:
1958
+ - 'lib/apipie/method_description.rb'
1959
+
1960
+ # Offense count: 3
1961
+ # This cop supports safe autocorrection (--autocorrect).
1962
+ Style/UnlessElse:
1963
+ Exclude:
1964
+ - 'lib/apipie/errors.rb'
1965
+ - 'lib/apipie/validator.rb'
1966
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1967
+
1968
+ # Offense count: 32
1969
+ # This cop supports safe autocorrection (--autocorrect).
1970
+ # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
1971
+ # SupportedStyles: percent, brackets
1972
+ Style/WordArray:
1973
+ Exclude:
1974
+ - 'lib/apipie/swagger_generator.rb'
1975
+ - 'spec/controllers/users_controller_spec.rb'
1976
+ - 'spec/dummy/app/controllers/pets_controller.rb'
1977
+ - 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
1978
+ - 'spec/dummy/app/controllers/twitter_example_controller.rb'
1979
+ - 'spec/dummy/app/controllers/users_controller.rb'
1980
+ - 'spec/lib/method_description_spec.rb'
1981
+ - 'spec/lib/resource_description_spec.rb'
1982
+ - 'spec/lib/swagger/rake_swagger_spec.rb'
1983
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'
1984
+ - 'spec/lib/validators/array_validator_spec.rb'
1985
+
1986
+ # Offense count: 4
1987
+ # This cop supports unsafe autocorrection (--autocorrect-all).
1988
+ Style/ZeroLengthPredicate:
1989
+ Exclude:
1990
+ - 'lib/apipie/swagger_generator.rb'
1991
+ - 'spec/lib/swagger/swagger_dsl_spec.rb'