comfortable_mexican_sofa 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +95 -4
  3. data/.travis.yml +2 -1
  4. data/CONTRIBUTING.md +8 -5
  5. data/Gemfile +9 -9
  6. data/Rakefile +1 -1
  7. data/app/assets/javascripts/comfy/admin/cms/base.js.coffee +1 -0
  8. data/app/assets/stylesheets/comfy/admin/cms/base.sass +14 -4
  9. data/app/controllers/application_controller.rb +2 -2
  10. data/app/controllers/comfy/admin/base_controller.rb +1 -1
  11. data/app/controllers/comfy/admin/cms/base_controller.rb +7 -6
  12. data/app/controllers/comfy/admin/cms/categories_controller.rb +2 -1
  13. data/app/controllers/comfy/admin/cms/files_controller.rb +32 -29
  14. data/app/controllers/comfy/admin/cms/layouts_controller.rb +10 -9
  15. data/app/controllers/comfy/admin/cms/pages_controller.rb +31 -27
  16. data/app/controllers/comfy/admin/cms/revisions/base_controller.rb +5 -4
  17. data/app/controllers/comfy/admin/cms/revisions/layout_controller.rb +2 -1
  18. data/app/controllers/comfy/admin/cms/revisions/page_controller.rb +9 -3
  19. data/app/controllers/comfy/admin/cms/revisions/snippet_controller.rb +2 -1
  20. data/app/controllers/comfy/admin/cms/revisions/translation_controller.rb +9 -3
  21. data/app/controllers/comfy/admin/cms/sites_controller.rb +10 -9
  22. data/app/controllers/comfy/admin/cms/snippets_controller.rb +10 -9
  23. data/app/controllers/comfy/admin/cms/translations_controller.rb +15 -14
  24. data/app/controllers/comfy/cms/assets_controller.rb +4 -3
  25. data/app/controllers/comfy/cms/base_controller.rb +12 -11
  26. data/app/controllers/comfy/cms/content_controller.rb +8 -7
  27. data/app/controllers/concerns/comfy/paginate.rb +2 -1
  28. data/app/helpers/comfy/cms_helper.rb +6 -3
  29. data/app/models/comfy/cms/categorization.rb +2 -1
  30. data/app/models/comfy/cms/category.rb +3 -2
  31. data/app/models/comfy/cms/file.rb +9 -7
  32. data/app/models/comfy/cms/fragment.rb +8 -6
  33. data/app/models/comfy/cms/layout.rb +24 -24
  34. data/app/models/comfy/cms/page.rb +51 -32
  35. data/app/models/comfy/cms/revision.rb +2 -1
  36. data/app/models/comfy/cms/site.rb +27 -26
  37. data/app/models/comfy/cms/snippet.rb +7 -5
  38. data/app/models/comfy/cms/translation.rb +6 -4
  39. data/app/models/concerns/comfy/cms/with_categories.rb +9 -7
  40. data/app/models/concerns/comfy/cms/with_fragments.rb +15 -13
  41. data/app/views/comfy/admin/cms/categories/_categories.html.haml +1 -1
  42. data/app/views/comfy/admin/cms/files/_file.html.haml +3 -3
  43. data/app/views/comfy/admin/cms/files/_modal.html.haml +2 -2
  44. data/app/views/comfy/admin/cms/{pages/_fragment_attachments.html.haml → fragments/_form_fragment_attachments.html.haml} +0 -0
  45. data/app/views/comfy/admin/cms/{pages → fragments}/_form_fragments.html.haml +0 -0
  46. data/app/views/comfy/admin/cms/layouts/_index_branch.html.haml +2 -2
  47. data/app/views/comfy/admin/cms/pages/_form.html.haml +7 -7
  48. data/app/views/comfy/admin/cms/pages/_index_branch.html.haml +16 -15
  49. data/app/views/comfy/admin/cms/pages/form_fragments.js.erb +1 -1
  50. data/app/views/comfy/admin/cms/pages/toggle_branch.js.erb +1 -1
  51. data/app/views/comfy/admin/cms/snippets/index.html.haml +3 -3
  52. data/app/views/comfy/admin/cms/translations/_form.html.haml +1 -1
  53. data/app/views/comfy/admin/cms/translations/form_fragments.js.erb +1 -1
  54. data/app/views/layouts/comfy/admin/cms/_body.html.haml +1 -4
  55. data/app/views/layouts/comfy/admin/cms.html.haml +1 -1
  56. data/bin/bundle +3 -0
  57. data/bin/rails +4 -0
  58. data/bin/rake +4 -0
  59. data/bin/setup +36 -0
  60. data/bin/update +31 -0
  61. data/bin/yarn +11 -0
  62. data/comfortable_mexican_sofa.gemspec +14 -14
  63. data/config/application.rb +4 -3
  64. data/config/boot.rb +3 -3
  65. data/config/cms_routes.rb +1 -1
  66. data/config/environment.rb +1 -1
  67. data/config/environments/development.rb +2 -2
  68. data/config/environments/test.rb +1 -1
  69. data/config/initializers/comfortable_mexican_sofa.rb +2 -5
  70. data/config/locales/cs.yml +2 -1
  71. data/config/locales/da.yml +2 -1
  72. data/config/locales/de.yml +2 -1
  73. data/config/locales/en.yml +2 -1
  74. data/config/locales/es.yml +2 -1
  75. data/config/locales/fr.yml +2 -1
  76. data/config/locales/it.yml +2 -1
  77. data/config/locales/ja.yml +2 -1
  78. data/config/locales/nb.yml +2 -1
  79. data/config/locales/nl.yml +2 -1
  80. data/config/locales/pl.yml +2 -1
  81. data/config/locales/pt-BR.yml +2 -1
  82. data/config/locales/ru.yml +2 -1
  83. data/config/locales/sk.yml +2 -1
  84. data/config/locales/sv.yml +2 -1
  85. data/config/locales/tr.yml +2 -1
  86. data/config/locales/uk.yml +2 -1
  87. data/config/locales/zh-CN.yml +2 -1
  88. data/config/locales/zh-TW.yml +2 -1
  89. data/config.ru +1 -1
  90. data/lib/comfortable_mexican_sofa/access_control/admin_authentication.rb +2 -1
  91. data/lib/comfortable_mexican_sofa/access_control/admin_authorization.rb +2 -0
  92. data/lib/comfortable_mexican_sofa/access_control/public_authentication.rb +3 -1
  93. data/lib/comfortable_mexican_sofa/access_control/public_authorization.rb +2 -0
  94. data/lib/comfortable_mexican_sofa/configuration.rb +27 -29
  95. data/lib/comfortable_mexican_sofa/content/block.rb +2 -1
  96. data/lib/comfortable_mexican_sofa/content/params_parser.rb +22 -21
  97. data/lib/comfortable_mexican_sofa/content/renderer.rb +10 -8
  98. data/lib/comfortable_mexican_sofa/content/tag.rb +1 -0
  99. data/lib/comfortable_mexican_sofa/content/tags/asset.rb +4 -3
  100. data/lib/comfortable_mexican_sofa/content/tags/checkbox.rb +3 -2
  101. data/lib/comfortable_mexican_sofa/content/tags/date.rb +4 -3
  102. data/lib/comfortable_mexican_sofa/content/tags/datetime.rb +4 -3
  103. data/lib/comfortable_mexican_sofa/content/tags/file.rb +15 -13
  104. data/lib/comfortable_mexican_sofa/content/tags/file_link.rb +8 -7
  105. data/lib/comfortable_mexican_sofa/content/tags/files.rb +15 -13
  106. data/lib/comfortable_mexican_sofa/content/tags/fragment.rb +7 -6
  107. data/lib/comfortable_mexican_sofa/content/tags/helper.rb +2 -1
  108. data/lib/comfortable_mexican_sofa/content/tags/markdown.rb +5 -4
  109. data/lib/comfortable_mexican_sofa/content/tags/number.rb +4 -3
  110. data/lib/comfortable_mexican_sofa/content/tags/partial.rb +1 -0
  111. data/lib/comfortable_mexican_sofa/content/tags/snippet.rb +3 -2
  112. data/lib/comfortable_mexican_sofa/content/tags/template.rb +1 -0
  113. data/lib/comfortable_mexican_sofa/content/tags/text.rb +4 -3
  114. data/lib/comfortable_mexican_sofa/content/tags/textarea.rb +4 -3
  115. data/lib/comfortable_mexican_sofa/content/tags/wysiwyg.rb +4 -3
  116. data/lib/comfortable_mexican_sofa/content.rb +21 -21
  117. data/lib/comfortable_mexican_sofa/engine.rb +17 -15
  118. data/lib/comfortable_mexican_sofa/error.rb +12 -6
  119. data/lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb +17 -11
  120. data/lib/comfortable_mexican_sofa/extensions/has_revisions.rb +14 -13
  121. data/lib/comfortable_mexican_sofa/form_builder.rb +2 -2
  122. data/lib/comfortable_mexican_sofa/render_methods.rb +74 -76
  123. data/lib/comfortable_mexican_sofa/routes/cms.rb +4 -4
  124. data/lib/comfortable_mexican_sofa/routes/cms_admin.rb +2 -1
  125. data/lib/comfortable_mexican_sofa/routing.rb +4 -2
  126. data/lib/comfortable_mexican_sofa/seeds/file/exporter.rb +7 -6
  127. data/lib/comfortable_mexican_sofa/seeds/file/importer.rb +9 -9
  128. data/lib/comfortable_mexican_sofa/seeds/layout/exporter.rb +8 -7
  129. data/lib/comfortable_mexican_sofa/seeds/layout/importer.rb +11 -10
  130. data/lib/comfortable_mexican_sofa/seeds/page/exporter.rb +25 -23
  131. data/lib/comfortable_mexican_sofa/seeds/page/importer.rb +47 -43
  132. data/lib/comfortable_mexican_sofa/seeds/snippet/exporter.rb +7 -6
  133. data/lib/comfortable_mexican_sofa/seeds/snippet/importer.rb +7 -6
  134. data/lib/comfortable_mexican_sofa/seeds.rb +16 -9
  135. data/lib/comfortable_mexican_sofa/version.rb +4 -2
  136. data/lib/comfortable_mexican_sofa/view_hooks.rb +10 -9
  137. data/lib/comfortable_mexican_sofa.rb +30 -30
  138. data/lib/generators/comfy/cms/assets_generator.rb +6 -4
  139. data/lib/generators/comfy/cms/cms_generator.rb +14 -14
  140. data/lib/generators/comfy/cms/controllers_generator.rb +5 -3
  141. data/lib/generators/comfy/cms/models_generator.rb +5 -3
  142. data/lib/generators/comfy/cms/views_generator.rb +5 -3
  143. data/lib/generators/comfy/scaffold/scaffold_generator.rb +19 -18
  144. data/lib/tasks/cms_seeds.rake +4 -5
  145. data/test/controllers/comfy/admin/cms/base_controller_test.rb +4 -3
  146. data/test/controllers/comfy/admin/cms/categories_controller_test.rb +19 -18
  147. data/test/controllers/comfy/admin/cms/files_controller_test.rb +19 -19
  148. data/test/controllers/comfy/admin/cms/layouts_controller_test.rb +33 -32
  149. data/test/controllers/comfy/admin/cms/pages_controller_test.rb +99 -98
  150. data/test/controllers/comfy/admin/cms/revisions/layout_controller_test.rb +9 -9
  151. data/test/controllers/comfy/admin/cms/revisions/page_controller_test.rb +6 -6
  152. data/test/controllers/comfy/admin/cms/revisions/snippet_controller_test.rb +9 -8
  153. data/test/controllers/comfy/admin/cms/revisions/translation_controller_test.rb +6 -7
  154. data/test/controllers/comfy/admin/cms/sites_controller_test.rb +31 -30
  155. data/test/controllers/comfy/admin/cms/snippets_controller_test.rb +38 -37
  156. data/test/controllers/comfy/admin/cms/translations_controller_test.rb +21 -20
  157. data/test/controllers/comfy/cms/assets_controller_test.rb +14 -13
  158. data/test/controllers/comfy/cms/content_controller_test.rb +58 -57
  159. data/test/gemfiles/Gemfile.rails.5.2 +5 -4
  160. data/test/generators/cms_assets_generator_test.rb +6 -4
  161. data/test/generators/cms_controllers_generator_test.rb +7 -5
  162. data/test/generators/cms_generator_test.rb +12 -10
  163. data/test/generators/cms_models_generator_test.rb +7 -5
  164. data/test/generators/cms_views_generator_test.rb +6 -4
  165. data/test/generators/scaffold_generator_test.rb +18 -16
  166. data/test/helpers/cms_helper_test.rb +5 -2
  167. data/test/integration/access_control_test.rb +29 -20
  168. data/test/integration/i18n_test.rb +8 -7
  169. data/test/integration/js_variables_test.rb +2 -1
  170. data/test/integration/render_cms_test.rb +93 -88
  171. data/test/integration/routing_test.rb +4 -3
  172. data/test/integration/seeds_test.rb +21 -22
  173. data/test/integration/sites_test.rb +26 -25
  174. data/test/integration/view_hooks_test.rb +15 -14
  175. data/test/lib/configuration_test.rb +13 -15
  176. data/test/lib/content/block_test.rb +1 -1
  177. data/test/lib/content/params_parser_test.rb +11 -10
  178. data/test/lib/content/renderer_test.rb +16 -11
  179. data/test/lib/content/tag_test.rb +7 -3
  180. data/test/lib/content/tags/asset_test.rb +4 -3
  181. data/test/lib/content/tags/checkbox_test.rb +2 -1
  182. data/test/lib/content/tags/date_test.rb +2 -1
  183. data/test/lib/content/tags/datetime_test.rb +2 -1
  184. data/test/lib/content/tags/file_link_test.rb +3 -2
  185. data/test/lib/content/tags/file_test.rb +3 -2
  186. data/test/lib/content/tags/files_test.rb +4 -3
  187. data/test/lib/content/tags/fragment_test.rb +2 -1
  188. data/test/lib/content/tags/helper_test.rb +4 -3
  189. data/test/lib/content/tags/markdown_test.rb +2 -1
  190. data/test/lib/content/tags/number_test.rb +2 -1
  191. data/test/lib/content/tags/partial_test.rb +4 -3
  192. data/test/lib/content/tags/snippet_test.rb +2 -1
  193. data/test/lib/content/tags/template_test.rb +2 -1
  194. data/test/lib/content/tags/text_test.rb +2 -1
  195. data/test/lib/content/tags/textarea_test.rb +2 -1
  196. data/test/lib/content/tags/wysiwyg_test.rb +2 -1
  197. data/test/lib/revisions_test.rb +44 -42
  198. data/test/lib/seeds/files_test.rb +30 -29
  199. data/test/lib/seeds/layouts_test.rb +13 -12
  200. data/test/lib/seeds/pages_test.rb +32 -29
  201. data/test/lib/seeds/snippets_test.rb +21 -20
  202. data/test/lib/seeds_test.rb +9 -8
  203. data/test/models/categorization_test.rb +10 -9
  204. data/test/models/category_test.rb +1 -1
  205. data/test/models/file_test.rb +1 -1
  206. data/test/models/fragment_test.rb +11 -10
  207. data/test/models/layout_test.rb +71 -70
  208. data/test/models/page_test.rb +170 -159
  209. data/test/models/site_test.rb +17 -16
  210. data/test/models/snippet_test.rb +1 -0
  211. data/test/models/translation_test.rb +2 -1
  212. data/test/tasks/cms_seeds_test.rb +3 -2
  213. data/test/test_helper.rb +42 -40
  214. metadata +55 -51
  215. data/.rubocop_todo.yml +0 -974
  216. data/script/rails +0 -6
data/.rubocop_todo.yml DELETED
@@ -1,974 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2017-11-08 21:07:14 -0800 using RuboCop version 0.51.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: 2
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
- # Include: **/Gemfile, **/gems.rb
13
- Bundler/OrderedGems:
14
- Exclude:
15
- - 'Gemfile'
16
-
17
- # Offense count: 4
18
- # Cop supports --auto-correct.
19
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
20
- # Include: **/*.gemspec
21
- Gemspec/OrderedDependencies:
22
- Exclude:
23
- - 'comfortable_mexican_sofa.gemspec'
24
-
25
- # Offense count: 39
26
- # Cop supports --auto-correct.
27
- # Configuration parameters: SupportedStyles, IndentationWidth.
28
- # SupportedStyles: outdent, indent
29
- Layout/AccessModifierIndentation:
30
- EnforcedStyle: outdent
31
-
32
- # Offense count: 1
33
- # Cop supports --auto-correct.
34
- # Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
35
- # SupportedHashRocketStyles: key, separator, table
36
- # SupportedColonStyles: key, separator, table
37
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
38
- Layout/AlignHash:
39
- Exclude:
40
- - 'db/upgrade_migrations/05_upgrade_to_1_4_0.rb'
41
-
42
- # Offense count: 64
43
- # Cop supports --auto-correct.
44
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
45
- # SupportedStyles: with_first_parameter, with_fixed_indentation
46
- Layout/AlignParameters:
47
- Enabled: false
48
-
49
- # Offense count: 18
50
- # Cop supports --auto-correct.
51
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
52
- # SupportedStyles: case, end
53
- Layout/CaseIndentation:
54
- Exclude:
55
- - 'app/controllers/comfy/admin/cms/files_controller.rb'
56
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
57
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
58
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
59
- - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb'
60
- - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb'
61
-
62
- # Offense count: 2
63
- # Cop supports --auto-correct.
64
- # Configuration parameters: EnforcedStyle, SupportedStyles.
65
- # SupportedStyles: leading, trailing
66
- Layout/DotPosition:
67
- Exclude:
68
- - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb'
69
-
70
- # Offense count: 10
71
- # Cop supports --auto-correct.
72
- Layout/ElseAlignment:
73
- Exclude:
74
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
75
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
76
- - 'app/controllers/comfy/cms/base_controller.rb'
77
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
78
- - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb'
79
- - 'tmp/app/controllers/comfy/cms/base_controller.rb'
80
-
81
- # Offense count: 1
82
- # Cop supports --auto-correct.
83
- Layout/EmptyLineAfterMagicComment:
84
- Exclude:
85
- - 'test/test_helper.rb'
86
-
87
- # Offense count: 20
88
- # Cop supports --auto-correct.
89
- Layout/EmptyLines:
90
- Exclude:
91
- - 'comfortable_mexican_sofa.gemspec'
92
- - 'lib/comfortable_mexican_sofa/access_control/admin_authentication.rb'
93
- - 'lib/comfortable_mexican_sofa/seeds.rb'
94
- - 'lib/comfortable_mexican_sofa/seeds/file.rb'
95
- - 'lib/comfortable_mexican_sofa/seeds/layout.rb'
96
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
97
- - 'lib/comfortable_mexican_sofa/seeds/snippet.rb'
98
- - 'test/fixtures/generators/scaffold/model.rb'
99
- - 'test/integration/seeds_test.rb'
100
- - 'test/models/file_test.rb'
101
- - 'test/test_helper.rb'
102
-
103
- # Offense count: 14
104
- # Cop supports --auto-correct.
105
- # Configuration parameters: EnforcedStyle, SupportedStyles.
106
- # SupportedStyles: empty_lines, no_empty_lines
107
- Layout/EmptyLinesAroundBlockBody:
108
- Exclude:
109
- - 'comfortable_mexican_sofa.gemspec'
110
- - 'config/cms_routes.rb'
111
- - 'config/initializers/comfortable_mexican_sofa.rb'
112
- - 'db/schema.rb'
113
- - 'lib/comfortable_mexican_sofa/form_builder.rb'
114
- - 'lib/comfortable_mexican_sofa/routes/cms_admin.rb'
115
- - 'lib/comfortable_mexican_sofa/seeds/file.rb'
116
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
117
- - 'test/fixtures/generators/cms/routes.rb'
118
- - 'test/fixtures/generators/scaffold/routes.rb'
119
- - 'tmp/config/routes.rb'
120
-
121
- # Offense count: 147
122
- # Cop supports --auto-correct.
123
- # Configuration parameters: EnforcedStyle, SupportedStyles.
124
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
125
- Layout/EmptyLinesAroundClassBody:
126
- Enabled: false
127
-
128
- # Offense count: 8
129
- # Cop supports --auto-correct.
130
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
131
- Exclude:
132
- - 'app/controllers/comfy/admin/cms/files_controller.rb'
133
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
134
- - 'test/lib/seeds/files_test.rb'
135
- - 'test/lib/seeds/layouts_test.rb'
136
- - 'test/lib/seeds/pages_test.rb'
137
- - 'test/lib/seeds/snippets_test.rb'
138
- - 'test/models/layout_test.rb'
139
- - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb'
140
-
141
- # Offense count: 8
142
- # Cop supports --auto-correct.
143
- Layout/EmptyLinesAroundMethodBody:
144
- Exclude:
145
- - 'app/models/comfy/cms/layout.rb'
146
- - 'db/migrate/01_create_cms.rb'
147
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
148
- - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb'
149
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
150
- - 'lib/comfortable_mexican_sofa/routes/cms.rb'
151
-
152
- # Offense count: 13
153
- # Cop supports --auto-correct.
154
- # Configuration parameters: EnforcedStyle, SupportedStyles.
155
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
156
- Layout/EmptyLinesAroundModuleBody:
157
- Exclude:
158
- - 'app/controllers/concerns/comfy/paginate.rb'
159
- - 'app/helpers/comfy/cms_helper.rb'
160
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
161
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
162
- - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb'
163
- - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb'
164
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
165
- - 'lib/comfortable_mexican_sofa/seeds.rb'
166
- - 'lib/comfortable_mexican_sofa/view_hooks.rb'
167
-
168
- # Offense count: 25
169
- # Cop supports --auto-correct.
170
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
171
- Layout/ExtraSpacing:
172
- Enabled: false
173
-
174
- # Offense count: 5
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
177
- # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
178
- Layout/FirstParameterIndentation:
179
- Exclude:
180
- - 'test/models/page_test.rb'
181
-
182
- # Offense count: 4
183
- # Cop supports --auto-correct.
184
- # Configuration parameters: SupportedStyles, IndentationWidth.
185
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
186
- Layout/IndentArray:
187
- EnforcedStyle: consistent
188
-
189
- # Offense count: 12
190
- # Cop supports --auto-correct.
191
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
192
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
193
- Layout/IndentHash:
194
- Exclude:
195
- - 'test/controllers/comfy/admin/cms/pages_controller_test.rb'
196
- - 'test/controllers/comfy/admin/cms/translations_controller_test.rb'
197
- - 'test/models/categorization_test.rb'
198
- - 'test/models/page_test.rb'
199
-
200
- # Offense count: 2
201
- # Cop supports --auto-correct.
202
- # Configuration parameters: EnforcedStyle, SupportedStyles.
203
- # SupportedStyles: normal, rails
204
- Layout/IndentationConsistency:
205
- Exclude:
206
- - 'app/controllers/comfy/admin/cms/files_controller.rb'
207
- - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb'
208
-
209
- # Offense count: 9
210
- # Cop supports --auto-correct.
211
- # Configuration parameters: Width, IgnoredPatterns.
212
- Layout/IndentationWidth:
213
- Exclude:
214
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
215
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
216
- - 'app/controllers/comfy/cms/base_controller.rb'
217
- - 'lib/comfortable_mexican_sofa/content/tags/file.rb'
218
- - 'lib/comfortable_mexican_sofa/content/tags/files.rb'
219
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
220
- - 'test/integration/seeds_test.rb'
221
- - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb'
222
- - 'tmp/app/controllers/comfy/cms/base_controller.rb'
223
-
224
- # Offense count: 1
225
- # Cop supports --auto-correct.
226
- # Configuration parameters: EnforcedStyle, SupportedStyles.
227
- # SupportedStyles: symmetrical, new_line, same_line
228
- Layout/MultilineArrayBraceLayout:
229
- Exclude:
230
- - 'test/lib/revisions_test.rb'
231
-
232
- # Offense count: 7
233
- # Cop supports --auto-correct.
234
- # Configuration parameters: EnforcedStyle, SupportedStyles.
235
- # SupportedStyles: symmetrical, new_line, same_line
236
- Layout/MultilineHashBraceLayout:
237
- Exclude:
238
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
239
- - 'test/controllers/comfy/admin/cms/pages_controller_test.rb'
240
- - 'test/lib/revisions_test.rb'
241
- - 'test/models/page_test.rb'
242
-
243
- # Offense count: 12
244
- # Cop supports --auto-correct.
245
- # Configuration parameters: EnforcedStyle, SupportedStyles.
246
- # SupportedStyles: symmetrical, new_line, same_line
247
- Layout/MultilineMethodCallBraceLayout:
248
- Exclude:
249
- - 'test/controllers/comfy/admin/cms/revisions_controller_test.rb'
250
- - 'test/integration/render_cms_test.rb'
251
-
252
- # Offense count: 13
253
- # Cop supports --auto-correct.
254
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
255
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
256
- Layout/MultilineMethodCallIndentation:
257
- Exclude:
258
- - 'app/controllers/comfy/admin/cms/files_controller.rb'
259
- - 'app/controllers/comfy/cms/assets_controller.rb'
260
- - 'lib/comfortable_mexican_sofa/seeds/file.rb'
261
- - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb'
262
- - 'tmp/app/controllers/comfy/cms/assets_controller.rb'
263
-
264
- # Offense count: 6
265
- # Cop supports --auto-correct.
266
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
267
- # SupportedStyles: aligned, indented
268
- Layout/MultilineOperationIndentation:
269
- Exclude:
270
- - 'app/models/comfy/cms/layout.rb'
271
- - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb'
272
- - 'lib/comfortable_mexican_sofa/content/tags/snippet.rb'
273
- - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb'
274
- - 'lib/comfortable_mexican_sofa/seeds/file.rb'
275
-
276
- # Offense count: 2
277
- # Cop supports --auto-correct.
278
- Layout/SpaceAfterColon:
279
- Exclude:
280
- - 'test/controllers/comfy/admin/cms/files_controller_test.rb'
281
- - 'test/lib/revisions_test.rb'
282
-
283
- # Offense count: 30
284
- # Cop supports --auto-correct.
285
- # Configuration parameters: AllowForAlignment.
286
- Layout/SpaceAroundOperators:
287
- Enabled: false
288
-
289
- # Offense count: 48
290
- # Cop supports --auto-correct.
291
- # Configuration parameters: EnforcedStyle, SupportedStyles, SupportedStylesForEmptyBraces.
292
- # SupportedStyles: space, no_space
293
- # SupportedStylesForEmptyBraces: space, no_space
294
- Layout/SpaceBeforeBlockBraces:
295
- Enabled: false
296
-
297
- # Offense count: 1
298
- # Cop supports --auto-correct.
299
- # Configuration parameters: AllowForAlignment.
300
- Layout/SpaceBeforeFirstArg:
301
- Exclude:
302
- - 'lib/comfortable_mexican_sofa.rb'
303
-
304
- # Offense count: 2
305
- # Cop supports --auto-correct.
306
- # Configuration parameters: EnforcedStyle, SupportedStyles.
307
- # SupportedStyles: require_no_space, require_space
308
- Layout/SpaceInLambdaLiteral:
309
- Exclude:
310
- - 'app/models/comfy/cms/page.rb'
311
- - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb'
312
-
313
- # Offense count: 120
314
- # Cop supports --auto-correct.
315
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
316
- # SupportedStyles: space, no_space
317
- # SupportedStylesForEmptyBraces: space, no_space
318
- Layout/SpaceInsideBlockBraces:
319
- Enabled: false
320
-
321
- # Offense count: 12
322
- # Cop supports --auto-correct.
323
- Layout/SpaceInsideBrackets:
324
- Exclude:
325
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
326
- - 'app/models/comfy/cms/layout.rb'
327
- - 'app/models/comfy/cms/page.rb'
328
- - 'db/migrate/00_create_active_storage_tables.active_storage.rb'
329
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
330
- - 'test/integration/i18n_test.rb'
331
- - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb'
332
-
333
- # Offense count: 241
334
- # Cop supports --auto-correct.
335
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
336
- # SupportedStyles: space, no_space, compact
337
- # SupportedStylesForEmptyBraces: space, no_space
338
- Layout/SpaceInsideHashLiteralBraces:
339
- Enabled: false
340
-
341
- # Offense count: 38
342
- # Cop supports --auto-correct.
343
- # Configuration parameters: EnforcedStyle, SupportedStyles.
344
- # SupportedStyles: final_newline, final_blank_line
345
- Layout/TrailingBlankLines:
346
- Enabled: false
347
-
348
- # Offense count: 40
349
- # Cop supports --auto-correct.
350
- Layout/TrailingWhitespace:
351
- Exclude:
352
- - 'app/controllers/application_controller.rb'
353
- - 'db/upgrade_migrations/04_upgrade_to_1_3_0.rb'
354
- - 'db/upgrade_migrations/05_upgrade_to_1_4_0.rb'
355
- - 'db/upgrade_migrations/06_upgrade_to_1_5_0.rb'
356
- - 'db/upgrade_migrations/07_upgrade_to_1_6_0.rb'
357
- - 'db/upgrade_migrations/08_upgrade_to_1_12_0.rb'
358
- - 'lib/comfortable_mexican_sofa/error.rb'
359
- - 'lib/tasks/comfortable_mexican_sofa.rake'
360
-
361
- # Offense count: 10
362
- Lint/AmbiguousBlockAssociation:
363
- Exclude:
364
- - 'test/controllers/comfy/admin/cms/pages_controller_test.rb'
365
- - 'test/lib/seeds/files_test.rb'
366
- - 'test/lib/seeds/pages_test.rb'
367
- - 'test/lib/seeds/snippets_test.rb'
368
- - 'test/models/layout_test.rb'
369
- - 'test/models/page_test.rb'
370
-
371
- # Offense count: 2
372
- Lint/AmbiguousOperator:
373
- Exclude:
374
- - 'app/controllers/comfy/admin/cms/base_controller.rb'
375
- - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb'
376
-
377
- # Offense count: 11
378
- Lint/AmbiguousRegexpLiteral:
379
- Exclude:
380
- - 'app/models/comfy/cms/site.rb'
381
- - 'test/controllers/comfy/admin/cms/pages_controller_test.rb'
382
- - 'test/controllers/comfy/admin/cms/translations_controller_test.rb'
383
- - 'test/controllers/comfy/cms/content_controller_test.rb'
384
- - 'test/integration/view_hooks_test.rb'
385
-
386
- # Offense count: 12
387
- # Configuration parameters: AllowSafeAssignment.
388
- Lint/AssignmentInCondition:
389
- Exclude:
390
- - 'app/controllers/comfy/admin/cms/base_controller.rb'
391
- - 'app/models/comfy/cms/site.rb'
392
- - 'lib/comfortable_mexican_sofa/content/renderer.rb'
393
- - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb'
394
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
395
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
396
- - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb'
397
-
398
- # Offense count: 1
399
- Lint/BooleanSymbol:
400
- Exclude:
401
- - 'db/upgrade_migrations/07_upgrade_to_1_6_0.rb'
402
-
403
- # Offense count: 3
404
- Lint/DuplicateMethods:
405
- Exclude:
406
- - 'lib/comfortable_mexican_sofa/content/block.rb'
407
- - 'lib/comfortable_mexican_sofa/content/tags/file_link.rb'
408
- - 'test/controllers/comfy/admin/cms/revisions_controller_test.rb'
409
-
410
- # Offense count: 12
411
- # Cop supports --auto-correct.
412
- # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
413
- # SupportedStylesAlignWith: keyword, variable, start_of_line
414
- Lint/EndAlignment:
415
- Exclude:
416
- - 'app/controllers/comfy/admin/cms/files_controller.rb'
417
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
418
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
419
- - 'app/controllers/comfy/cms/base_controller.rb'
420
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
421
- - 'lib/comfortable_mexican_sofa/content/tags/file.rb'
422
- - 'lib/comfortable_mexican_sofa/content/tags/files.rb'
423
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
424
- - 'tmp/app/controllers/comfy/admin/cms/files_controller.rb'
425
- - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb'
426
- - 'tmp/app/controllers/comfy/cms/base_controller.rb'
427
-
428
- # Offense count: 3
429
- Lint/HandleExceptions:
430
- Exclude:
431
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
432
- - 'test/test_helper.rb'
433
- - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb'
434
-
435
- # Offense count: 1
436
- Lint/IneffectiveAccessModifier:
437
- Exclude:
438
- - 'app/models/comfy/cms/site.rb'
439
-
440
- # Offense count: 3
441
- Lint/NestedMethodDefinition:
442
- Exclude:
443
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
444
-
445
- # Offense count: 1
446
- Lint/RescueWithoutErrorClass:
447
- Exclude:
448
- - 'test/test_helper.rb'
449
-
450
- # Offense count: 5
451
- Lint/ShadowingOuterLocalVariable:
452
- Exclude:
453
- - 'app/models/comfy/cms/site.rb'
454
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
455
- - 'lib/comfortable_mexican_sofa/seeds/layout.rb'
456
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
457
-
458
- # Offense count: 20
459
- # Cop supports --auto-correct.
460
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
461
- Lint/UnusedMethodArgument:
462
- Exclude:
463
- - 'lib/comfortable_mexican_sofa/content/tags/checkbox.rb'
464
- - 'lib/comfortable_mexican_sofa/content/tags/date.rb'
465
- - 'lib/comfortable_mexican_sofa/content/tags/datetime.rb'
466
- - 'lib/comfortable_mexican_sofa/content/tags/file.rb'
467
- - 'lib/comfortable_mexican_sofa/content/tags/files.rb'
468
- - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb'
469
- - 'lib/comfortable_mexican_sofa/content/tags/markdown.rb'
470
- - 'lib/comfortable_mexican_sofa/content/tags/number.rb'
471
- - 'lib/comfortable_mexican_sofa/content/tags/text.rb'
472
- - 'lib/comfortable_mexican_sofa/content/tags/textarea.rb'
473
- - 'lib/comfortable_mexican_sofa/content/tags/wysiwyg.rb'
474
- - 'lib/comfortable_mexican_sofa/seeds/layout.rb'
475
- - 'test/lib/content/renderer_test.rb'
476
- - 'test/test_helper.rb'
477
-
478
- # Offense count: 5
479
- Lint/UselessAssignment:
480
- Exclude:
481
- - 'test/controllers/comfy/cms/content_controller_test.rb'
482
- - 'test/integration/render_cms_test.rb'
483
- - 'test/models/page_test.rb'
484
-
485
- # Offense count: 141
486
- Metrics/AbcSize:
487
- Max: 95
488
-
489
- # Offense count: 14
490
- # Configuration parameters: CountComments, ExcludedMethods.
491
- Metrics/BlockLength:
492
- Max: 127
493
-
494
- # Offense count: 23
495
- # Configuration parameters: CountComments.
496
- Metrics/ClassLength:
497
- Max: 487
498
-
499
- # Offense count: 14
500
- Metrics/CyclomaticComplexity:
501
- Max: 20
502
-
503
- # Offense count: 653
504
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
505
- # URISchemes: http, https
506
- Metrics/LineLength:
507
- Max: 187
508
-
509
- # Offense count: 140
510
- # Configuration parameters: CountComments.
511
- Metrics/MethodLength:
512
- Max: 106
513
-
514
- # Offense count: 1
515
- # Configuration parameters: CountKeywordArgs.
516
- Metrics/ParameterLists:
517
- Max: 6
518
-
519
- # Offense count: 6
520
- Metrics/PerceivedComplexity:
521
- Max: 21
522
-
523
- # Offense count: 1
524
- Naming/ClassAndModuleCamelCase:
525
- Exclude:
526
- - 'db/upgrade_migrations/09_upgrade_to_2_0_0.rb'
527
-
528
- # Offense count: 1
529
- # Configuration parameters: Blacklist.
530
- # Blacklist: END, (?-mix:EO[A-Z]{1})
531
- Naming/HeredocDelimiterNaming:
532
- Exclude:
533
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
534
-
535
- # Offense count: 16
536
- # Configuration parameters: EnforcedStyle, SupportedStyles.
537
- # SupportedStyles: snake_case, normalcase, non_integer
538
- Naming/VariableNumber:
539
- Exclude:
540
- - 'test/models/layout_test.rb'
541
- - 'test/models/page_test.rb'
542
-
543
- # Offense count: 1
544
- # Cop supports --auto-correct.
545
- Performance/Casecmp:
546
- Exclude:
547
- - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb'
548
-
549
- # Offense count: 1
550
- # Cop supports --auto-correct.
551
- Performance/RedundantMatch:
552
- Exclude:
553
- - 'app/models/comfy/cms/site.rb'
554
-
555
- # Offense count: 1
556
- # Cop supports --auto-correct.
557
- # Configuration parameters: MaxKeyValuePairs.
558
- Performance/RedundantMerge:
559
- Exclude:
560
- - 'test/test_helper.rb'
561
-
562
- # Offense count: 4
563
- # Cop supports --auto-correct.
564
- Security/YAMLLoad:
565
- Exclude:
566
- - 'lib/comfortable_mexican_sofa/seeds/file.rb'
567
- - 'lib/comfortable_mexican_sofa/seeds/layout.rb'
568
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
569
- - 'lib/comfortable_mexican_sofa/seeds/snippet.rb'
570
-
571
- # Offense count: 1
572
- # Cop supports --auto-correct.
573
- # Configuration parameters: EnforcedStyle, SupportedStyles.
574
- # SupportedStyles: prefer_alias, prefer_alias_method
575
- Style/Alias:
576
- Exclude:
577
- - 'lib/comfortable_mexican_sofa.rb'
578
-
579
- # Offense count: 1
580
- Style/AsciiComments:
581
- Exclude:
582
- - 'config/initializers/comfortable_mexican_sofa.rb'
583
-
584
- # Offense count: 1
585
- # Cop supports --auto-correct.
586
- # Configuration parameters: EnforcedStyle, SupportedStyles.
587
- # SupportedStyles: percent_q, bare_percent
588
- Style/BarePercentLiterals:
589
- Exclude:
590
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
591
-
592
- # Offense count: 2
593
- # Cop supports --auto-correct.
594
- # Configuration parameters: EnforcedStyle, SupportedStyles.
595
- # SupportedStyles: braces, no_braces, context_dependent
596
- Style/BracesAroundHashParameters:
597
- Exclude:
598
- - 'lib/comfortable_mexican_sofa/content/tags/file.rb'
599
- - 'lib/comfortable_mexican_sofa/content/tags/files.rb'
600
-
601
- # Offense count: 94
602
- # Configuration parameters: EnforcedStyle, SupportedStyles.
603
- # SupportedStyles: nested, compact
604
- Style/ClassAndModuleChildren:
605
- Enabled: false
606
-
607
- # Offense count: 1
608
- Style/ClassVars:
609
- Exclude:
610
- - 'lib/comfortable_mexican_sofa/view_hooks.rb'
611
-
612
- # Offense count: 8
613
- # Cop supports --auto-correct.
614
- Style/ColonMethodCall:
615
- Exclude:
616
- - 'app/models/comfy/cms/page.rb'
617
- - 'test/models/page_test.rb'
618
-
619
- # Offense count: 2
620
- Style/DateTime:
621
- Exclude:
622
- - 'test/models/page_test.rb'
623
-
624
- # Offense count: 94
625
- Style/Documentation:
626
- Enabled: false
627
-
628
- # Offense count: 9
629
- # Cop supports --auto-correct.
630
- Style/EachWithObject:
631
- Exclude:
632
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
633
- - 'lib/comfortable_mexican_sofa/extensions/has_revisions.rb'
634
- - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb'
635
-
636
- # Offense count: 2
637
- # Cop supports --auto-correct.
638
- Style/EmptyCaseCondition:
639
- Exclude:
640
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
641
-
642
- # Offense count: 1
643
- # Cop supports --auto-correct.
644
- # Configuration parameters: EnforcedStyle, SupportedStyles.
645
- # SupportedStyles: compact, expanded
646
- Style/EmptyMethod:
647
- Exclude:
648
- - 'test/integration/render_cms_test.rb'
649
-
650
- # Offense count: 6
651
- # Cop supports --auto-correct.
652
- Style/Encoding:
653
- Exclude:
654
- - 'app/models/comfy/cms/layout.rb'
655
- - 'comfortable_mexican_sofa.gemspec'
656
- - 'config/initializers/comfortable_mexican_sofa.rb'
657
- - 'lib/comfortable_mexican_sofa/configuration.rb'
658
- - 'test/lib/configuration_test.rb'
659
- - 'test/test_helper.rb'
660
-
661
- # Offense count: 188
662
- # Cop supports --auto-correct.
663
- # Configuration parameters: EnforcedStyle, SupportedStyles.
664
- # SupportedStyles: when_needed, always, never
665
- Style/FrozenStringLiteralComment:
666
- Enabled: false
667
-
668
- # Offense count: 22
669
- # Configuration parameters: MinBodyLength.
670
- Style/GuardClause:
671
- Enabled: false
672
-
673
- # Offense count: 80
674
- # Cop supports --auto-correct.
675
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
676
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
677
- Style/HashSyntax:
678
- Enabled: false
679
-
680
- # Offense count: 5
681
- # Cop supports --auto-correct.
682
- # Configuration parameters: MaxLineLength.
683
- Style/IfUnlessModifier:
684
- Exclude:
685
- - 'lib/comfortable_mexican_sofa/content/renderer.rb'
686
- - 'lib/comfortable_mexican_sofa/content/tags/asset.rb'
687
- - 'lib/comfortable_mexican_sofa/content/tags/partial.rb'
688
- - 'lib/comfortable_mexican_sofa/content/tags/template.rb'
689
-
690
- # Offense count: 5
691
- # Cop supports --auto-correct.
692
- # Configuration parameters: EnforcedStyle, SupportedStyles.
693
- # SupportedStyles: line_count_dependent, lambda, literal
694
- Style/Lambda:
695
- Exclude:
696
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
697
- - 'app/models/comfy/cms/file.rb'
698
- - 'app/models/comfy/cms/page.rb'
699
- - 'lib/comfortable_mexican_sofa/extensions/is_categorized.rb'
700
- - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb'
701
-
702
- # Offense count: 4
703
- # Cop supports --auto-correct.
704
- # Configuration parameters: SupportedStyles.
705
- # SupportedStyles: call, braces
706
- Style/LambdaCall:
707
- EnforcedStyle: braces
708
-
709
- # Offense count: 1
710
- Style/MultilineBlockChain:
711
- Exclude:
712
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
713
-
714
- # Offense count: 1
715
- # Cop supports --auto-correct.
716
- Style/MultilineIfModifier:
717
- Exclude:
718
- - 'app/models/comfy/cms/page.rb'
719
-
720
- # Offense count: 1
721
- Style/MultilineTernaryOperator:
722
- Exclude:
723
- - 'app/models/comfy/cms/page.rb'
724
-
725
- # Offense count: 6
726
- # Cop supports --auto-correct.
727
- Style/MutableConstant:
728
- Exclude:
729
- - 'app/models/comfy/cms/file.rb'
730
- - 'db/upgrade_migrations/08_upgrade_to_1_12_0.rb'
731
- - 'lib/comfortable_mexican_sofa/content/tags/helper.rb'
732
- - 'lib/comfortable_mexican_sofa/version.rb'
733
- - 'test/lib/seeds/layouts_test.rb'
734
-
735
- # Offense count: 11
736
- # Cop supports --auto-correct.
737
- # Configuration parameters: Strict.
738
- Style/NumericLiterals:
739
- MinDigits: 9
740
-
741
- # Offense count: 15
742
- # Cop supports --auto-correct.
743
- # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
744
- # SupportedStyles: predicate, comparison
745
- Style/NumericPredicate:
746
- Exclude:
747
- - 'spec/**/*'
748
- - 'app/controllers/comfy/admin/cms/layouts_controller.rb'
749
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
750
- - 'app/controllers/comfy/admin/cms/sites_controller.rb'
751
- - 'app/controllers/comfy/admin/cms/snippets_controller.rb'
752
- - 'app/models/comfy/cms/layout.rb'
753
- - 'app/models/comfy/cms/page.rb'
754
- - 'lib/comfortable_mexican_sofa/content/renderer.rb'
755
- - 'tmp/app/controllers/comfy/admin/cms/layouts_controller.rb'
756
- - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb'
757
- - 'tmp/app/controllers/comfy/admin/cms/sites_controller.rb'
758
- - 'tmp/app/controllers/comfy/admin/cms/snippets_controller.rb'
759
-
760
- # Offense count: 2
761
- # Cop supports --auto-correct.
762
- Style/ParallelAssignment:
763
- Exclude:
764
- - 'app/helpers/comfy/cms_helper.rb'
765
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
766
-
767
- # Offense count: 16
768
- # Cop supports --auto-correct.
769
- # Configuration parameters: PreferredDelimiters.
770
- Style/PercentLiteralDelimiters:
771
- Exclude:
772
- - 'app/controllers/comfy/admin/cms/base_controller.rb'
773
- - 'app/models/concerns/comfy/cms/with_fragments.rb'
774
- - 'db/upgrade_migrations/08_upgrade_to_1_12_0.rb'
775
- - 'lib/comfortable_mexican_sofa/content/tags/helper.rb'
776
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
777
- - 'lib/comfortable_mexican_sofa/seeds.rb'
778
- - 'test/generators/scaffold_generator_test.rb'
779
- - 'test/integration/sites_test.rb'
780
- - 'test/lib/seeds/files_test.rb'
781
- - 'test/lib/seeds/pages_test.rb'
782
- - 'test/lib/seeds/snippets_test.rb'
783
- - 'test/models/site_test.rb'
784
- - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb'
785
-
786
- # Offense count: 10
787
- # Cop supports --auto-correct.
788
- # Configuration parameters: EnforcedStyle, SupportedStyles.
789
- # SupportedStyles: compact, exploded
790
- Style/RaiseArgs:
791
- Exclude:
792
- - 'app/controllers/comfy/cms/base_controller.rb'
793
- - 'app/controllers/comfy/cms/content_controller.rb'
794
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
795
- - 'tmp/app/controllers/comfy/cms/base_controller.rb'
796
- - 'tmp/app/controllers/comfy/cms/content_controller.rb'
797
-
798
- # Offense count: 1
799
- # Cop supports --auto-correct.
800
- Style/RedundantConditional:
801
- Exclude:
802
- - 'lib/comfortable_mexican_sofa/content/tags/fragment.rb'
803
-
804
- # Offense count: 2
805
- # Cop supports --auto-correct.
806
- Style/RedundantParentheses:
807
- Exclude:
808
- - 'test/lib/content/renderer_test.rb'
809
-
810
- # Offense count: 6
811
- # Cop supports --auto-correct.
812
- # Configuration parameters: AllowMultipleReturnValues.
813
- Style/RedundantReturn:
814
- Exclude:
815
- - 'app/models/comfy/cms/layout.rb'
816
- - 'app/models/comfy/cms/page.rb'
817
- - 'app/models/comfy/cms/site.rb'
818
- - 'lib/comfortable_mexican_sofa/content/renderer.rb'
819
- - 'lib/comfortable_mexican_sofa/view_hooks.rb'
820
-
821
- # Offense count: 150
822
- # Cop supports --auto-correct.
823
- Style/RedundantSelf:
824
- Enabled: false
825
-
826
- # Offense count: 11
827
- # Cop supports --auto-correct.
828
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
829
- # SupportedStyles: slashes, percent_r, mixed
830
- Style/RegexpLiteral:
831
- Exclude:
832
- - 'app/controllers/comfy/cms/base_controller.rb'
833
- - 'app/models/comfy/cms/site.rb'
834
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
835
- - 'lib/comfortable_mexican_sofa/render_methods.rb'
836
- - 'test/integration/sites_test.rb'
837
- - 'tmp/app/controllers/comfy/cms/base_controller.rb'
838
-
839
- # Offense count: 17
840
- # Cop supports --auto-correct.
841
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil.
842
- Style/SafeNavigation:
843
- Exclude:
844
- - 'app/controllers/comfy/admin/cms/base_controller.rb'
845
- - 'app/controllers/comfy/admin/cms/pages_controller.rb'
846
- - 'app/controllers/comfy/cms/base_controller.rb'
847
- - 'app/controllers/comfy/cms/content_controller.rb'
848
- - 'app/helpers/comfy/cms_helper.rb'
849
- - 'app/models/comfy/cms/fragment.rb'
850
- - 'lib/comfortable_mexican_sofa/content/tags/file.rb'
851
- - 'lib/comfortable_mexican_sofa/content/tags/file_link.rb'
852
- - 'tmp/app/controllers/comfy/admin/cms/base_controller.rb'
853
- - 'tmp/app/controllers/comfy/admin/cms/pages_controller.rb'
854
- - 'tmp/app/controllers/comfy/cms/base_controller.rb'
855
- - 'tmp/app/controllers/comfy/cms/content_controller.rb'
856
-
857
- # Offense count: 1
858
- # Cop supports --auto-correct.
859
- Style/SelfAssignment:
860
- Exclude:
861
- - 'lib/comfortable_mexican_sofa/content/tags/asset.rb'
862
-
863
- # Offense count: 14
864
- # Cop supports --auto-correct.
865
- # Configuration parameters: AllowAsExpressionSeparator.
866
- Style/Semicolon:
867
- Exclude:
868
- - 'app/controllers/comfy/admin/cms/revisions_controller.rb'
869
- - 'test/models/page_test.rb'
870
- - 'tmp/app/controllers/comfy/admin/cms/revisions_controller.rb'
871
-
872
- # Offense count: 1
873
- # Cop supports --auto-correct.
874
- # Configuration parameters: SupportedStyles.
875
- # SupportedStyles: use_perl_names, use_english_names
876
- Style/SpecialGlobalVars:
877
- EnforcedStyle: use_perl_names
878
-
879
- # Offense count: 1226
880
- # Cop supports --auto-correct.
881
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
882
- # SupportedStyles: single_quotes, double_quotes
883
- Style/StringLiterals:
884
- Enabled: false
885
-
886
- # Offense count: 1
887
- # Cop supports --auto-correct.
888
- # Configuration parameters: EnforcedStyle, SupportedStyles.
889
- # SupportedStyles: single_quotes, double_quotes
890
- Style/StringLiteralsInInterpolation:
891
- Exclude:
892
- - 'lib/comfortable_mexican_sofa/extensions/acts_as_tree.rb'
893
-
894
- # Offense count: 68
895
- # Cop supports --auto-correct.
896
- # Configuration parameters: SupportedStyles.
897
- # SupportedStyles: percent, brackets
898
- Style/SymbolArray:
899
- EnforcedStyle: percent
900
- MinSize: 5
901
-
902
- # Offense count: 18
903
- # Cop supports --auto-correct.
904
- # Configuration parameters: IgnoredMethods.
905
- # IgnoredMethods: respond_to, define_method
906
- Style/SymbolProc:
907
- Exclude:
908
- - 'app/models/comfy/cms/layout.rb'
909
- - 'app/models/concerns/comfy/cms/with_fragments.rb'
910
- - 'lib/comfortable_mexican_sofa/seeds/file.rb'
911
- - 'lib/comfortable_mexican_sofa/seeds/layout.rb'
912
- - 'lib/comfortable_mexican_sofa/seeds/page.rb'
913
- - 'lib/comfortable_mexican_sofa/seeds/snippet.rb'
914
- - 'lib/comfortable_mexican_sofa/view_hooks.rb'
915
- - 'test/controllers/comfy/admin/cms/pages_controller_test.rb'
916
- - 'test/lib/seeds/files_test.rb'
917
- - 'test/lib/seeds/pages_test.rb'
918
- - 'test/lib/seeds/snippets_test.rb'
919
- - 'test/models/layout_test.rb'
920
- - 'test/models/page_test.rb'
921
-
922
- # Offense count: 2
923
- # Cop supports --auto-correct.
924
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
925
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
926
- Style/TrailingCommaInArguments:
927
- Exclude:
928
- - 'test/controllers/comfy/cms/content_controller_test.rb'
929
- - 'test/fixtures/generators/scaffold/tests/model.rb'
930
-
931
- # Offense count: 3
932
- # Cop supports --auto-correct.
933
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
934
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
935
- Style/TrailingCommaInLiteral:
936
- Exclude:
937
- - 'test/controllers/comfy/admin/cms/files_controller_test.rb'
938
- - 'test/controllers/comfy/admin/cms/pages_controller_test.rb'
939
- - 'test/fixtures/generators/scaffold/tests/controller.rb'
940
-
941
- # Offense count: 1
942
- # Cop supports --auto-correct.
943
- # Configuration parameters: AllowNamedUnderscoreVariables.
944
- Style/TrailingUnderscoreVariable:
945
- Exclude:
946
- - 'lib/comfortable_mexican_sofa/content/params_parser.rb'
947
-
948
- # Offense count: 1
949
- # Cop supports --auto-correct.
950
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
951
- # Whitelist: 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
952
- Style/TrivialAccessors:
953
- Exclude:
954
- - 'lib/comfortable_mexican_sofa.rb'
955
-
956
- # Offense count: 1
957
- # Cop supports --auto-correct.
958
- Style/WhileUntilDo:
959
- Exclude:
960
- - 'app/models/comfy/cms/page.rb'
961
-
962
- # Offense count: 14
963
- # Cop supports --auto-correct.
964
- # Configuration parameters: SupportedStyles, WordRegex.
965
- # SupportedStyles: percent, brackets
966
- Style/WordArray:
967
- EnforcedStyle: percent
968
- MinSize: 6
969
-
970
- # Offense count: 1
971
- # Cop supports --auto-correct.
972
- Style/ZeroLengthPredicate:
973
- Exclude:
974
- - 'lib/comfortable_mexican_sofa/content/renderer.rb'