|
1 |
# This configuration was generated by
|
|
2 |
# `rubocop --auto-gen-config`
|
|
3 |
# on 2019-06-08 16:33:46 +0900 using RuboCop version 0.71.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: 11
|
|
10 |
# Cop supports --auto-correct.
|
|
11 |
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
|
12 |
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
13 |
Bundler/OrderedGems:
|
|
14 |
Exclude:
|
|
15 |
- 'Gemfile'
|
|
16 |
|
|
17 |
# Offense count: 10
|
|
18 |
# Cop supports --auto-correct.
|
|
19 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
20 |
# SupportedStyles: outdent, indent
|
|
21 |
Layout/AccessModifierIndentation:
|
|
22 |
Exclude:
|
|
23 |
- 'app/controllers/boards_controller.rb'
|
|
24 |
- 'app/controllers/messages_controller.rb'
|
|
25 |
- 'app/controllers/timelog_controller.rb'
|
|
26 |
- 'app/controllers/wiki_controller.rb'
|
|
27 |
- 'app/models/role.rb'
|
|
28 |
- 'app/models/setting.rb'
|
|
29 |
- 'app/models/tracker.rb'
|
|
30 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
31 |
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
|
|
32 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
33 |
|
|
34 |
# Offense count: 572
|
|
35 |
# Cop supports --auto-correct.
|
|
36 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
37 |
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
38 |
Layout/AlignArguments:
|
|
39 |
Enabled: false
|
|
40 |
|
|
41 |
# Offense count: 91
|
|
42 |
# Cop supports --auto-correct.
|
|
43 |
Layout/AlignArray:
|
|
44 |
Exclude:
|
|
45 |
- 'app/models/setting.rb'
|
|
46 |
- 'lib/redmine/default_data/loader.rb'
|
|
47 |
- 'test/functional/issues_controller_test.rb'
|
|
48 |
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
|
49 |
- 'test/unit/repository_bazaar_test.rb'
|
|
50 |
|
|
51 |
# Offense count: 1012
|
|
52 |
# Cop supports --auto-correct.
|
|
53 |
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
54 |
# SupportedHashRocketStyles: key, separator, table
|
|
55 |
# SupportedColonStyles: key, separator, table
|
|
56 |
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
57 |
Layout/AlignHash:
|
|
58 |
Enabled: false
|
|
59 |
|
|
60 |
# Offense count: 10
|
|
61 |
# Cop supports --auto-correct.
|
|
62 |
# Configuration parameters: EnforcedStyleAlignWith.
|
|
63 |
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
|
64 |
Layout/BlockAlignment:
|
|
65 |
Exclude:
|
|
66 |
- 'app/helpers/queries_helper.rb'
|
|
67 |
- 'app/models/principal.rb'
|
|
68 |
- 'app/models/project.rb'
|
|
69 |
- 'app/models/time_entry.rb'
|
|
70 |
- 'test/functional/issues_controller_test.rb'
|
|
71 |
- 'test/functional/repositories_git_controller_test.rb'
|
|
72 |
- 'test/functional/repositories_mercurial_controller_test.rb'
|
|
73 |
- 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
|
|
74 |
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
|
75 |
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
|
76 |
|
|
77 |
# Offense count: 5
|
|
78 |
# Cop supports --auto-correct.
|
|
79 |
Layout/BlockEndNewline:
|
|
80 |
Exclude:
|
|
81 |
- 'app/controllers/auth_sources_controller.rb'
|
|
82 |
- 'app/controllers/files_controller.rb'
|
|
83 |
- 'app/models/issue.rb'
|
|
84 |
- 'app/models/message.rb'
|
|
85 |
|
|
86 |
# Offense count: 21
|
|
87 |
# Cop supports --auto-correct.
|
|
88 |
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
89 |
# SupportedStyles: case, end
|
|
90 |
Layout/CaseIndentation:
|
|
91 |
Exclude:
|
|
92 |
- 'app/helpers/versions_helper.rb'
|
|
93 |
- 'app/models/issue_import.rb'
|
|
94 |
- 'app/models/issue_priority.rb'
|
|
95 |
- 'app/models/issue_query.rb'
|
|
96 |
- 'config/initializers/10-patches.rb'
|
|
97 |
- 'lib/redmine/helpers/gantt.rb'
|
|
98 |
- 'lib/redmine/menu_manager.rb'
|
|
99 |
- 'lib/redmine/views/builders.rb'
|
|
100 |
- 'test/test_helper.rb'
|
|
101 |
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
|
102 |
|
|
103 |
# Offense count: 64
|
|
104 |
# Cop supports --auto-correct.
|
|
105 |
Layout/ClosingHeredocIndentation:
|
|
106 |
Exclude:
|
|
107 |
- 'app/models/setting.rb'
|
|
108 |
- 'test/helpers/application_helper_test.rb'
|
|
109 |
- 'test/integration/api_test/issues_test.rb'
|
|
110 |
- 'test/integration/lib/redmine/hook_test.rb'
|
|
111 |
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
|
112 |
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
|
|
113 |
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
|
|
114 |
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
|
|
115 |
- 'test/unit/lib/redmine/wiki_formatting_test.rb'
|
|
116 |
- 'test/unit/setting_test.rb'
|
|
117 |
|
|
118 |
# Offense count: 65
|
|
119 |
# Cop supports --auto-correct.
|
|
120 |
Layout/ClosingParenthesisIndentation:
|
|
121 |
Enabled: false
|
|
122 |
|
|
123 |
# Offense count: 19
|
|
124 |
# Cop supports --auto-correct.
|
|
125 |
Layout/CommentIndentation:
|
|
126 |
Exclude:
|
|
127 |
- 'app/helpers/versions_helper.rb'
|
|
128 |
- 'app/models/mailer.rb'
|
|
129 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
130 |
- 'test/unit/issue_test.rb'
|
|
131 |
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
|
|
132 |
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
|
|
133 |
- 'test/unit/repository_cvs_test.rb'
|
|
134 |
|
|
135 |
# Offense count: 2
|
|
136 |
# Cop supports --auto-correct.
|
|
137 |
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
|
138 |
# SupportedStylesAlignWith: start_of_line, def
|
|
139 |
Layout/DefEndAlignment:
|
|
140 |
Exclude:
|
|
141 |
- 'test/functional/documents_controller_test.rb'
|
|
142 |
- 'test/unit/repository_cvs_test.rb'
|
|
143 |
|
|
144 |
# Offense count: 345
|
|
145 |
# Cop supports --auto-correct.
|
|
146 |
# Configuration parameters: EnforcedStyle.
|
|
147 |
# SupportedStyles: leading, trailing
|
|
148 |
Layout/DotPosition:
|
|
149 |
Enabled: false
|
|
150 |
|
|
151 |
# Offense count: 14
|
|
152 |
# Cop supports --auto-correct.
|
|
153 |
Layout/ElseAlignment:
|
|
154 |
Exclude:
|
|
155 |
- 'app/helpers/application_helper.rb'
|
|
156 |
- 'app/helpers/attachments_helper.rb'
|
|
157 |
- 'app/helpers/queries_helper.rb'
|
|
158 |
- 'app/models/changeset.rb'
|
|
159 |
- 'app/models/issue.rb'
|
|
160 |
- 'app/models/issue_query.rb'
|
|
161 |
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
|
162 |
- 'lib/redmine/i18n.rb'
|
|
163 |
- 'lib/redmine/plugin.rb'
|
|
164 |
- 'lib/redmine/wiki_formatting.rb'
|
|
165 |
|
|
166 |
# Offense count: 205
|
|
167 |
# Cop supports --auto-correct.
|
|
168 |
Layout/EmptyLineAfterGuardClause:
|
|
169 |
Enabled: false
|
|
170 |
|
|
171 |
# Offense count: 29
|
|
172 |
# Cop supports --auto-correct.
|
|
173 |
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
174 |
Layout/EmptyLineBetweenDefs:
|
|
175 |
Exclude:
|
|
176 |
- 'app/helpers/application_helper.rb'
|
|
177 |
- 'app/models/attachment.rb'
|
|
178 |
- 'app/models/user.rb'
|
|
179 |
- 'app/models/user_preference.rb'
|
|
180 |
- 'app/models/version.rb'
|
|
181 |
- 'db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb'
|
|
182 |
- 'lib/redmine/info.rb'
|
|
183 |
- 'lib/redmine/version.rb'
|
|
184 |
- 'test/functional/email_addresses_controller_test.rb'
|
|
185 |
- 'test/functional/settings_controller_test.rb'
|
|
186 |
- 'test/functional/users_controller_test.rb'
|
|
187 |
- 'test/helpers/sort_helper_test.rb'
|
|
188 |
- 'test/unit/issue_test.rb'
|
|
189 |
- 'test/unit/mailer_test.rb'
|
|
190 |
- 'test/unit/project_test.rb'
|
|
191 |
|
|
192 |
# Offense count: 21
|
|
193 |
# Cop supports --auto-correct.
|
|
194 |
Layout/EmptyLines:
|
|
195 |
Enabled: false
|
|
196 |
|
|
197 |
# Offense count: 11
|
|
198 |
# Cop supports --auto-correct.
|
|
199 |
# Configuration parameters: EnforcedStyle.
|
|
200 |
# SupportedStyles: around, only_before
|
|
201 |
Layout/EmptyLinesAroundAccessModifier:
|
|
202 |
Exclude:
|
|
203 |
- 'app/controllers/boards_controller.rb'
|
|
204 |
- 'app/controllers/messages_controller.rb'
|
|
205 |
- 'app/controllers/previews_controller.rb'
|
|
206 |
- 'app/controllers/timelog_controller.rb'
|
|
207 |
- 'app/models/tracker.rb'
|
|
208 |
- 'config/initializers/10-patches.rb'
|
|
209 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
210 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
211 |
- 'lib/redmine/syntax_highlighting.rb'
|
|
212 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
213 |
- 'test/functional/repositories_git_controller_test.rb'
|
|
214 |
|
|
215 |
# Offense count: 1
|
|
216 |
# Cop supports --auto-correct.
|
|
217 |
Layout/EmptyLinesAroundArguments:
|
|
218 |
Exclude:
|
|
219 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
220 |
|
|
221 |
# Offense count: 18
|
|
222 |
# Cop supports --auto-correct.
|
|
223 |
# Configuration parameters: EnforcedStyle.
|
|
224 |
# SupportedStyles: empty_lines, no_empty_lines
|
|
225 |
Layout/EmptyLinesAroundBlockBody:
|
|
226 |
Exclude:
|
|
227 |
- 'app/helpers/application_helper.rb'
|
|
228 |
- 'app/models/attachment.rb'
|
|
229 |
- 'app/models/setting.rb'
|
|
230 |
- 'db/schema.rb'
|
|
231 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
232 |
- 'test/functional/issues_controller_test.rb'
|
|
233 |
- 'test/integration/api_test/attachments_test.rb'
|
|
234 |
- 'test/integration/api_test/issues_test.rb'
|
|
235 |
- 'test/unit/changeset_test.rb'
|
|
236 |
|
|
237 |
# Offense count: 52
|
|
238 |
# Cop supports --auto-correct.
|
|
239 |
# Configuration parameters: EnforcedStyle.
|
|
240 |
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
241 |
Layout/EmptyLinesAroundClassBody:
|
|
242 |
Enabled: false
|
|
243 |
|
|
244 |
# Offense count: 6
|
|
245 |
# Cop supports --auto-correct.
|
|
246 |
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
247 |
Exclude:
|
|
248 |
- 'app/controllers/activities_controller.rb'
|
|
249 |
- 'app/controllers/imports_controller.rb'
|
|
250 |
- 'app/controllers/wiki_controller.rb'
|
|
251 |
- 'test/functional/settings_controller_test.rb'
|
|
252 |
- 'test/integration/attachments_test.rb'
|
|
253 |
|
|
254 |
# Offense count: 20
|
|
255 |
# Cop supports --auto-correct.
|
|
256 |
Layout/EmptyLinesAroundMethodBody:
|
|
257 |
Exclude:
|
|
258 |
- 'app/models/query.rb'
|
|
259 |
- 'db/migrate/001_setup.rb'
|
|
260 |
- 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
|
|
261 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
262 |
- 'test/functional/journals_controller_test.rb'
|
|
263 |
- 'test/functional/repositories_git_controller_test.rb'
|
|
264 |
- 'test/functional/users_controller_test.rb'
|
|
265 |
- 'test/integration/account_test.rb'
|
|
266 |
- 'test/unit/attachment_test.rb'
|
|
267 |
- 'test/unit/issue_test.rb'
|
|
268 |
- 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
|
|
269 |
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
|
270 |
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
|
271 |
|
|
272 |
# Offense count: 25
|
|
273 |
# Cop supports --auto-correct.
|
|
274 |
# Configuration parameters: EnforcedStyle.
|
|
275 |
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
276 |
Layout/EmptyLinesAroundModuleBody:
|
|
277 |
Enabled: false
|
|
278 |
|
|
279 |
# Offense count: 24
|
|
280 |
# Cop supports --auto-correct.
|
|
281 |
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
|
282 |
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
283 |
Layout/EndAlignment:
|
|
284 |
Enabled: false
|
|
285 |
|
|
286 |
# Offense count: 107
|
|
287 |
# Cop supports --auto-correct.
|
|
288 |
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
289 |
Layout/ExtraSpacing:
|
|
290 |
Enabled: false
|
|
291 |
|
|
292 |
# Offense count: 9
|
|
293 |
# Cop supports --auto-correct.
|
|
294 |
# Configuration parameters: IndentationWidth.
|
|
295 |
Layout/IndentAssignment:
|
|
296 |
Exclude:
|
|
297 |
- 'app/helpers/application_helper.rb'
|
|
298 |
- 'app/helpers/issues_helper.rb'
|
|
299 |
- 'app/helpers/repositories_helper.rb'
|
|
300 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
301 |
- 'test/unit/lib/redmine/helpers/gantt_test.rb'
|
|
302 |
|
|
303 |
# Offense count: 200
|
|
304 |
# Cop supports --auto-correct.
|
|
305 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
306 |
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
307 |
Layout/IndentFirstArgument:
|
|
308 |
Enabled: false
|
|
309 |
|
|
310 |
# Offense count: 99
|
|
311 |
# Cop supports --auto-correct.
|
|
312 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
313 |
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
314 |
Layout/IndentFirstArrayElement:
|
|
315 |
Enabled: false
|
|
316 |
|
|
317 |
# Offense count: 2602
|
|
318 |
# Cop supports --auto-correct.
|
|
319 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
320 |
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
321 |
Layout/IndentFirstHashElement:
|
|
322 |
Enabled: false
|
|
323 |
|
|
324 |
# Offense count: 79
|
|
325 |
# Cop supports --auto-correct.
|
|
326 |
# Configuration parameters: EnforcedStyle.
|
|
327 |
# SupportedStyles: squiggly, active_support, powerpack, unindent
|
|
328 |
Layout/IndentHeredoc:
|
|
329 |
Exclude:
|
|
330 |
- 'test/functional/documents_controller_test.rb'
|
|
331 |
- 'test/helpers/application_helper_test.rb'
|
|
332 |
- 'test/integration/api_test/custom_fields_attribute_test.rb'
|
|
333 |
- 'test/integration/api_test/files_test.rb'
|
|
334 |
- 'test/integration/api_test/issues_test.rb'
|
|
335 |
- 'test/integration/lib/redmine/hook_test.rb'
|
|
336 |
- 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
|
|
337 |
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
|
338 |
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
|
|
339 |
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
|
|
340 |
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
|
|
341 |
- 'test/unit/lib/redmine/wiki_formatting_test.rb'
|
|
342 |
- 'test/unit/setting_test.rb'
|
|
343 |
|
|
344 |
# Offense count: 38
|
|
345 |
# Cop supports --auto-correct.
|
|
346 |
# Configuration parameters: EnforcedStyle.
|
|
347 |
# SupportedStyles: normal, rails
|
|
348 |
Layout/IndentationConsistency:
|
|
349 |
Exclude:
|
|
350 |
- 'app/models/attachment.rb'
|
|
351 |
- 'test/functional/issues_controller_test.rb'
|
|
352 |
- 'test/functional/project_enumerations_controller_test.rb'
|
|
353 |
- 'test/functional/repositories_git_controller_test.rb'
|
|
354 |
- 'test/functional/repositories_mercurial_controller_test.rb'
|
|
355 |
- 'test/helpers/application_helper_test.rb'
|
|
356 |
- 'test/integration/api_test/custom_fields_attribute_test.rb'
|
|
357 |
- 'test/integration/api_test/issues_test.rb'
|
|
358 |
- 'test/mocks/open_id_authentication_mock.rb'
|
|
359 |
- 'test/unit/repository_cvs_test.rb'
|
|
360 |
|
|
361 |
# Offense count: 283
|
|
362 |
# Cop supports --auto-correct.
|
|
363 |
# Configuration parameters: Width, IgnoredPatterns.
|
|
364 |
Layout/IndentationWidth:
|
|
365 |
Enabled: false
|
|
366 |
|
|
367 |
# Offense count: 32
|
|
368 |
# Cop supports --auto-correct.
|
|
369 |
Layout/LeadingCommentSpace:
|
|
370 |
Exclude:
|
|
371 |
- 'app/controllers/repositories_controller.rb'
|
|
372 |
- 'app/models/repository.rb'
|
|
373 |
- 'lib/diff.rb'
|
|
374 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
375 |
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
376 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
377 |
- 'test/integration/api_test/issues_test.rb'
|
|
378 |
- 'test/integration/issues_test.rb'
|
|
379 |
- 'test/unit/issue_test.rb'
|
|
380 |
- 'test/unit/project_test.rb'
|
|
381 |
- 'test/unit/query_test.rb'
|
|
382 |
- 'test/unit/user_test.rb'
|
|
383 |
|
|
384 |
# Offense count: 9
|
|
385 |
# Cop supports --auto-correct.
|
|
386 |
# Configuration parameters: EnforcedStyle.
|
|
387 |
# SupportedStyles: symmetrical, new_line, same_line
|
|
388 |
Layout/MultilineArrayBraceLayout:
|
|
389 |
Exclude:
|
|
390 |
- 'app/helpers/projects_helper.rb'
|
|
391 |
- 'app/helpers/settings_helper.rb'
|
|
392 |
- 'app/helpers/users_helper.rb'
|
|
393 |
- 'app/models/setting.rb'
|
|
394 |
- 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
|
|
395 |
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
|
|
396 |
- 'test/unit/repository_bazaar_test.rb'
|
|
397 |
|
|
398 |
# Offense count: 4
|
|
399 |
# Cop supports --auto-correct.
|
|
400 |
Layout/MultilineBlockLayout:
|
|
401 |
Exclude:
|
|
402 |
- 'app/controllers/auth_sources_controller.rb'
|
|
403 |
- 'app/controllers/auto_completes_controller.rb'
|
|
404 |
- 'app/models/issue.rb'
|
|
405 |
- 'app/models/message.rb'
|
|
406 |
|
|
407 |
# Offense count: 77
|
|
408 |
# Cop supports --auto-correct.
|
|
409 |
# Configuration parameters: EnforcedStyle.
|
|
410 |
# SupportedStyles: symmetrical, new_line, same_line
|
|
411 |
Layout/MultilineHashBraceLayout:
|
|
412 |
Enabled: false
|
|
413 |
|
|
414 |
# Offense count: 126
|
|
415 |
# Cop supports --auto-correct.
|
|
416 |
# Configuration parameters: EnforcedStyle.
|
|
417 |
# SupportedStyles: symmetrical, new_line, same_line
|
|
418 |
Layout/MultilineMethodCallBraceLayout:
|
|
419 |
Enabled: false
|
|
420 |
|
|
421 |
# Offense count: 218
|
|
422 |
# Cop supports --auto-correct.
|
|
423 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
424 |
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
425 |
Layout/MultilineMethodCallIndentation:
|
|
426 |
Enabled: false
|
|
427 |
|
|
428 |
# Offense count: 185
|
|
429 |
# Cop supports --auto-correct.
|
|
430 |
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
431 |
# SupportedStyles: aligned, indented
|
|
432 |
Layout/MultilineOperationIndentation:
|
|
433 |
Enabled: false
|
|
434 |
|
|
435 |
# Offense count: 1
|
|
436 |
# Cop supports --auto-correct.
|
|
437 |
Layout/RescueEnsureAlignment:
|
|
438 |
Exclude:
|
|
439 |
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
|
440 |
|
|
441 |
# Offense count: 4
|
|
442 |
# Cop supports --auto-correct.
|
|
443 |
Layout/SpaceAfterColon:
|
|
444 |
Exclude:
|
|
445 |
- 'test/functional/issues_controller_test.rb'
|
|
446 |
- 'test/integration/wiki_test.rb'
|
|
447 |
|
|
448 |
# Offense count: 357
|
|
449 |
# Cop supports --auto-correct.
|
|
450 |
Layout/SpaceAfterComma:
|
|
451 |
Enabled: false
|
|
452 |
|
|
453 |
# Offense count: 37
|
|
454 |
# Cop supports --auto-correct.
|
|
455 |
Layout/SpaceAfterNot:
|
|
456 |
Enabled: false
|
|
457 |
|
|
458 |
# Offense count: 1
|
|
459 |
# Cop supports --auto-correct.
|
|
460 |
Layout/SpaceAfterSemicolon:
|
|
461 |
Exclude:
|
|
462 |
- 'app/models/mail_handler.rb'
|
|
463 |
|
|
464 |
# Offense count: 6
|
|
465 |
# Cop supports --auto-correct.
|
|
466 |
# Configuration parameters: EnforcedStyleInsidePipes.
|
|
467 |
# SupportedStylesInsidePipes: space, no_space
|
|
468 |
Layout/SpaceAroundBlockParameters:
|
|
469 |
Exclude:
|
|
470 |
- 'app/controllers/issues_controller.rb'
|
|
471 |
- 'lib/redmine/plugin.rb'
|
|
472 |
- 'test/unit/query_test.rb'
|
|
473 |
|
|
474 |
# Offense count: 654
|
|
475 |
# Cop supports --auto-correct.
|
|
476 |
# Configuration parameters: EnforcedStyle.
|
|
477 |
# SupportedStyles: space, no_space
|
|
478 |
Layout/SpaceAroundEqualsInParameterDefault:
|
|
479 |
Enabled: false
|
|
480 |
|
|
481 |
# Offense count: 332
|
|
482 |
# Cop supports --auto-correct.
|
|
483 |
# Configuration parameters: AllowForAlignment.
|
|
484 |
Layout/SpaceAroundOperators:
|
|
485 |
Enabled: false
|
|
486 |
|
|
487 |
# Offense count: 107
|
|
488 |
# Cop supports --auto-correct.
|
|
489 |
# Configuration parameters: EnforcedStyle.
|
|
490 |
# SupportedStyles: space, no_space
|
|
491 |
# SupportedStylesForEmptyBraces: space, no_space
|
|
492 |
Layout/SpaceBeforeBlockBraces:
|
|
493 |
EnforcedStyleForEmptyBraces: no_space
|
|
494 |
|
|
495 |
# Offense count: 7
|
|
496 |
# Cop supports --auto-correct.
|
|
497 |
Layout/SpaceBeforeComma:
|
|
498 |
Exclude:
|
|
499 |
- 'lib/redmine/export/pdf.rb'
|
|
500 |
- 'test/helpers/application_helper_test.rb'
|
|
501 |
- 'test/mocks/open_id_authentication_mock.rb'
|
|
502 |
- 'test/unit/lib/redmine/helpers/calendar_test.rb'
|
|
503 |
- 'test/unit/time_entry_test.rb'
|
|
504 |
|
|
505 |
# Offense count: 5
|
|
506 |
# Cop supports --auto-correct.
|
|
507 |
# Configuration parameters: AllowForAlignment.
|
|
508 |
Layout/SpaceBeforeFirstArg:
|
|
509 |
Exclude:
|
|
510 |
- 'test/helpers/issues_helper_test.rb'
|
|
511 |
- 'test/helpers/search_helper_test.rb'
|
|
512 |
- 'test/unit/lib/redmine/menu_manager_test.rb'
|
|
513 |
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
|
514 |
|
|
515 |
# Offense count: 9
|
|
516 |
# Cop supports --auto-correct.
|
|
517 |
Layout/SpaceBeforeSemicolon:
|
|
518 |
Exclude:
|
|
519 |
- 'app/models/issue_query.rb'
|
|
520 |
- 'app/models/user_preference.rb'
|
|
521 |
- 'config/initializers/10-patches.rb'
|
|
522 |
|
|
523 |
# Offense count: 12
|
|
524 |
# Cop supports --auto-correct.
|
|
525 |
# Configuration parameters: EnforcedStyle.
|
|
526 |
# SupportedStyles: require_no_space, require_space
|
|
527 |
Layout/SpaceInLambdaLiteral:
|
|
528 |
Exclude:
|
|
529 |
- 'app/helpers/application_helper.rb'
|
|
530 |
|
|
531 |
# Offense count: 47
|
|
532 |
# Cop supports --auto-correct.
|
|
533 |
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
534 |
# SupportedStyles: space, no_space, compact
|
|
535 |
# SupportedStylesForEmptyBrackets: space, no_space
|
|
536 |
Layout/SpaceInsideArrayLiteralBrackets:
|
|
537 |
Exclude:
|
|
538 |
- 'app/controllers/projects_controller.rb'
|
|
539 |
- 'app/helpers/timelog_helper.rb'
|
|
540 |
- 'app/models/query.rb'
|
|
541 |
- 'lib/diff.rb'
|
|
542 |
- 'lib/redmine/i18n.rb'
|
|
543 |
- 'test/mocks/open_id_authentication_mock.rb'
|
|
544 |
- 'test/unit/mailer_localisation_test.rb'
|
|
545 |
- 'test/unit/mailer_test.rb'
|
|
546 |
- 'test/unit/search_test.rb'
|
|
547 |
|
|
548 |
# Offense count: 1847
|
|
549 |
# Cop supports --auto-correct.
|
|
550 |
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
551 |
# SupportedStyles: space, no_space
|
|
552 |
# SupportedStylesForEmptyBraces: space, no_space
|
|
553 |
Layout/SpaceInsideBlockBraces:
|
|
554 |
Enabled: false
|
|
555 |
|
|
556 |
# Offense count: 3689
|
|
557 |
# Cop supports --auto-correct.
|
|
558 |
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
559 |
# SupportedStyles: space, no_space, compact
|
|
560 |
# SupportedStylesForEmptyBraces: space, no_space
|
|
561 |
Layout/SpaceInsideHashLiteralBraces:
|
|
562 |
Enabled: false
|
|
563 |
|
|
564 |
# Offense count: 408
|
|
565 |
# Cop supports --auto-correct.
|
|
566 |
# Configuration parameters: EnforcedStyle.
|
|
567 |
# SupportedStyles: space, no_space
|
|
568 |
Layout/SpaceInsideParens:
|
|
569 |
Enabled: false
|
|
570 |
|
|
571 |
# Offense count: 2
|
|
572 |
# Cop supports --auto-correct.
|
|
573 |
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
574 |
Exclude:
|
|
575 |
- 'app/models/project.rb'
|
|
576 |
|
|
577 |
# Offense count: 1
|
|
578 |
# Cop supports --auto-correct.
|
|
579 |
Layout/SpaceInsideRangeLiteral:
|
|
580 |
Exclude:
|
|
581 |
- 'app/models/repository/cvs.rb'
|
|
582 |
|
|
583 |
# Offense count: 27
|
|
584 |
# Cop supports --auto-correct.
|
|
585 |
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
586 |
# SupportedStyles: space, no_space
|
|
587 |
# SupportedStylesForEmptyBrackets: space, no_space
|
|
588 |
Layout/SpaceInsideReferenceBrackets:
|
|
589 |
Exclude:
|
|
590 |
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
591 |
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
|
592 |
|
|
593 |
# Offense count: 112
|
|
594 |
# Cop supports --auto-correct.
|
|
595 |
# Configuration parameters: EnforcedStyle.
|
|
596 |
# SupportedStyles: space, no_space
|
|
597 |
Layout/SpaceInsideStringInterpolation:
|
|
598 |
Exclude:
|
|
599 |
- 'app/helpers/application_helper.rb'
|
|
600 |
- 'app/helpers/issues_helper.rb'
|
|
601 |
- 'app/helpers/workflows_helper.rb'
|
|
602 |
- 'app/models/issue_query.rb'
|
|
603 |
- 'app/models/mail_handler.rb'
|
|
604 |
- 'lib/redmine/core_ext/string/inflections.rb'
|
|
605 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
606 |
- 'test/functional/issues_controller_test.rb'
|
|
607 |
- 'test/integration/admin_test.rb'
|
|
608 |
|
|
609 |
# Offense count: 6
|
|
610 |
# Cop supports --auto-correct.
|
|
611 |
# Configuration parameters: EnforcedStyle.
|
|
612 |
# SupportedStyles: final_newline, final_blank_line
|
|
613 |
Layout/TrailingBlankLines:
|
|
614 |
Exclude:
|
|
615 |
- 'app/models/issue_priority_custom_field.rb'
|
|
616 |
- 'app/models/time_entry_custom_field.rb'
|
|
617 |
- 'app/models/user_custom_field.rb'
|
|
618 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
619 |
- 'test/integration/wiki_test.rb'
|
|
620 |
- 'test/unit/lib/redmine/hook_test.rb'
|
|
621 |
|
|
622 |
# Offense count: 2
|
|
623 |
# Cop supports --auto-correct.
|
|
624 |
# Configuration parameters: AllowInHeredoc.
|
|
625 |
Layout/TrailingWhitespace:
|
|
626 |
Exclude:
|
|
627 |
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
|
628 |
|
|
629 |
# Offense count: 124
|
|
630 |
Lint/AmbiguousBlockAssociation:
|
|
631 |
Enabled: false
|
|
632 |
|
|
633 |
# Offense count: 7
|
|
634 |
Lint/AmbiguousOperator:
|
|
635 |
Exclude:
|
|
636 |
- 'app/controllers/application_controller.rb'
|
|
637 |
- 'app/helpers/application_helper.rb'
|
|
638 |
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
|
639 |
- 'test/unit/custom_field_test.rb'
|
|
640 |
- 'test/unit/member_test.rb'
|
|
641 |
|
|
642 |
# Offense count: 145
|
|
643 |
Lint/AmbiguousRegexpLiteral:
|
|
644 |
Enabled: false
|
|
645 |
|
|
646 |
# Offense count: 135
|
|
647 |
# Configuration parameters: AllowSafeAssignment.
|
|
648 |
Lint/AssignmentInCondition:
|
|
649 |
Enabled: false
|
|
650 |
|
|
651 |
# Offense count: 19
|
|
652 |
# Cop supports --auto-correct.
|
|
653 |
Lint/DeprecatedClassMethods:
|
|
654 |
Exclude:
|
|
655 |
- 'Gemfile'
|
|
656 |
- 'app/models/import.rb'
|
|
657 |
- 'config/application.rb'
|
|
658 |
- 'config/boot.rb'
|
|
659 |
- 'config/routes.rb'
|
|
660 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
661 |
- 'lib/redmine/thumbnail.rb'
|
|
662 |
- 'lib/redmine/utils.rb'
|
|
663 |
- 'test/functional/issues_controller_test.rb'
|
|
664 |
- 'test/unit/attachment_test.rb'
|
|
665 |
- 'test/unit/issue_import_test.rb'
|
|
666 |
|
|
667 |
# Offense count: 7
|
|
668 |
Lint/DuplicateMethods:
|
|
669 |
Exclude:
|
|
670 |
- 'app/models/custom_field_value.rb'
|
|
671 |
- 'app/models/issue.rb'
|
|
672 |
- 'app/models/query.rb'
|
|
673 |
- 'app/models/wiki_page.rb'
|
|
674 |
- 'test/functional/issues_controller_test.rb'
|
|
675 |
- 'test/functional/projects_controller_test.rb'
|
|
676 |
|
|
677 |
# Offense count: 2
|
|
678 |
Lint/EmptyWhen:
|
|
679 |
Exclude:
|
|
680 |
- 'app/controllers/issues_controller.rb'
|
|
681 |
- 'app/controllers/wiki_controller.rb'
|
|
682 |
|
|
683 |
# Offense count: 19
|
|
684 |
# Configuration parameters: AllowComments.
|
|
685 |
Lint/HandleExceptions:
|
|
686 |
Exclude:
|
|
687 |
- 'app/controllers/activities_controller.rb'
|
|
688 |
- 'app/controllers/issues_controller.rb'
|
|
689 |
- 'app/helpers/versions_helper.rb'
|
|
690 |
- 'app/models/attachment.rb'
|
|
691 |
- 'app/models/import.rb'
|
|
692 |
- 'app/models/user.rb'
|
|
693 |
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
|
694 |
- 'lib/redmine.rb'
|
|
695 |
- 'lib/redmine/codeset_util.rb'
|
|
696 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
697 |
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
|
698 |
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
699 |
- 'lib/redmine/subclass_factory.rb'
|
|
700 |
- 'lib/redmine/version.rb'
|
|
701 |
|
|
702 |
# Offense count: 23
|
|
703 |
Lint/IneffectiveAccessModifier:
|
|
704 |
Exclude:
|
|
705 |
- 'app/models/attachment.rb'
|
|
706 |
- 'app/models/auth_source_ldap.rb'
|
|
707 |
- 'app/models/issue.rb'
|
|
708 |
- 'app/models/mail_handler.rb'
|
|
709 |
- 'app/models/mailer.rb'
|
|
710 |
- 'app/models/role.rb'
|
|
711 |
- 'app/models/setting.rb'
|
|
712 |
- 'app/models/user.rb'
|
|
713 |
- 'app/models/watcher.rb'
|
|
714 |
- 'lib/redmine/helpers/gantt.rb'
|
|
715 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
716 |
- 'lib/redmine/themes.rb'
|
|
717 |
|
|
718 |
# Offense count: 9
|
|
719 |
Lint/InterpolationCheck:
|
|
720 |
Exclude:
|
|
721 |
- 'app/models/user.rb'
|
|
722 |
|
|
723 |
# Offense count: 1
|
|
724 |
Lint/Loop:
|
|
725 |
Exclude:
|
|
726 |
- 'lib/redmine/helpers/gantt.rb'
|
|
727 |
|
|
728 |
# Offense count: 1
|
|
729 |
Lint/NestedMethodDefinition:
|
|
730 |
Exclude:
|
|
731 |
- 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
|
|
732 |
|
|
733 |
# Offense count: 23
|
|
734 |
Lint/ParenthesesAsGroupedExpression:
|
|
735 |
Exclude:
|
|
736 |
- 'lib/redmine/field_format.rb'
|
|
737 |
- 'test/functional/account_controller_test.rb'
|
|
738 |
- 'test/functional/email_addresses_controller_test.rb'
|
|
739 |
- 'test/functional/my_controller_test.rb'
|
|
740 |
- 'test/functional/settings_controller_test.rb'
|
|
741 |
- 'test/functional/users_controller_test.rb'
|
|
742 |
- 'test/helpers/application_helper_test.rb'
|
|
743 |
- 'test/unit/attachment_test.rb'
|
|
744 |
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
|
745 |
|
|
746 |
# Offense count: 1
|
|
747 |
# Cop supports --auto-correct.
|
|
748 |
Lint/ScriptPermission:
|
|
749 |
Exclude:
|
|
750 |
- 'Rakefile'
|
|
751 |
|
|
752 |
# Offense count: 52
|
|
753 |
Lint/ShadowingOuterLocalVariable:
|
|
754 |
Enabled: false
|
|
755 |
|
|
756 |
# Offense count: 4
|
|
757 |
# Cop supports --auto-correct.
|
|
758 |
Lint/StringConversionInInterpolation:
|
|
759 |
Exclude:
|
|
760 |
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
|
761 |
- 'test/functional/repositories_filesystem_controller_test.rb'
|
|
762 |
- 'test/functional/repositories_git_controller_test.rb'
|
|
763 |
- 'test/functional/repositories_mercurial_controller_test.rb'
|
|
764 |
|
|
765 |
# Offense count: 1
|
|
766 |
# Configuration parameters: AllowKeywordBlockArguments.
|
|
767 |
Lint/UnderscorePrefixedVariableName:
|
|
768 |
Exclude:
|
|
769 |
- 'lib/redmine/i18n.rb'
|
|
770 |
|
|
771 |
# Offense count: 1
|
|
772 |
# Cop supports --auto-correct.
|
|
773 |
Lint/UnifiedInteger:
|
|
774 |
Exclude:
|
|
775 |
- 'test/unit/query_test.rb'
|
|
776 |
|
|
777 |
# Offense count: 1
|
|
778 |
# Cop supports --auto-correct.
|
|
779 |
Lint/UnneededRequireStatement:
|
|
780 |
Exclude:
|
|
781 |
- 'app/models/wiki_page.rb'
|
|
782 |
|
|
783 |
# Offense count: 95
|
|
784 |
# Cop supports --auto-correct.
|
|
785 |
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
786 |
Lint/UnusedBlockArgument:
|
|
787 |
Enabled: false
|
|
788 |
|
|
789 |
# Offense count: 214
|
|
790 |
# Cop supports --auto-correct.
|
|
791 |
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
|
792 |
Lint/UnusedMethodArgument:
|
|
793 |
Enabled: false
|
|
794 |
|
|
795 |
# Offense count: 9
|
|
796 |
Lint/UriEscapeUnescape:
|
|
797 |
Exclude:
|
|
798 |
- 'lib/redmine/field_format.rb'
|
|
799 |
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
800 |
- 'test/functional/wiki_controller_test.rb'
|
|
801 |
|
|
802 |
# Offense count: 3
|
|
803 |
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
|
804 |
Lint/UselessAccessModifier:
|
|
805 |
Exclude:
|
|
806 |
- 'app/models/changeset.rb'
|
|
807 |
- 'app/models/watcher.rb'
|
|
808 |
- 'lib/redmine/themes.rb'
|
|
809 |
|
|
810 |
# Offense count: 177
|
|
811 |
Lint/UselessAssignment:
|
|
812 |
Enabled: false
|
|
813 |
|
|
814 |
# Offense count: 1
|
|
815 |
Lint/UselessSetterCall:
|
|
816 |
Exclude:
|
|
817 |
- 'test/unit/issue_test.rb'
|
|
818 |
|
|
819 |
# Offense count: 5
|
|
820 |
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
821 |
Lint/Void:
|
|
822 |
Exclude:
|
|
823 |
- 'app/models/query.rb'
|
|
824 |
- 'app/models/time_entry.rb'
|
|
825 |
- 'app/models/wiki_content_version.rb'
|
|
826 |
- 'lib/redmine/unified_diff.rb'
|
|
827 |
- 'test/functional/project_enumerations_controller_test.rb'
|
|
828 |
|
|
829 |
# Offense count: 1435
|
|
830 |
Metrics/AbcSize:
|
|
831 |
Max: 343
|
|
832 |
|
|
833 |
# Offense count: 50
|
|
834 |
# Configuration parameters: CountComments, ExcludedMethods.
|
|
835 |
# ExcludedMethods: refine
|
|
836 |
Metrics/BlockLength:
|
|
837 |
Max: 575
|
|
838 |
|
|
839 |
# Offense count: 55
|
|
840 |
# Configuration parameters: CountBlocks.
|
|
841 |
Metrics/BlockNesting:
|
|
842 |
Max: 8
|
|
843 |
|
|
844 |
# Offense count: 190
|
|
845 |
# Configuration parameters: CountComments.
|
|
846 |
Metrics/ClassLength:
|
|
847 |
Max: 5884
|
|
848 |
|
|
849 |
# Offense count: 255
|
|
850 |
Metrics/CyclomaticComplexity:
|
|
851 |
Max: 72
|
|
852 |
|
|
853 |
# Offense count: 1867
|
|
854 |
# Configuration parameters: CountComments, ExcludedMethods.
|
|
855 |
Metrics/MethodLength:
|
|
856 |
Max: 232
|
|
857 |
|
|
858 |
# Offense count: 15
|
|
859 |
# Configuration parameters: CountComments.
|
|
860 |
Metrics/ModuleLength:
|
|
861 |
Max: 1271
|
|
862 |
|
|
863 |
# Offense count: 19
|
|
864 |
# Configuration parameters: CountKeywordArgs.
|
|
865 |
Metrics/ParameterLists:
|
|
866 |
Max: 9
|
|
867 |
|
|
868 |
# Offense count: 225
|
|
869 |
Metrics/PerceivedComplexity:
|
|
870 |
Max: 67
|
|
871 |
|
|
872 |
# Offense count: 9
|
|
873 |
Naming/AccessorMethodName:
|
|
874 |
Exclude:
|
|
875 |
- 'app/controllers/account_controller.rb'
|
|
876 |
- 'app/controllers/application_controller.rb'
|
|
877 |
- 'app/models/enumeration.rb'
|
|
878 |
- 'app/models/issue.rb'
|
|
879 |
- 'app/models/issue_relation.rb'
|
|
880 |
- 'app/models/mail_handler.rb'
|
|
881 |
- 'app/models/project.rb'
|
|
882 |
- 'app/models/setting.rb'
|
|
883 |
- 'lib/redmine/i18n.rb'
|
|
884 |
|
|
885 |
# Offense count: 16
|
|
886 |
Naming/BinaryOperatorParameterName:
|
|
887 |
Exclude:
|
|
888 |
- 'app/models/custom_field.rb'
|
|
889 |
- 'app/models/enumeration.rb'
|
|
890 |
- 'app/models/issue.rb'
|
|
891 |
- 'app/models/issue_category.rb'
|
|
892 |
- 'app/models/issue_relation.rb'
|
|
893 |
- 'app/models/issue_status.rb'
|
|
894 |
- 'app/models/member.rb'
|
|
895 |
- 'app/models/principal.rb'
|
|
896 |
- 'app/models/project.rb'
|
|
897 |
- 'app/models/repository.rb'
|
|
898 |
- 'app/models/role.rb'
|
|
899 |
- 'app/models/tracker.rb'
|
|
900 |
- 'app/models/version.rb'
|
|
901 |
- 'lib/redmine/plugin.rb'
|
|
902 |
- 'lib/redmine/themes.rb'
|
|
903 |
|
|
904 |
# Offense count: 6
|
|
905 |
Naming/ConstantName:
|
|
906 |
Exclude:
|
|
907 |
- 'app/models/document_category.rb'
|
|
908 |
- 'app/models/issue_priority.rb'
|
|
909 |
- 'app/models/time_entry_activity.rb'
|
|
910 |
- 'lib/redmine/helpers/gantt.rb'
|
|
911 |
|
|
912 |
# Offense count: 4
|
|
913 |
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
914 |
# 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
|
|
915 |
Naming/FileName:
|
|
916 |
Exclude:
|
|
917 |
- 'config/initializers/00-core_plugins.rb'
|
|
918 |
- 'config/initializers/10-patches.rb'
|
|
919 |
- 'config/initializers/20-mime_types.rb'
|
|
920 |
- 'config/initializers/30-redmine.rb'
|
|
921 |
|
|
922 |
# Offense count: 10
|
|
923 |
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
924 |
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
925 |
Naming/MemoizedInstanceVariableName:
|
|
926 |
Exclude:
|
|
927 |
- 'app/controllers/email_addresses_controller.rb'
|
|
928 |
- 'app/controllers/users_controller.rb'
|
|
929 |
- 'app/controllers/workflows_controller.rb'
|
|
930 |
- 'app/models/issue.rb'
|
|
931 |
- 'app/models/project.rb'
|
|
932 |
- 'app/models/query.rb'
|
|
933 |
- 'app/models/role.rb'
|
|
934 |
- 'lib/redmine/field_format.rb'
|
|
935 |
- 'lib/redmine/helpers/calendar.rb'
|
|
936 |
- 'lib/redmine/search.rb'
|
|
937 |
|
|
938 |
# Offense count: 16
|
|
939 |
# Configuration parameters: EnforcedStyle.
|
|
940 |
# SupportedStyles: snake_case, camelCase
|
|
941 |
Naming/MethodName:
|
|
942 |
Exclude:
|
|
943 |
- 'lib/redmine/export/pdf.rb'
|
|
944 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
945 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
946 |
- 'test/helpers/application_helper_test.rb'
|
|
947 |
|
|
948 |
# Offense count: 30
|
|
949 |
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
|
950 |
# NamePrefix: is_, has_, have_
|
|
951 |
# NamePrefixBlacklist: is_, has_, have_
|
|
952 |
# NameWhitelist: is_a?
|
|
953 |
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
954 |
Naming/PredicateName:
|
|
955 |
Exclude:
|
|
956 |
- 'spec/**/*'
|
|
957 |
- 'app/controllers/repositories_controller.rb'
|
|
958 |
- 'app/models/attachment.rb'
|
|
959 |
- 'app/models/enumeration.rb'
|
|
960 |
- 'app/models/member.rb'
|
|
961 |
- 'app/models/query.rb'
|
|
962 |
- 'app/models/repository/mercurial.rb'
|
|
963 |
- 'app/models/role.rb'
|
|
964 |
- 'app/models/user.rb'
|
|
965 |
- 'app/models/wiki_page.rb'
|
|
966 |
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
|
967 |
- 'lib/redmine/mime_type.rb'
|
|
968 |
- 'lib/redmine/nested_set/traversing.rb'
|
|
969 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
970 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
971 |
|
|
972 |
# Offense count: 4
|
|
973 |
# Cop supports --auto-correct.
|
|
974 |
# Configuration parameters: PreferredName.
|
|
975 |
Naming/RescuedExceptionsVariableName:
|
|
976 |
Exclude:
|
|
977 |
- 'app/models/user.rb'
|
|
978 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
979 |
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
980 |
|
|
981 |
# Offense count: 60
|
|
982 |
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
983 |
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
|
984 |
Naming/UncommunicativeMethodParamName:
|
|
985 |
Enabled: false
|
|
986 |
|
|
987 |
# Offense count: 8
|
|
988 |
# Configuration parameters: EnforcedStyle.
|
|
989 |
# SupportedStyles: snake_case, camelCase
|
|
990 |
Naming/VariableName:
|
|
991 |
Exclude:
|
|
992 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
993 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
994 |
|
|
995 |
# Offense count: 30
|
|
996 |
# Configuration parameters: EnforcedStyle.
|
|
997 |
# SupportedStyles: snake_case, normalcase, non_integer
|
|
998 |
Naming/VariableNumber:
|
|
999 |
Exclude:
|
|
1000 |
- 'test/functional/versions_controller_test.rb'
|
|
1001 |
- 'test/helpers/application_helper_test.rb'
|
|
1002 |
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
|
1003 |
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
|
|
1004 |
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
|
1005 |
- 'test/unit/project_test.rb'
|
|
1006 |
|
|
1007 |
# Offense count: 16
|
|
1008 |
# Cop supports --auto-correct.
|
|
1009 |
Rails/ActiveRecordAliases:
|
|
1010 |
Exclude:
|
|
1011 |
- 'app/controllers/enumerations_controller.rb'
|
|
1012 |
- 'app/models/project.rb'
|
|
1013 |
- 'test/functional/documents_controller_test.rb'
|
|
1014 |
- 'test/functional/journals_controller_test.rb'
|
|
1015 |
- 'test/functional/search_controller_test.rb'
|
|
1016 |
- 'test/unit/document_category_test.rb'
|
|
1017 |
- 'test/unit/document_test.rb'
|
|
1018 |
- 'test/unit/enumeration_test.rb'
|
|
1019 |
- 'test/unit/issue_subtasking_test.rb'
|
|
1020 |
- 'test/unit/message_test.rb'
|
|
1021 |
|
|
1022 |
# Offense count: 4
|
|
1023 |
# Configuration parameters: Include.
|
|
1024 |
# Include: app/models/**/*.rb
|
|
1025 |
Rails/ActiveRecordOverride:
|
|
1026 |
Exclude:
|
|
1027 |
- 'app/models/email_address.rb'
|
|
1028 |
- 'app/models/issue.rb'
|
|
1029 |
- 'app/models/journal.rb'
|
|
1030 |
- 'app/models/member.rb'
|
|
1031 |
|
|
1032 |
# Offense count: 64
|
|
1033 |
# Cop supports --auto-correct.
|
|
1034 |
Rails/ApplicationRecord:
|
|
1035 |
Enabled: false
|
|
1036 |
|
|
1037 |
# Offense count: 487
|
|
1038 |
# Cop supports --auto-correct.
|
|
1039 |
# Configuration parameters: Include.
|
|
1040 |
# Include: **/test/**/*
|
|
1041 |
Rails/AssertNot:
|
|
1042 |
Enabled: false
|
|
1043 |
|
|
1044 |
# Offense count: 14
|
|
1045 |
# Cop supports --auto-correct.
|
|
1046 |
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
|
|
1047 |
Rails/Blank:
|
|
1048 |
Exclude:
|
|
1049 |
- 'app/controllers/application_controller.rb'
|
|
1050 |
- 'app/controllers/context_menus_controller.rb'
|
|
1051 |
- 'app/controllers/repositories_controller.rb'
|
|
1052 |
- 'app/controllers/watchers_controller.rb'
|
|
1053 |
- 'app/helpers/issues_helper.rb'
|
|
1054 |
- 'app/helpers/queries_helper.rb'
|
|
1055 |
- 'app/helpers/repositories_helper.rb'
|
|
1056 |
- 'app/models/mailer.rb'
|
|
1057 |
- 'app/models/query.rb'
|
|
1058 |
- 'app/models/repository/git.rb'
|
|
1059 |
- 'app/models/role.rb'
|
|
1060 |
- 'lib/redmine/field_format.rb'
|
|
1061 |
- 'lib/redmine/wiki_formatting/macros.rb'
|
|
1062 |
|
|
1063 |
# Offense count: 57
|
|
1064 |
# Configuration parameters: Include.
|
|
1065 |
# Include: db/migrate/*.rb
|
|
1066 |
Rails/CreateTableWithTimestamps:
|
|
1067 |
Enabled: false
|
|
1068 |
|
|
1069 |
# Offense count: 71
|
|
1070 |
# Configuration parameters: EnforcedStyle.
|
|
1071 |
# SupportedStyles: strict, flexible
|
|
1072 |
Rails/Date:
|
|
1073 |
Enabled: false
|
|
1074 |
|
|
1075 |
# Offense count: 22
|
|
1076 |
# Cop supports --auto-correct.
|
|
1077 |
# Configuration parameters: EnforceForPrefixed.
|
|
1078 |
Rails/Delegate:
|
|
1079 |
Exclude:
|
|
1080 |
- 'app/models/changeset.rb'
|
|
1081 |
- 'app/models/custom_field.rb'
|
|
1082 |
- 'app/models/custom_field_enumeration.rb'
|
|
1083 |
- 'app/models/custom_field_value.rb'
|
|
1084 |
- 'app/models/custom_value.rb'
|
|
1085 |
- 'app/models/group.rb'
|
|
1086 |
- 'app/models/message.rb'
|
|
1087 |
- 'app/models/repository.rb'
|
|
1088 |
- 'app/models/repository/git.rb'
|
|
1089 |
- 'app/models/time_entry_activity.rb'
|
|
1090 |
- 'app/models/wiki_content.rb'
|
|
1091 |
- 'app/models/wiki_content_version.rb'
|
|
1092 |
- 'lib/redmine/menu_manager.rb'
|
|
1093 |
|
|
1094 |
# Offense count: 574
|
|
1095 |
# Cop supports --auto-correct.
|
|
1096 |
# Configuration parameters: Whitelist.
|
|
1097 |
# Whitelist: find_by_sql
|
|
1098 |
Rails/DynamicFindBy:
|
|
1099 |
Enabled: false
|
|
1100 |
|
|
1101 |
# Offense count: 3
|
|
1102 |
# Configuration parameters: Include.
|
|
1103 |
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
|
|
1104 |
Rails/Exit:
|
|
1105 |
Exclude:
|
|
1106 |
- 'lib/**/*.rake'
|
|
1107 |
- 'config/environment.rb'
|
|
1108 |
- 'config/initializers/10-patches.rb'
|
|
1109 |
- 'config/routes.rb'
|
|
1110 |
|
|
1111 |
# Offense count: 39
|
|
1112 |
# Configuration parameters: EnforcedStyle.
|
|
1113 |
# SupportedStyles: slashes, arguments
|
|
1114 |
Rails/FilePath:
|
|
1115 |
Enabled: false
|
|
1116 |
|
|
1117 |
# Offense count: 17
|
|
1118 |
# Cop supports --auto-correct.
|
|
1119 |
# Configuration parameters: Include.
|
|
1120 |
# Include: app/models/**/*.rb
|
|
1121 |
Rails/FindBy:
|
|
1122 |
Exclude:
|
|
1123 |
- 'app/models/attachment.rb'
|
|
1124 |
- 'app/models/enumeration.rb'
|
|
1125 |
- 'app/models/issue_import.rb'
|
|
1126 |
- 'app/models/repository.rb'
|
|
1127 |
- 'app/models/repository/cvs.rb'
|
|
1128 |
- 'app/models/repository/git.rb'
|
|
1129 |
- 'app/models/repository/mercurial.rb'
|
|
1130 |
- 'app/models/time_entry_query.rb'
|
|
1131 |
- 'app/models/user.rb'
|
|
1132 |
- 'app/models/wiki.rb'
|
|
1133 |
- 'app/models/wiki_content_version.rb'
|
|
1134 |
|
|
1135 |
# Offense count: 13
|
|
1136 |
# Cop supports --auto-correct.
|
|
1137 |
# Configuration parameters: Include.
|
|
1138 |
# Include: app/models/**/*.rb
|
|
1139 |
Rails/FindEach:
|
|
1140 |
Exclude:
|
|
1141 |
- 'app/models/auth_source.rb'
|
|
1142 |
- 'app/models/group.rb'
|
|
1143 |
- 'app/models/issue.rb'
|
|
1144 |
- 'app/models/issue_status.rb'
|
|
1145 |
- 'app/models/project.rb'
|
|
1146 |
- 'app/models/query.rb'
|
|
1147 |
- 'app/models/repository.rb'
|
|
1148 |
- 'app/models/setting.rb'
|
|
1149 |
- 'app/models/watcher.rb'
|
|
1150 |
- 'app/models/wiki_page.rb'
|
|
1151 |
|
|
1152 |
# Offense count: 16
|
|
1153 |
# Configuration parameters: Include.
|
|
1154 |
# Include: app/models/**/*.rb
|
|
1155 |
Rails/HasAndBelongsToMany:
|
|
1156 |
Exclude:
|
|
1157 |
- 'app/models/changeset.rb'
|
|
1158 |
- 'app/models/custom_field.rb'
|
|
1159 |
- 'app/models/group.rb'
|
|
1160 |
- 'app/models/issue.rb'
|
|
1161 |
- 'app/models/issue_custom_field.rb'
|
|
1162 |
- 'app/models/project.rb'
|
|
1163 |
- 'app/models/query.rb'
|
|
1164 |
- 'app/models/role.rb'
|
|
1165 |
- 'app/models/tracker.rb'
|
|
1166 |
- 'app/models/user.rb'
|
|
1167 |
|
|
1168 |
# Offense count: 10
|
|
1169 |
# Configuration parameters: Include.
|
|
1170 |
# Include: app/models/**/*.rb
|
|
1171 |
Rails/HasManyOrHasOneDependent:
|
|
1172 |
Exclude:
|
|
1173 |
- 'app/models/auth_source.rb'
|
|
1174 |
- 'app/models/document_category.rb'
|
|
1175 |
- 'app/models/issue_priority.rb'
|
|
1176 |
- 'app/models/issue_status.rb'
|
|
1177 |
- 'app/models/project.rb'
|
|
1178 |
- 'app/models/time_entry_activity.rb'
|
|
1179 |
- 'app/models/tracker.rb'
|
|
1180 |
- 'app/models/wiki.rb'
|
|
1181 |
|
|
1182 |
# Offense count: 6
|
|
1183 |
# Cop supports --auto-correct.
|
|
1184 |
# Configuration parameters: EnforcedStyle.
|
|
1185 |
# SupportedStyles: numeric, symbolic
|
|
1186 |
Rails/HttpStatus:
|
|
1187 |
Exclude:
|
|
1188 |
- 'app/controllers/mail_handler_controller.rb'
|
|
1189 |
- 'app/controllers/sys_controller.rb'
|
|
1190 |
- 'app/controllers/watchers_controller.rb'
|
|
1191 |
|
|
1192 |
# Offense count: 29
|
|
1193 |
# Configuration parameters: Include.
|
|
1194 |
# Include: app/models/**/*.rb
|
|
1195 |
Rails/InverseOf:
|
|
1196 |
Enabled: false
|
|
1197 |
|
|
1198 |
# Offense count: 2
|
|
1199 |
# Configuration parameters: Include.
|
|
1200 |
# Include: app/controllers/**/*.rb
|
|
1201 |
Rails/LexicallyScopedActionFilter:
|
|
1202 |
Exclude:
|
|
1203 |
- 'app/controllers/projects_controller.rb'
|
|
1204 |
|
|
1205 |
# Offense count: 1
|
|
1206 |
# Cop supports --auto-correct.
|
|
1207 |
Rails/LinkToBlank:
|
|
1208 |
Exclude:
|
|
1209 |
- 'app/helpers/avatars_helper.rb'
|
|
1210 |
|
|
1211 |
# Offense count: 9
|
|
1212 |
# Configuration parameters: Include.
|
|
1213 |
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
|
1214 |
Rails/Output:
|
|
1215 |
Exclude:
|
|
1216 |
- 'app/models/mail_handler.rb'
|
|
1217 |
- 'config/routes.rb'
|
|
1218 |
- 'lib/redmine/unified_diff.rb'
|
|
1219 |
|
|
1220 |
# Offense count: 106
|
|
1221 |
Rails/OutputSafety:
|
|
1222 |
Enabled: false
|
|
1223 |
|
|
1224 |
# Offense count: 8
|
|
1225 |
# Cop supports --auto-correct.
|
|
1226 |
Rails/PluralizationGrammar:
|
|
1227 |
Exclude:
|
|
1228 |
- 'lib/redmine/helpers/time_report.rb'
|
|
1229 |
- 'test/functional/gantts_controller_test.rb'
|
|
1230 |
- 'test/unit/mailer_test.rb'
|
|
1231 |
- 'test/unit/query_test.rb'
|
|
1232 |
|
|
1233 |
# Offense count: 16
|
|
1234 |
# Cop supports --auto-correct.
|
|
1235 |
Rails/Presence:
|
|
1236 |
Exclude:
|
|
1237 |
- 'app/controllers/activities_controller.rb'
|
|
1238 |
- 'app/helpers/application_helper.rb'
|
|
1239 |
- 'app/models/repository.rb'
|
|
1240 |
- 'config/initializers/10-patches.rb'
|
|
1241 |
- 'config/initializers/30-redmine.rb'
|
|
1242 |
- 'db/migrate/20110228000100_copy_repositories_log_encoding.rb'
|
|
1243 |
- 'lib/redmine/codeset_util.rb'
|
|
1244 |
- 'lib/redmine/i18n.rb'
|
|
1245 |
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
|
1246 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
1247 |
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
|
1248 |
- 'lib/redmine/scm/adapters/git_adapter.rb'
|
|
1249 |
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
|
|
1250 |
- 'lib/redmine/sort_criteria.rb'
|
|
1251 |
|
|
1252 |
# Offense count: 67
|
|
1253 |
# Cop supports --auto-correct.
|
|
1254 |
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
|
|
1255 |
Rails/Present:
|
|
1256 |
Enabled: false
|
|
1257 |
|
|
1258 |
# Offense count: 38
|
|
1259 |
# Cop supports --auto-correct.
|
|
1260 |
# Configuration parameters: Include.
|
|
1261 |
# Include: app/models/**/*.rb
|
|
1262 |
Rails/ReadWriteAttribute:
|
|
1263 |
Enabled: false
|
|
1264 |
|
|
1265 |
# Offense count: 2
|
|
1266 |
Rails/ReflectionClassName:
|
|
1267 |
Exclude:
|
|
1268 |
- 'lib/redmine/nested_set/issue_nested_set.rb'
|
|
1269 |
- 'lib/redmine/nested_set/project_nested_set.rb'
|
|
1270 |
|
|
1271 |
# Offense count: 11
|
|
1272 |
# Cop supports --auto-correct.
|
|
1273 |
# Configuration parameters: Include.
|
|
1274 |
# Include: **/test/**/*
|
|
1275 |
Rails/RefuteMethods:
|
|
1276 |
Exclude:
|
|
1277 |
- 'test/functional/projects_controller_test.rb'
|
|
1278 |
- 'test/functional/wiki_controller_test.rb'
|
|
1279 |
- 'test/integration/account_test.rb'
|
|
1280 |
- 'test/unit/attachment_test.rb'
|
|
1281 |
- 'test/unit/custom_field_test.rb'
|
|
1282 |
- 'test/unit/lib/redmine/project_jump_box_test.rb'
|
|
1283 |
- 'test/unit/mail_handler_test.rb'
|
|
1284 |
|
|
1285 |
# Offense count: 352
|
|
1286 |
# Configuration parameters: Blacklist, Whitelist.
|
|
1287 |
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
|
|
1288 |
Rails/SkipsModelValidations:
|
|
1289 |
Enabled: false
|
|
1290 |
|
|
1291 |
# Offense count: 103
|
|
1292 |
# Cop supports --auto-correct.
|
|
1293 |
# Configuration parameters: EnforcedStyle.
|
|
1294 |
# SupportedStyles: strict, flexible
|
|
1295 |
Rails/TimeZone:
|
|
1296 |
Enabled: false
|
|
1297 |
|
|
1298 |
# Offense count: 144
|
|
1299 |
# Cop supports --auto-correct.
|
|
1300 |
# Configuration parameters: Include.
|
|
1301 |
# Include: app/models/**/*.rb
|
|
1302 |
Rails/Validation:
|
|
1303 |
Enabled: false
|
|
1304 |
|
|
1305 |
# Offense count: 4
|
|
1306 |
Security/Eval:
|
|
1307 |
Exclude:
|
|
1308 |
- 'app/helpers/attachments_helper.rb'
|
|
1309 |
- 'app/models/user.rb'
|
|
1310 |
- 'config/initializers/00-core_plugins.rb'
|
|
1311 |
|
|
1312 |
# Offense count: 1
|
|
1313 |
Security/Open:
|
|
1314 |
Exclude:
|
|
1315 |
- 'app/models/version.rb'
|
|
1316 |
|
|
1317 |
# Offense count: 4
|
|
1318 |
# Cop supports --auto-correct.
|
|
1319 |
Security/YAMLLoad:
|
|
1320 |
Exclude:
|
|
1321 |
- 'Gemfile'
|
|
1322 |
- 'app/models/setting.rb'
|
|
1323 |
- 'lib/redmine/configuration.rb'
|
|
1324 |
|
|
1325 |
# Offense count: 52
|
|
1326 |
# Configuration parameters: EnforcedStyle.
|
|
1327 |
# SupportedStyles: inline, group
|
|
1328 |
Style/AccessModifierDeclarations:
|
|
1329 |
Enabled: false
|
|
1330 |
|
|
1331 |
# Offense count: 25
|
|
1332 |
# Cop supports --auto-correct.
|
|
1333 |
# Configuration parameters: EnforcedStyle.
|
|
1334 |
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
1335 |
Style/Alias:
|
|
1336 |
Enabled: false
|
|
1337 |
|
|
1338 |
# Offense count: 40
|
|
1339 |
# Cop supports --auto-correct.
|
|
1340 |
# Configuration parameters: EnforcedStyle.
|
|
1341 |
# SupportedStyles: always, conditionals
|
|
1342 |
Style/AndOr:
|
|
1343 |
Enabled: false
|
|
1344 |
|
|
1345 |
# Offense count: 3
|
|
1346 |
# Configuration parameters: AllowedChars.
|
|
1347 |
Style/AsciiComments:
|
|
1348 |
Exclude:
|
|
1349 |
- 'app/models/repository/git.rb'
|
|
1350 |
- 'lib/redmine/search.rb'
|
|
1351 |
- 'test/unit/mail_handler_test.rb'
|
|
1352 |
|
|
1353 |
# Offense count: 1
|
|
1354 |
# Cop supports --auto-correct.
|
|
1355 |
# Configuration parameters: EnforcedStyle.
|
|
1356 |
# SupportedStyles: percent_q, bare_percent
|
|
1357 |
Style/BarePercentLiterals:
|
|
1358 |
Exclude:
|
|
1359 |
- 'test/integration/api_test/api_test.rb'
|
|
1360 |
|
|
1361 |
# Offense count: 1
|
|
1362 |
# Cop supports --auto-correct.
|
|
1363 |
Style/BlockComments:
|
|
1364 |
Exclude:
|
|
1365 |
- 'lib/diff.rb'
|
|
1366 |
|
|
1367 |
# Offense count: 146
|
|
1368 |
# Cop supports --auto-correct.
|
|
1369 |
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
|
1370 |
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
1371 |
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
1372 |
# FunctionalMethods: let, let!, subject, watch
|
|
1373 |
# IgnoredMethods: lambda, proc, it
|
|
1374 |
Style/BlockDelimiters:
|
|
1375 |
Enabled: false
|
|
1376 |
|
|
1377 |
# Offense count: 209
|
|
1378 |
# Cop supports --auto-correct.
|
|
1379 |
# Configuration parameters: EnforcedStyle.
|
|
1380 |
# SupportedStyles: braces, no_braces, context_dependent
|
|
1381 |
Style/BracesAroundHashParameters:
|
|
1382 |
Enabled: false
|
|
1383 |
|
|
1384 |
# Offense count: 2
|
|
1385 |
# Cop supports --auto-correct.
|
|
1386 |
Style/CharacterLiteral:
|
|
1387 |
Exclude:
|
|
1388 |
- 'lib/redmine/wiki_formatting.rb'
|
|
1389 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
1390 |
|
|
1391 |
# Offense count: 78
|
|
1392 |
# Cop supports --auto-correct.
|
|
1393 |
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
1394 |
# SupportedStyles: nested, compact
|
|
1395 |
Style/ClassAndModuleChildren:
|
|
1396 |
Enabled: false
|
|
1397 |
|
|
1398 |
# Offense count: 2
|
|
1399 |
# Cop supports --auto-correct.
|
|
1400 |
# Configuration parameters: EnforcedStyle.
|
|
1401 |
# SupportedStyles: is_a?, kind_of?
|
|
1402 |
Style/ClassCheck:
|
|
1403 |
Exclude:
|
|
1404 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
1405 |
|
|
1406 |
# Offense count: 1
|
|
1407 |
# Cop supports --auto-correct.
|
|
1408 |
Style/ClassMethods:
|
|
1409 |
Exclude:
|
|
1410 |
- 'lib/diff.rb'
|
|
1411 |
|
|
1412 |
# Offense count: 48
|
|
1413 |
Style/ClassVars:
|
|
1414 |
Enabled: false
|
|
1415 |
|
|
1416 |
# Offense count: 34
|
|
1417 |
# Cop supports --auto-correct.
|
|
1418 |
Style/ColonMethodCall:
|
|
1419 |
Exclude:
|
|
1420 |
- 'Gemfile'
|
|
1421 |
- 'app/controllers/admin_controller.rb'
|
|
1422 |
- 'app/models/setting.rb'
|
|
1423 |
- 'lib/redmine/configuration.rb'
|
|
1424 |
- 'lib/redmine/export/pdf.rb'
|
|
1425 |
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
|
1426 |
- 'lib/redmine/wiki_formatting.rb'
|
|
1427 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
|
1428 |
- 'test/test_helper.rb'
|
|
1429 |
- 'test/unit/default_data_test.rb'
|
|
1430 |
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
|
1431 |
|
|
1432 |
# Offense count: 1
|
|
1433 |
# Cop supports --auto-correct.
|
|
1434 |
# Configuration parameters: Keywords.
|
|
1435 |
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
|
1436 |
Style/CommentAnnotation:
|
|
1437 |
Exclude:
|
|
1438 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
1439 |
|
|
1440 |
# Offense count: 1
|
|
1441 |
Style/CommentedKeyword:
|
|
1442 |
Exclude:
|
|
1443 |
- 'app/models/repository/cvs.rb'
|
|
1444 |
|
|
1445 |
# Offense count: 76
|
|
1446 |
# Cop supports --auto-correct.
|
|
1447 |
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
1448 |
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
1449 |
Style/ConditionalAssignment:
|
|
1450 |
Enabled: false
|
|
1451 |
|
|
1452 |
# Offense count: 3
|
|
1453 |
# Cop supports --auto-correct.
|
|
1454 |
Style/DefWithParentheses:
|
|
1455 |
Exclude:
|
|
1456 |
- 'app/helpers/sort_helper.rb'
|
|
1457 |
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
1458 |
- 'lib/redmine/unified_diff.rb'
|
|
1459 |
|