apipie-rails 0.5.19 → 1.3.0

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