forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop_todo.yml
167 lines (144 loc) · 4.3 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
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-08-12 09:02:10 +0200 using RuboCop version 0.33.0.
# 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
Lint/Eval:
Exclude:
- 'Gemfile'
- 'lib/publify_plugins.rb'
# Offense count: 2
Lint/NonLocalExitFromIterator:
Exclude:
- 'app/controllers/admin/feedback_controller.rb'
- 'app/models/article/factory.rb'
# Offense count: 85
Metrics/AbcSize:
Max: 72
# Offense count: 12
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 242
# Offense count: 17
Metrics/CyclomaticComplexity:
Max: 20
# Offense count: 900
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 1196
# Offense count: 74
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 48
# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 218
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 8
Metrics/PerceivedComplexity:
Max: 20
# Offense count: 3
# Configuration parameters: EnforcedStyle, SupportedStyles.
Rails/Date:
Exclude:
- 'app/controllers/admin/content_controller.rb'
- 'app/helpers/application_helper.rb'
# Offense count: 2
# Configuration parameters: Include.
Rails/HasAndBelongsToMany:
Exclude:
- 'app/models/article.rb'
- 'app/models/tag.rb'
# Offense count: 75
# Configuration parameters: EnforcedStyle, SupportedStyles.
Rails/TimeZone:
Enabled: false
# Offense count: 13
Style/AccessorMethodName:
Exclude:
- 'app/controllers/admin/content_controller.rb'
- 'app/controllers/admin/pages_controller.rb'
- 'app/controllers/admin/resources_controller.rb'
- 'app/controllers/comments_controller.rb'
- 'app/controllers/trackbacks_controller.rb'
- 'app/models/content.rb'
- 'lib/publify_login_system/access_control.rb'
- 'lib/publify_login_system/login_system.rb'
- 'spec/models/blog_spec.rb'
- 'spec/models/user_spec.rb'
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
Style/BlockDelimiters:
Enabled: false
# Offense count: 10
Style/ClassVars:
Exclude:
- 'app/controllers/admin/base_controller.rb'
- 'app/models/feedback.rb'
- 'app/models/theme.rb'
- 'lib/email_notify.rb'
- 'lib/publify_login_system/login_system.rb'
- 'lib/publify_plugins.rb'
- 'lib/text_filter_plugin.rb'
- 'spec/support/mocks/http_mock.rb'
# Offense count: 11
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'app/controllers/admin/base_controller.rb'
- 'app/models/feedback.rb'
- 'app/services/admin/token_checker.rb'
- 'spec/services/admin/token_checker_spec.rb'
# Offense count: 23
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 6
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
Exclude:
- 'app/helpers/authors_helper.rb'
- 'app/models/article.rb'
- 'app/models/blog.rb'
- 'app/models/user.rb'
- 'lib/spam_protection.rb'
- 'lib/stateful.rb'
# Offense count: 6
# Configuration parameters: SupportedStyles.
Style/RaiseArgs:
EnforcedStyle: compact
# Offense count: 20
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
Style/RegexpLiteral:
Exclude:
- 'app/controllers/admin/dashboard_controller.rb'
- 'app/models/blog.rb'
- 'app/models/note.rb'
- 'app/models/ping.rb'
- 'app/models/redirect.rb'
- 'lib/format.rb'
- 'lib/spam_protection.rb'
- 'lib/tasks/release.rake'
- 'lib/text_filter_plugin.rb'
- 'spec/models/content_spec.rb'
# Offense count: 9
Style/RescueModifier:
Exclude:
- 'app/controllers/admin/dashboard_controller.rb'
- 'app/helpers/admin/base_helper.rb'
- 'app/models/theme.rb'
- 'lib/spam_protection.rb'
# Offense count: 1
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Exclude:
- 'lib/tag_sidebar/lib/tag_sidebar.rb'