-
Notifications
You must be signed in to change notification settings - Fork 287
/
.rubocop_todo.yml
214 lines (190 loc) · 7.42 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-06-11 17:08:27 UTC using RuboCop version 1.64.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 3
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'app/models/concerns/camaleon_cms/user_methods.rb'
- 'config/initializers/model_alias.rb'
# Offense count: 39
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Enabled: false
# Offense count: 168
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 143
# Offense count: 17
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 125
# Offense count: 6
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 5
# Offense count: 21
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 369
# Offense count: 52
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 62
# Offense count: 146
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 335
# Offense count: 9
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 340
# Offense count: 10
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
MaxOptionalParameters: 7
Max: 8
# Offense count: 46
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 63
# Offense count: 28
Naming/AccessorMethodName:
Exclude:
- 'app/controllers/camaleon_cms/admin/settings/custom_fields_controller.rb'
- 'app/decorators/camaleon_cms/application_decorator.rb'
- 'app/models/camaleon_cms/custom_field_group.rb'
- 'app/models/camaleon_cms/post.rb'
- 'app/models/camaleon_cms/site.rb'
- 'app/models/concerns/camaleon_cms/metas.rb'
- 'app/uploaders/camaleon_cms_uploader.rb'
- 'config/initializers/sass.rb'
- 'lib/generators/camaleon_cms/gem_plugin_generator.rb'
- 'lib/generators/camaleon_cms/theme_generator.rb'
- 'lib/plugin_routes.rb'
# Offense count: 8
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'app/controllers/camaleon_cms/admin/media_controller.rb'
- 'app/helpers/camaleon_cms/frontend/site_helper.rb'
- 'app/helpers/camaleon_cms/site_helper.rb'
- 'app/helpers/camaleon_cms/user_roles_helper.rb'
- 'app/models/camaleon_cms/site.rb'
- 'app/models/concerns/camaleon_cms/user_methods.rb'
# Offense count: 10
# Configuration parameters: EnforcedStyle, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Exclude:
- 'app/helpers/camaleon_cms/camaleon_helper.rb'
- 'lib/ext/string.rb'
- 'lib/generators/camaleon_cms/gem_plugin_template/app/helpers/plugins/my_plugin/main_helper.rb'
- 'lib/generators/camaleon_cms/theme_template/main_helper.rb'
- 'lib/plugin_routes.rb'
# Offense count: 8
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'app/decorators/camaleon_cms/application_decorator.rb'
- 'app/helpers/camaleon_cms/uploader_helper.rb'
- 'app/models/concerns/camaleon_cms/custom_fields_read.rb'
- 'app/models/concerns/camaleon_cms/metas.rb'
- 'lib/plugin_routes.rb'
# Offense count: 22
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'app/decorators/camaleon_cms/post_decorator.rb'
- 'app/helpers/camaleon_cms/admin/menus_helper.rb'
- 'app/helpers/camaleon_cms/frontend/site_helper.rb'
- 'app/models/camaleon_cms/nav_menu_item.rb'
- 'app/models/camaleon_cms/post.rb'
- 'app/models/camaleon_cms/post_comment.rb'
- 'app/models/camaleon_cms/site.rb'
- 'app/models/camaleon_cms/widget/main.rb'
- 'app/uploaders/camaleon_cms_uploader.rb'
- 'lib/ext/string.rb'
# Offense count: 5
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'app/controllers/camaleon_cms/frontend_controller.rb'
- 'config/initializers/assets.rb'
- 'spec/models/post_spec.rb'
# Offense count: 6
Security/Eval:
Exclude:
- 'app/helpers/camaleon_cms/html_helper.rb'
- 'config/initializers/custom_initializers.rb'
- 'config/routes.rb'
- 'config/routes/admin.rb'
- 'lib/plugin_routes.rb'
# Offense count: 8
Style/ClassVars:
Exclude:
- 'lib/plugin_routes.rb'
# Offense count: 23
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'app/controllers/camaleon_cms/camaleon_controller.rb'
- 'app/helpers/camaleon_cms/captcha_helper.rb'
- 'app/helpers/camaleon_cms/site_helper.rb'
- 'app/mailers/camaleon_cms/html_mailer.rb'
- 'lib/camaleon_cms/engine.rb'
- 'lib/generators/camaleon_cms/gem_plugin_generator.rb'
- 'lib/generators/camaleon_cms/install_generator.rb'
- 'lib/generators/camaleon_cms/theme_generator.rb'
- 'lib/plugin_routes.rb'
- 'lib/tasks/camaleon_cms/camaleon_tasks.rake'
- 'lib/tasks/camaleon_cms/rspec_test.rake'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Exclude:
- 'app/validators/camaleon_cms/post_uniq_validator.rb'
- 'app/validators/camaleon_cms/uniq_validator.rb'
# Offense count: 32
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Exclude:
- 'app/apps/plugins/visibility_post/visibility_post_helper.rb'
- 'app/controllers/camaleon_cms/admin/appearances/widgets/sidebar_controller.rb'
- 'app/helpers/camaleon_cms/admin/menus_helper.rb'
- 'app/helpers/camaleon_cms/admin/post_type_helper.rb'
- 'app/helpers/camaleon_cms/comment_helper.rb'
- 'app/helpers/camaleon_cms/frontend/nav_menu_helper.rb'
- 'app/helpers/camaleon_cms/site_helper.rb'
- 'app/helpers/camaleon_cms/uploader_helper.rb'
- 'app/validators/camaleon_cms/post_uniq_validator.rb'
- 'app/validators/camaleon_cms/uniq_validator.rb'
- 'config/initializers/sass.rb'
# Offense count: 37
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Enabled: false
# Offense count: 252
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 2326