Project

General

Profile

Patch #31509 » 31509-v3.diff

Go MAEDA, 2019-06-18 17:05

View differences:

.rubocop.yml (作業コピー)
1
inherit_from: .rubocop_todo.yml
2

  
3
AllCops:
4
  TargetRubyVersion: 2.3
5
  TargetRailsVersion: 5.2
6

  
7
  Exclude:
8
    - '**/vendor/**/*'
9
    - '**/tmp/**/*'
10
    - '**/bin/**/*'
11
    - '**/plugins/**/*'
12
    - '**/extra/**/*'
13
    - '**/lib/generators/**/templates/*'
14
    - '**/lib/tasks/**/*'
15
    - '**/files/**/*'
16
    - '**/config/additional_environment.rb'
17

  
18
# Enable extensions
19

  
20
Rails:
21
  Enabled: true
22

  
23
# Rules for Redmine
24

  
25
Layout/SpaceBeforeBlockBraces:
26
  Enabled: false
27

  
28
Rails/BulkChangeTable:
29
  Exclude:
30
    - 'db/migrate/20120714122200_add_workflows_rule_fields.rb'
31
    - 'db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb'
32

  
33
Style/FrozenStringLiteralComment:
34
  Enabled: true
35
  EnforcedStyle: always
36
  Exclude:
37
    - 'db/**/*.rb'
38
    - 'Gemfile'
39
    - 'Rakefile'
40
    - 'config.ru'
41

  
42
Style/HashSyntax:
43
  Enabled: true
44
  EnforcedStyle: no_mixed_keys
.rubocop_todo.yml (作業コピー)
1
# This configuration was generated by
2
# `rubocop --auto-gen-config`
3
# on 2019-06-18 23:55:41 +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: 576
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: 19
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/integration/api_test/my_test.rb'
236
    - 'test/unit/changeset_test.rb'
237

  
238
# Offense count: 52
239
# Cop supports --auto-correct.
240
# Configuration parameters: EnforcedStyle.
241
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
242
Layout/EmptyLinesAroundClassBody:
243
  Enabled: false
244

  
245
# Offense count: 6
246
# Cop supports --auto-correct.
247
Layout/EmptyLinesAroundExceptionHandlingKeywords:
248
  Exclude:
249
    - 'app/controllers/activities_controller.rb'
250
    - 'app/controllers/imports_controller.rb'
251
    - 'app/controllers/wiki_controller.rb'
252
    - 'test/functional/settings_controller_test.rb'
253
    - 'test/integration/attachments_test.rb'
254

  
255
# Offense count: 20
256
# Cop supports --auto-correct.
257
Layout/EmptyLinesAroundMethodBody:
258
  Exclude:
259
    - 'app/models/query.rb'
260
    - 'db/migrate/001_setup.rb'
261
    - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
262
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
263
    - 'test/functional/journals_controller_test.rb'
264
    - 'test/functional/repositories_git_controller_test.rb'
265
    - 'test/functional/users_controller_test.rb'
266
    - 'test/integration/account_test.rb'
267
    - 'test/unit/attachment_test.rb'
268
    - 'test/unit/issue_test.rb'
269
    - 'test/unit/lib/redmine/menu_manager/mapper_test.rb'
270
    - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
271
    - 'test/unit/lib/redmine/unified_diff_test.rb'
272

  
273
# Offense count: 25
274
# Cop supports --auto-correct.
275
# Configuration parameters: EnforcedStyle.
276
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
277
Layout/EmptyLinesAroundModuleBody:
278
  Enabled: false
279

  
280
# Offense count: 24
281
# Cop supports --auto-correct.
282
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
283
# SupportedStylesAlignWith: keyword, variable, start_of_line
284
Layout/EndAlignment:
285
  Enabled: false
286

  
287
# Offense count: 107
288
# Cop supports --auto-correct.
289
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
290
Layout/ExtraSpacing:
291
  Enabled: false
292

  
293
# Offense count: 9
294
# Cop supports --auto-correct.
295
# Configuration parameters: IndentationWidth.
296
Layout/IndentAssignment:
297
  Exclude:
298
    - 'app/helpers/application_helper.rb'
299
    - 'app/helpers/issues_helper.rb'
300
    - 'app/helpers/repositories_helper.rb'
301
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
302
    - 'test/unit/lib/redmine/helpers/gantt_test.rb'
303

  
304
# Offense count: 201
305
# Cop supports --auto-correct.
306
# Configuration parameters: EnforcedStyle, IndentationWidth.
307
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
308
Layout/IndentFirstArgument:
309
  Enabled: false
310

  
311
# Offense count: 99
312
# Cop supports --auto-correct.
313
# Configuration parameters: EnforcedStyle, IndentationWidth.
314
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
315
Layout/IndentFirstArrayElement:
316
  Enabled: false
317

  
318
# Offense count: 2602
319
# Cop supports --auto-correct.
320
# Configuration parameters: EnforcedStyle, IndentationWidth.
321
# SupportedStyles: special_inside_parentheses, consistent, align_braces
322
Layout/IndentFirstHashElement:
323
  Enabled: false
324

  
325
# Offense count: 79
326
# Cop supports --auto-correct.
327
# Configuration parameters: EnforcedStyle.
328
# SupportedStyles: squiggly, active_support, powerpack, unindent
329
Layout/IndentHeredoc:
330
  Exclude:
331
    - 'test/functional/documents_controller_test.rb'
332
    - 'test/helpers/application_helper_test.rb'
333
    - 'test/integration/api_test/custom_fields_attribute_test.rb'
334
    - 'test/integration/api_test/files_test.rb'
335
    - 'test/integration/api_test/issues_test.rb'
336
    - 'test/integration/lib/redmine/hook_test.rb'
337
    - 'test/unit/lib/redmine/syntax_highlighting/rouge_test.rb'
338
    - 'test/unit/lib/redmine/unified_diff_test.rb'
339
    - 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
340
    - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
341
    - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
342
    - 'test/unit/lib/redmine/wiki_formatting_test.rb'
343
    - 'test/unit/setting_test.rb'
344

  
345
# Offense count: 38
346
# Cop supports --auto-correct.
347
# Configuration parameters: EnforcedStyle.
348
# SupportedStyles: normal, rails
349
Layout/IndentationConsistency:
350
  Exclude:
351
    - 'app/models/attachment.rb'
352
    - 'test/functional/issues_controller_test.rb'
353
    - 'test/functional/project_enumerations_controller_test.rb'
354
    - 'test/functional/repositories_git_controller_test.rb'
355
    - 'test/functional/repositories_mercurial_controller_test.rb'
356
    - 'test/helpers/application_helper_test.rb'
357
    - 'test/integration/api_test/custom_fields_attribute_test.rb'
358
    - 'test/integration/api_test/issues_test.rb'
359
    - 'test/mocks/open_id_authentication_mock.rb'
360
    - 'test/unit/repository_cvs_test.rb'
361

  
362
# Offense count: 287
363
# Cop supports --auto-correct.
364
# Configuration parameters: Width, IgnoredPatterns.
365
Layout/IndentationWidth:
366
  Enabled: false
367

  
368
# Offense count: 32
369
# Cop supports --auto-correct.
370
Layout/LeadingCommentSpace:
371
  Exclude:
372
    - 'app/controllers/repositories_controller.rb'
373
    - 'app/models/repository.rb'
374
    - 'lib/diff.rb'
375
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
376
    - 'lib/redmine/scm/adapters/git_adapter.rb'
377
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
378
    - 'test/integration/api_test/issues_test.rb'
379
    - 'test/integration/issues_test.rb'
380
    - 'test/unit/issue_test.rb'
381
    - 'test/unit/project_test.rb'
382
    - 'test/unit/query_test.rb'
383
    - 'test/unit/user_test.rb'
384

  
385
# Offense count: 9
386
# Cop supports --auto-correct.
387
# Configuration parameters: EnforcedStyle.
388
# SupportedStyles: symmetrical, new_line, same_line
389
Layout/MultilineArrayBraceLayout:
390
  Exclude:
391
    - 'app/helpers/projects_helper.rb'
392
    - 'app/helpers/settings_helper.rb'
393
    - 'app/helpers/users_helper.rb'
394
    - 'app/models/setting.rb'
395
    - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
396
    - 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
397
    - 'test/unit/repository_bazaar_test.rb'
398

  
399
# Offense count: 4
400
# Cop supports --auto-correct.
401
Layout/MultilineBlockLayout:
402
  Exclude:
403
    - 'app/controllers/auth_sources_controller.rb'
404
    - 'app/controllers/auto_completes_controller.rb'
405
    - 'app/models/issue.rb'
406
    - 'app/models/message.rb'
407

  
408
# Offense count: 77
409
# Cop supports --auto-correct.
410
# Configuration parameters: EnforcedStyle.
411
# SupportedStyles: symmetrical, new_line, same_line
412
Layout/MultilineHashBraceLayout:
413
  Enabled: false
414

  
415
# Offense count: 126
416
# Cop supports --auto-correct.
417
# Configuration parameters: EnforcedStyle.
418
# SupportedStyles: symmetrical, new_line, same_line
419
Layout/MultilineMethodCallBraceLayout:
420
  Enabled: false
421

  
422
# Offense count: 218
423
# Cop supports --auto-correct.
424
# Configuration parameters: EnforcedStyle, IndentationWidth.
425
# SupportedStyles: aligned, indented, indented_relative_to_receiver
426
Layout/MultilineMethodCallIndentation:
427
  Enabled: false
428

  
429
# Offense count: 185
430
# Cop supports --auto-correct.
431
# Configuration parameters: EnforcedStyle, IndentationWidth.
432
# SupportedStyles: aligned, indented
433
Layout/MultilineOperationIndentation:
434
  Enabled: false
435

  
436
# Offense count: 1
437
# Cop supports --auto-correct.
438
Layout/RescueEnsureAlignment:
439
  Exclude:
440
    - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
441

  
442
# Offense count: 4
443
# Cop supports --auto-correct.
444
Layout/SpaceAfterColon:
445
  Exclude:
446
    - 'test/functional/issues_controller_test.rb'
447
    - 'test/integration/wiki_test.rb'
448

  
449
# Offense count: 357
450
# Cop supports --auto-correct.
451
Layout/SpaceAfterComma:
452
  Enabled: false
453

  
454
# Offense count: 37
455
# Cop supports --auto-correct.
456
Layout/SpaceAfterNot:
457
  Enabled: false
458

  
459
# Offense count: 1
460
# Cop supports --auto-correct.
461
Layout/SpaceAfterSemicolon:
462
  Exclude:
463
    - 'app/models/mail_handler.rb'
464

  
465
# Offense count: 6
466
# Cop supports --auto-correct.
467
# Configuration parameters: EnforcedStyleInsidePipes.
468
# SupportedStylesInsidePipes: space, no_space
469
Layout/SpaceAroundBlockParameters:
470
  Exclude:
471
    - 'app/controllers/issues_controller.rb'
472
    - 'lib/redmine/plugin.rb'
473
    - 'test/unit/query_test.rb'
474

  
475
# Offense count: 654
476
# Cop supports --auto-correct.
477
# Configuration parameters: EnforcedStyle.
478
# SupportedStyles: space, no_space
479
Layout/SpaceAroundEqualsInParameterDefault:
480
  Enabled: false
481

  
482
# Offense count: 332
483
# Cop supports --auto-correct.
484
# Configuration parameters: AllowForAlignment.
485
Layout/SpaceAroundOperators:
486
  Enabled: false
487

  
488
# Offense count: 7
489
# Cop supports --auto-correct.
490
Layout/SpaceBeforeComma:
491
  Exclude:
492
    - 'lib/redmine/export/pdf.rb'
493
    - 'test/helpers/application_helper_test.rb'
494
    - 'test/mocks/open_id_authentication_mock.rb'
495
    - 'test/unit/lib/redmine/helpers/calendar_test.rb'
496
    - 'test/unit/time_entry_test.rb'
497

  
498
# Offense count: 5
499
# Cop supports --auto-correct.
500
# Configuration parameters: AllowForAlignment.
501
Layout/SpaceBeforeFirstArg:
502
  Exclude:
503
    - 'test/helpers/issues_helper_test.rb'
504
    - 'test/helpers/search_helper_test.rb'
505
    - 'test/unit/lib/redmine/menu_manager_test.rb'
506
    - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
507

  
508
# Offense count: 9
509
# Cop supports --auto-correct.
510
Layout/SpaceBeforeSemicolon:
511
  Exclude:
512
    - 'app/models/issue_query.rb'
513
    - 'app/models/user_preference.rb'
514
    - 'config/initializers/10-patches.rb'
515

  
516
# Offense count: 12
517
# Cop supports --auto-correct.
518
# Configuration parameters: EnforcedStyle.
519
# SupportedStyles: require_no_space, require_space
520
Layout/SpaceInLambdaLiteral:
521
  Exclude:
522
    - 'app/helpers/application_helper.rb'
523

  
524
# Offense count: 47
525
# Cop supports --auto-correct.
526
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
527
# SupportedStyles: space, no_space, compact
528
# SupportedStylesForEmptyBrackets: space, no_space
529
Layout/SpaceInsideArrayLiteralBrackets:
530
  Exclude:
531
    - 'app/controllers/projects_controller.rb'
532
    - 'app/helpers/timelog_helper.rb'
533
    - 'app/models/query.rb'
534
    - 'lib/diff.rb'
535
    - 'lib/redmine/i18n.rb'
536
    - 'test/mocks/open_id_authentication_mock.rb'
537
    - 'test/unit/mailer_localisation_test.rb'
538
    - 'test/unit/mailer_test.rb'
539
    - 'test/unit/search_test.rb'
540

  
541
# Offense count: 1846
542
# Cop supports --auto-correct.
543
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
544
# SupportedStyles: space, no_space
545
# SupportedStylesForEmptyBraces: space, no_space
546
Layout/SpaceInsideBlockBraces:
547
  Enabled: false
548

  
549
# Offense count: 3691
550
# Cop supports --auto-correct.
551
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
552
# SupportedStyles: space, no_space, compact
553
# SupportedStylesForEmptyBraces: space, no_space
554
Layout/SpaceInsideHashLiteralBraces:
555
  Enabled: false
556

  
557
# Offense count: 408
558
# Cop supports --auto-correct.
559
# Configuration parameters: EnforcedStyle.
560
# SupportedStyles: space, no_space
561
Layout/SpaceInsideParens:
562
  Enabled: false
563

  
564
# Offense count: 2
565
# Cop supports --auto-correct.
566
Layout/SpaceInsidePercentLiteralDelimiters:
567
  Exclude:
568
    - 'app/models/project.rb'
569

  
570
# Offense count: 1
571
# Cop supports --auto-correct.
572
Layout/SpaceInsideRangeLiteral:
573
  Exclude:
574
    - 'app/models/repository/cvs.rb'
575

  
576
# Offense count: 27
577
# Cop supports --auto-correct.
578
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
579
# SupportedStyles: space, no_space
580
# SupportedStylesForEmptyBrackets: space, no_space
581
Layout/SpaceInsideReferenceBrackets:
582
  Exclude:
583
    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
584
    - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
585

  
586
# Offense count: 112
587
# Cop supports --auto-correct.
588
# Configuration parameters: EnforcedStyle.
589
# SupportedStyles: space, no_space
590
Layout/SpaceInsideStringInterpolation:
591
  Exclude:
592
    - 'app/helpers/application_helper.rb'
593
    - 'app/helpers/issues_helper.rb'
594
    - 'app/helpers/workflows_helper.rb'
595
    - 'app/models/issue_query.rb'
596
    - 'app/models/mail_handler.rb'
597
    - 'lib/redmine/core_ext/string/inflections.rb'
598
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
599
    - 'test/functional/issues_controller_test.rb'
600
    - 'test/integration/admin_test.rb'
601

  
602
# Offense count: 6
603
# Cop supports --auto-correct.
604
# Configuration parameters: EnforcedStyle.
605
# SupportedStyles: final_newline, final_blank_line
606
Layout/TrailingBlankLines:
607
  Exclude:
608
    - 'app/models/issue_priority_custom_field.rb'
609
    - 'app/models/time_entry_custom_field.rb'
610
    - 'app/models/user_custom_field.rb'
611
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
612
    - 'test/integration/api_test/my_test.rb'
613
    - 'test/unit/lib/redmine/hook_test.rb'
614

  
615
# Offense count: 3
616
# Cop supports --auto-correct.
617
# Configuration parameters: AllowInHeredoc.
618
Layout/TrailingWhitespace:
619
  Exclude:
620
    - 'foo.rb'
621
    - 'test/unit/lib/redmine/unified_diff_test.rb'
622

  
623
# Offense count: 124
624
Lint/AmbiguousBlockAssociation:
625
  Enabled: false
626

  
627
# Offense count: 7
628
Lint/AmbiguousOperator:
629
  Exclude:
630
    - 'app/controllers/application_controller.rb'
631
    - 'app/helpers/application_helper.rb'
632
    - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
633
    - 'test/unit/custom_field_test.rb'
634
    - 'test/unit/member_test.rb'
635

  
636
# Offense count: 145
637
Lint/AmbiguousRegexpLiteral:
638
  Enabled: false
639

  
640
# Offense count: 136
641
# Configuration parameters: AllowSafeAssignment.
642
Lint/AssignmentInCondition:
643
  Enabled: false
644

  
645
# Offense count: 19
646
# Cop supports --auto-correct.
647
Lint/DeprecatedClassMethods:
648
  Exclude:
649
    - 'Gemfile'
650
    - 'app/models/import.rb'
651
    - 'config/application.rb'
652
    - 'config/boot.rb'
653
    - 'config/routes.rb'
654
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
655
    - 'lib/redmine/thumbnail.rb'
656
    - 'lib/redmine/utils.rb'
657
    - 'test/functional/issues_controller_test.rb'
658
    - 'test/unit/attachment_test.rb'
659
    - 'test/unit/issue_import_test.rb'
660

  
661
# Offense count: 7
662
Lint/DuplicateMethods:
663
  Exclude:
664
    - 'app/models/custom_field_value.rb'
665
    - 'app/models/issue.rb'
666
    - 'app/models/query.rb'
667
    - 'app/models/wiki_page.rb'
668
    - 'test/functional/issues_controller_test.rb'
669
    - 'test/functional/projects_controller_test.rb'
670

  
671
# Offense count: 2
672
Lint/EmptyWhen:
673
  Exclude:
674
    - 'app/controllers/issues_controller.rb'
675
    - 'app/controllers/wiki_controller.rb'
676

  
677
# Offense count: 19
678
# Configuration parameters: AllowComments.
679
Lint/HandleExceptions:
680
  Exclude:
681
    - 'app/controllers/activities_controller.rb'
682
    - 'app/controllers/issues_controller.rb'
683
    - 'app/helpers/versions_helper.rb'
684
    - 'app/models/attachment.rb'
685
    - 'app/models/import.rb'
686
    - 'app/models/user.rb'
687
    - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
688
    - 'lib/redmine.rb'
689
    - 'lib/redmine/codeset_util.rb'
690
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
691
    - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
692
    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
693
    - 'lib/redmine/subclass_factory.rb'
694
    - 'lib/redmine/version.rb'
695

  
696
# Offense count: 23
697
Lint/IneffectiveAccessModifier:
698
  Exclude:
699
    - 'app/models/attachment.rb'
700
    - 'app/models/auth_source_ldap.rb'
701
    - 'app/models/issue.rb'
702
    - 'app/models/mail_handler.rb'
703
    - 'app/models/mailer.rb'
704
    - 'app/models/role.rb'
705
    - 'app/models/setting.rb'
706
    - 'app/models/user.rb'
707
    - 'app/models/watcher.rb'
708
    - 'lib/redmine/helpers/gantt.rb'
709
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
710
    - 'lib/redmine/themes.rb'
711

  
712
# Offense count: 9
713
Lint/InterpolationCheck:
714
  Exclude:
715
    - 'app/models/user.rb'
716

  
717
# Offense count: 1
718
Lint/Loop:
719
  Exclude:
720
    - 'lib/redmine/helpers/gantt.rb'
721

  
722
# Offense count: 1
723
Lint/NestedMethodDefinition:
724
  Exclude:
725
    - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
726

  
727
# Offense count: 23
728
Lint/ParenthesesAsGroupedExpression:
729
  Exclude:
730
    - 'lib/redmine/field_format.rb'
731
    - 'test/functional/account_controller_test.rb'
732
    - 'test/functional/email_addresses_controller_test.rb'
733
    - 'test/functional/my_controller_test.rb'
734
    - 'test/functional/settings_controller_test.rb'
735
    - 'test/functional/users_controller_test.rb'
736
    - 'test/helpers/application_helper_test.rb'
737
    - 'test/unit/attachment_test.rb'
738
    - 'test/unit/lib/redmine/export/pdf_test.rb'
739

  
740
# Offense count: 1
741
# Cop supports --auto-correct.
742
Lint/ScriptPermission:
743
  Exclude:
744
    - 'Rakefile'
745

  
746
# Offense count: 52
747
Lint/ShadowingOuterLocalVariable:
748
  Enabled: false
749

  
750
# Offense count: 4
751
# Cop supports --auto-correct.
752
Lint/StringConversionInInterpolation:
753
  Exclude:
754
    - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
755
    - 'test/functional/repositories_filesystem_controller_test.rb'
756
    - 'test/functional/repositories_git_controller_test.rb'
757
    - 'test/functional/repositories_mercurial_controller_test.rb'
758

  
759
# Offense count: 1
760
# Configuration parameters: AllowKeywordBlockArguments.
761
Lint/UnderscorePrefixedVariableName:
762
  Exclude:
763
    - 'lib/redmine/i18n.rb'
764

  
765
# Offense count: 1
766
# Cop supports --auto-correct.
767
Lint/UnifiedInteger:
768
  Exclude:
769
    - 'test/unit/query_test.rb'
770

  
771
# Offense count: 1
772
# Cop supports --auto-correct.
773
Lint/UnneededRequireStatement:
774
  Exclude:
775
    - 'app/models/wiki_page.rb'
776

  
777
# Offense count: 95
778
# Cop supports --auto-correct.
779
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
780
Lint/UnusedBlockArgument:
781
  Enabled: false
782

  
783
# Offense count: 214
784
# Cop supports --auto-correct.
785
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
786
Lint/UnusedMethodArgument:
787
  Enabled: false
788

  
789
# Offense count: 9
790
Lint/UriEscapeUnescape:
791
  Exclude:
792
    - 'lib/redmine/field_format.rb'
793
    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
794
    - 'test/functional/wiki_controller_test.rb'
795

  
796
# Offense count: 3
797
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
798
Lint/UselessAccessModifier:
799
  Exclude:
800
    - 'app/models/changeset.rb'
801
    - 'app/models/watcher.rb'
802
    - 'lib/redmine/themes.rb'
803

  
804
# Offense count: 177
805
Lint/UselessAssignment:
806
  Enabled: false
807

  
808
# Offense count: 1
809
Lint/UselessSetterCall:
810
  Exclude:
811
    - 'test/unit/issue_test.rb'
812

  
813
# Offense count: 5
814
# Configuration parameters: CheckForMethodsWithNoSideEffects.
815
Lint/Void:
816
  Exclude:
817
    - 'app/models/query.rb'
818
    - 'app/models/time_entry.rb'
819
    - 'app/models/wiki_content_version.rb'
820
    - 'lib/redmine/unified_diff.rb'
821
    - 'test/functional/project_enumerations_controller_test.rb'
822

  
823
# Offense count: 1436
824
Metrics/AbcSize:
825
  Max: 343
826

  
827
# Offense count: 50
828
# Configuration parameters: CountComments, ExcludedMethods.
829
# ExcludedMethods: refine
830
Metrics/BlockLength:
831
  Max: 575
832

  
833
# Offense count: 55
834
# Configuration parameters: CountBlocks.
835
Metrics/BlockNesting:
836
  Max: 8
837

  
838
# Offense count: 190
839
# Configuration parameters: CountComments.
840
Metrics/ClassLength:
841
  Max: 5884
842

  
843
# Offense count: 255
844
Metrics/CyclomaticComplexity:
845
  Max: 72
846

  
847
# Offense count: 1868
848
# Configuration parameters: CountComments, ExcludedMethods.
849
Metrics/MethodLength:
850
  Max: 232
851

  
852
# Offense count: 15
853
# Configuration parameters: CountComments.
854
Metrics/ModuleLength:
855
  Max: 1271
856

  
857
# Offense count: 19
858
# Configuration parameters: CountKeywordArgs.
859
Metrics/ParameterLists:
860
  Max: 9
861

  
862
# Offense count: 225
863
Metrics/PerceivedComplexity:
864
  Max: 67
865

  
866
# Offense count: 9
867
Naming/AccessorMethodName:
868
  Exclude:
869
    - 'app/controllers/account_controller.rb'
870
    - 'app/controllers/application_controller.rb'
871
    - 'app/models/enumeration.rb'
872
    - 'app/models/issue.rb'
873
    - 'app/models/issue_relation.rb'
874
    - 'app/models/mail_handler.rb'
875
    - 'app/models/project.rb'
876
    - 'app/models/setting.rb'
877
    - 'lib/redmine/i18n.rb'
878

  
879
# Offense count: 16
880
Naming/BinaryOperatorParameterName:
881
  Exclude:
882
    - 'app/models/custom_field.rb'
883
    - 'app/models/enumeration.rb'
884
    - 'app/models/issue.rb'
885
    - 'app/models/issue_category.rb'
886
    - 'app/models/issue_relation.rb'
887
    - 'app/models/issue_status.rb'
888
    - 'app/models/member.rb'
889
    - 'app/models/principal.rb'
890
    - 'app/models/project.rb'
891
    - 'app/models/repository.rb'
892
    - 'app/models/role.rb'
893
    - 'app/models/tracker.rb'
894
    - 'app/models/version.rb'
895
    - 'lib/redmine/plugin.rb'
896
    - 'lib/redmine/themes.rb'
897

  
898
# Offense count: 6
899
Naming/ConstantName:
900
  Exclude:
901
    - 'app/models/document_category.rb'
902
    - 'app/models/issue_priority.rb'
903
    - 'app/models/time_entry_activity.rb'
904
    - 'lib/redmine/helpers/gantt.rb'
905

  
906
# Offense count: 4
907
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
908
# 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
909
Naming/FileName:
910
  Exclude:
911
    - 'config/initializers/00-core_plugins.rb'
912
    - 'config/initializers/10-patches.rb'
913
    - 'config/initializers/20-mime_types.rb'
914
    - 'config/initializers/30-redmine.rb'
915

  
916
# Offense count: 10
917
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
918
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
919
Naming/MemoizedInstanceVariableName:
920
  Exclude:
921
    - 'app/controllers/email_addresses_controller.rb'
922
    - 'app/controllers/users_controller.rb'
923
    - 'app/controllers/workflows_controller.rb'
924
    - 'app/models/issue.rb'
925
    - 'app/models/project.rb'
926
    - 'app/models/query.rb'
927
    - 'app/models/role.rb'
928
    - 'lib/redmine/field_format.rb'
929
    - 'lib/redmine/helpers/calendar.rb'
930
    - 'lib/redmine/search.rb'
931

  
932
# Offense count: 16
933
# Configuration parameters: EnforcedStyle.
934
# SupportedStyles: snake_case, camelCase
935
Naming/MethodName:
936
  Exclude:
937
    - 'lib/redmine/export/pdf.rb'
938
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
939
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
940
    - 'test/helpers/application_helper_test.rb'
941

  
942
# Offense count: 30
943
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
944
# NamePrefix: is_, has_, have_
945
# NamePrefixBlacklist: is_, has_, have_
946
# NameWhitelist: is_a?
947
# MethodDefinitionMacros: define_method, define_singleton_method
948
Naming/PredicateName:
949
  Exclude:
950
    - 'spec/**/*'
951
    - 'app/controllers/repositories_controller.rb'
952
    - 'app/models/attachment.rb'
953
    - 'app/models/enumeration.rb'
954
    - 'app/models/member.rb'
955
    - 'app/models/query.rb'
956
    - 'app/models/repository/mercurial.rb'
957
    - 'app/models/role.rb'
958
    - 'app/models/user.rb'
959
    - 'app/models/wiki_page.rb'
960
    - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
961
    - 'lib/redmine/mime_type.rb'
962
    - 'lib/redmine/nested_set/traversing.rb'
963
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
964
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
965

  
966
# Offense count: 4
967
# Cop supports --auto-correct.
968
# Configuration parameters: PreferredName.
969
Naming/RescuedExceptionsVariableName:
970
  Exclude:
971
    - 'app/models/user.rb'
972
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
973
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
974

  
975
# Offense count: 60
976
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
977
# AllowedNames: io, id, to, by, on, in, at, ip, db
978
Naming/UncommunicativeMethodParamName:
979
  Enabled: false
980

  
981
# Offense count: 8
982
# Configuration parameters: EnforcedStyle.
983
# SupportedStyles: snake_case, camelCase
984
Naming/VariableName:
985
  Exclude:
986
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
987
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
988

  
989
# Offense count: 30
990
# Configuration parameters: EnforcedStyle.
991
# SupportedStyles: snake_case, normalcase, non_integer
992
Naming/VariableNumber:
993
  Exclude:
994
    - 'test/functional/versions_controller_test.rb'
995
    - 'test/helpers/application_helper_test.rb'
996
    - 'test/unit/lib/redmine/export/pdf_test.rb'
997
    - 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
998
    - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
999
    - 'test/unit/project_test.rb'
1000

  
1001
# Offense count: 16
1002
# Cop supports --auto-correct.
1003
Rails/ActiveRecordAliases:
1004
  Exclude:
1005
    - 'app/controllers/enumerations_controller.rb'
1006
    - 'app/models/project.rb'
1007
    - 'test/functional/documents_controller_test.rb'
1008
    - 'test/functional/journals_controller_test.rb'
1009
    - 'test/functional/search_controller_test.rb'
1010
    - 'test/unit/document_category_test.rb'
1011
    - 'test/unit/document_test.rb'
1012
    - 'test/unit/enumeration_test.rb'
1013
    - 'test/unit/issue_subtasking_test.rb'
1014
    - 'test/unit/message_test.rb'
1015

  
1016
# Offense count: 4
1017
# Configuration parameters: Include.
1018
# Include: app/models/**/*.rb
1019
Rails/ActiveRecordOverride:
1020
  Exclude:
1021
    - 'app/models/email_address.rb'
1022
    - 'app/models/issue.rb'
1023
    - 'app/models/journal.rb'
1024
    - 'app/models/member.rb'
1025

  
1026
# Offense count: 64
1027
# Cop supports --auto-correct.
1028
Rails/ApplicationRecord:
1029
  Enabled: false
1030

  
1031
# Offense count: 487
1032
# Cop supports --auto-correct.
1033
# Configuration parameters: Include.
1034
# Include: **/test/**/*
1035
Rails/AssertNot:
1036
  Enabled: false
1037

  
1038
# Offense count: 14
1039
# Cop supports --auto-correct.
1040
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
1041
Rails/Blank:
1042
  Exclude:
1043
    - 'app/controllers/application_controller.rb'
1044
    - 'app/controllers/context_menus_controller.rb'
1045
    - 'app/controllers/repositories_controller.rb'
1046
    - 'app/controllers/watchers_controller.rb'
1047
    - 'app/helpers/issues_helper.rb'
1048
    - 'app/helpers/queries_helper.rb'
1049
    - 'app/helpers/repositories_helper.rb'
1050
    - 'app/models/mailer.rb'
1051
    - 'app/models/query.rb'
1052
    - 'app/models/repository/git.rb'
1053
    - 'app/models/role.rb'
1054
    - 'lib/redmine/field_format.rb'
1055
    - 'lib/redmine/wiki_formatting/macros.rb'
1056

  
1057
# Offense count: 57
1058
# Configuration parameters: Include.
1059
# Include: db/migrate/*.rb
1060
Rails/CreateTableWithTimestamps:
1061
  Enabled: false
1062

  
1063
# Offense count: 71
1064
# Configuration parameters: EnforcedStyle.
1065
# SupportedStyles: strict, flexible
1066
Rails/Date:
1067
  Enabled: false
1068

  
1069
# Offense count: 22
1070
# Cop supports --auto-correct.
1071
# Configuration parameters: EnforceForPrefixed.
1072
Rails/Delegate:
1073
  Exclude:
1074
    - 'app/models/changeset.rb'
1075
    - 'app/models/custom_field.rb'
1076
    - 'app/models/custom_field_enumeration.rb'
1077
    - 'app/models/custom_field_value.rb'
1078
    - 'app/models/custom_value.rb'
1079
    - 'app/models/group.rb'
1080
    - 'app/models/message.rb'
1081
    - 'app/models/repository.rb'
1082
    - 'app/models/repository/git.rb'
1083
    - 'app/models/time_entry_activity.rb'
1084
    - 'app/models/wiki_content.rb'
1085
    - 'app/models/wiki_content_version.rb'
1086
    - 'lib/redmine/menu_manager.rb'
1087

  
1088
# Offense count: 576
1089
# Cop supports --auto-correct.
1090
# Configuration parameters: Whitelist.
1091
# Whitelist: find_by_sql
1092
Rails/DynamicFindBy:
1093
  Enabled: false
1094

  
1095
# Offense count: 3
1096
# Configuration parameters: Include.
1097
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
1098
Rails/Exit:
1099
  Exclude:
1100
    - 'lib/**/*.rake'
1101
    - 'config/environment.rb'
1102
    - 'config/initializers/10-patches.rb'
1103
    - 'config/routes.rb'
1104

  
1105
# Offense count: 39
1106
# Configuration parameters: EnforcedStyle.
1107
# SupportedStyles: slashes, arguments
1108
Rails/FilePath:
1109
  Enabled: false
1110

  
1111
# Offense count: 17
1112
# Cop supports --auto-correct.
1113
# Configuration parameters: Include.
1114
# Include: app/models/**/*.rb
1115
Rails/FindBy:
1116
  Exclude:
1117
    - 'app/models/attachment.rb'
1118
    - 'app/models/enumeration.rb'
1119
    - 'app/models/issue_import.rb'
1120
    - 'app/models/repository.rb'
1121
    - 'app/models/repository/cvs.rb'
1122
    - 'app/models/repository/git.rb'
1123
    - 'app/models/repository/mercurial.rb'
1124
    - 'app/models/time_entry_query.rb'
1125
    - 'app/models/user.rb'
1126
    - 'app/models/wiki.rb'
1127
    - 'app/models/wiki_content_version.rb'
1128

  
1129
# Offense count: 13
1130
# Cop supports --auto-correct.
1131
# Configuration parameters: Include.
1132
# Include: app/models/**/*.rb
1133
Rails/FindEach:
1134
  Exclude:
1135
    - 'app/models/auth_source.rb'
1136
    - 'app/models/group.rb'
1137
    - 'app/models/issue.rb'
1138
    - 'app/models/issue_status.rb'
1139
    - 'app/models/project.rb'
1140
    - 'app/models/query.rb'
1141
    - 'app/models/repository.rb'
1142
    - 'app/models/setting.rb'
1143
    - 'app/models/watcher.rb'
1144
    - 'app/models/wiki_page.rb'
1145

  
1146
# Offense count: 16
1147
# Configuration parameters: Include.
1148
# Include: app/models/**/*.rb
1149
Rails/HasAndBelongsToMany:
1150
  Exclude:
1151
    - 'app/models/changeset.rb'
1152
    - 'app/models/custom_field.rb'
1153
    - 'app/models/group.rb'
1154
    - 'app/models/issue.rb'
1155
    - 'app/models/issue_custom_field.rb'
1156
    - 'app/models/project.rb'
1157
    - 'app/models/query.rb'
1158
    - 'app/models/role.rb'
1159
    - 'app/models/tracker.rb'
1160
    - 'app/models/user.rb'
1161

  
1162
# Offense count: 10
1163
# Configuration parameters: Include.
1164
# Include: app/models/**/*.rb
1165
Rails/HasManyOrHasOneDependent:
1166
  Exclude:
1167
    - 'app/models/auth_source.rb'
1168
    - 'app/models/document_category.rb'
1169
    - 'app/models/issue_priority.rb'
1170
    - 'app/models/issue_status.rb'
1171
    - 'app/models/project.rb'
1172
    - 'app/models/time_entry_activity.rb'
1173
    - 'app/models/tracker.rb'
1174
    - 'app/models/wiki.rb'
1175

  
1176
# Offense count: 6
1177
# Cop supports --auto-correct.
1178
# Configuration parameters: EnforcedStyle.
1179
# SupportedStyles: numeric, symbolic
1180
Rails/HttpStatus:
1181
  Exclude:
1182
    - 'app/controllers/mail_handler_controller.rb'
1183
    - 'app/controllers/sys_controller.rb'
1184
    - 'app/controllers/watchers_controller.rb'
1185

  
1186
# Offense count: 29
1187
# Configuration parameters: Include.
1188
# Include: app/models/**/*.rb
1189
Rails/InverseOf:
1190
  Enabled: false
1191

  
1192
# Offense count: 2
1193
# Configuration parameters: Include.
1194
# Include: app/controllers/**/*.rb
1195
Rails/LexicallyScopedActionFilter:
1196
  Exclude:
1197
    - 'app/controllers/projects_controller.rb'
1198

  
1199
# Offense count: 1
1200
# Cop supports --auto-correct.
1201
Rails/LinkToBlank:
1202
  Exclude:
1203
    - 'app/helpers/avatars_helper.rb'
1204

  
1205
# Offense count: 9
1206
# Configuration parameters: Include.
1207
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
1208
Rails/Output:
1209
  Exclude:
1210
    - 'app/models/mail_handler.rb'
1211
    - 'config/routes.rb'
1212
    - 'lib/redmine/unified_diff.rb'
1213

  
1214
# Offense count: 106
1215
Rails/OutputSafety:
1216
  Enabled: false
1217

  
1218
# Offense count: 8
1219
# Cop supports --auto-correct.
1220
Rails/PluralizationGrammar:
1221
  Exclude:
1222
    - 'lib/redmine/helpers/time_report.rb'
1223
    - 'test/functional/gantts_controller_test.rb'
1224
    - 'test/unit/mailer_test.rb'
1225
    - 'test/unit/query_test.rb'
1226

  
1227
# Offense count: 16
1228
# Cop supports --auto-correct.
1229
Rails/Presence:
1230
  Exclude:
1231
    - 'app/controllers/activities_controller.rb'
1232
    - 'app/helpers/application_helper.rb'
1233
    - 'app/models/repository.rb'
1234
    - 'config/initializers/10-patches.rb'
1235
    - 'config/initializers/30-redmine.rb'
1236
    - 'db/migrate/20110228000100_copy_repositories_log_encoding.rb'
1237
    - 'lib/redmine/codeset_util.rb'
1238
    - 'lib/redmine/i18n.rb'
1239
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
1240
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
1241
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
1242
    - 'lib/redmine/scm/adapters/git_adapter.rb'
1243
    - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
1244
    - 'lib/redmine/sort_criteria.rb'
1245

  
1246
# Offense count: 67
1247
# Cop supports --auto-correct.
1248
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
1249
Rails/Present:
1250
  Enabled: false
1251

  
1252
# Offense count: 38
1253
# Cop supports --auto-correct.
1254
# Configuration parameters: Include.
1255
# Include: app/models/**/*.rb
1256
Rails/ReadWriteAttribute:
1257
  Enabled: false
1258

  
1259
# Offense count: 2
1260
Rails/ReflectionClassName:
1261
  Exclude:
1262
    - 'lib/redmine/nested_set/issue_nested_set.rb'
1263
    - 'lib/redmine/nested_set/project_nested_set.rb'
1264

  
1265
# Offense count: 13
1266
# Cop supports --auto-correct.
1267
# Configuration parameters: Include.
1268
# Include: **/test/**/*
1269
Rails/RefuteMethods:
1270
  Exclude:
1271
    - 'test/functional/projects_controller_test.rb'
1272
    - 'test/functional/wiki_controller_test.rb'
1273
    - 'test/integration/account_test.rb'
1274
    - 'test/integration/api_test/my_test.rb'
1275
    - 'test/unit/attachment_test.rb'
1276
    - 'test/unit/custom_field_test.rb'
1277
    - 'test/unit/lib/redmine/project_jump_box_test.rb'
1278
    - 'test/unit/mail_handler_test.rb'
1279

  
1280
# Offense count: 354
1281
# Configuration parameters: Blacklist, Whitelist.
1282
# Blacklist: decrement!, decrement_counter, increment!, increment_counter, toggle!, touch, update_all, update_attribute, update_column, update_columns, update_counters
1283
Rails/SkipsModelValidations:
1284
  Enabled: false
1285

  
1286
# Offense count: 103
1287
# Cop supports --auto-correct.
1288
# Configuration parameters: EnforcedStyle.
1289
# SupportedStyles: strict, flexible
1290
Rails/TimeZone:
1291
  Enabled: false
1292

  
1293
# Offense count: 144
1294
# Cop supports --auto-correct.
1295
# Configuration parameters: Include.
1296
# Include: app/models/**/*.rb
1297
Rails/Validation:
1298
  Enabled: false
1299

  
1300
# Offense count: 4
1301
Security/Eval:
1302
  Exclude:
1303
    - 'app/helpers/attachments_helper.rb'
1304
    - 'app/models/user.rb'
1305
    - 'config/initializers/00-core_plugins.rb'
1306

  
1307
# Offense count: 1
1308
Security/Open:
1309
  Exclude:
1310
    - 'app/models/version.rb'
1311

  
1312
# Offense count: 4
1313
# Cop supports --auto-correct.
1314
Security/YAMLLoad:
1315
  Exclude:
1316
    - 'Gemfile'
1317
    - 'app/models/setting.rb'
1318
    - 'lib/redmine/configuration.rb'
1319

  
1320
# Offense count: 52
1321
# Configuration parameters: EnforcedStyle.
1322
# SupportedStyles: inline, group
1323
Style/AccessModifierDeclarations:
1324
  Enabled: false
1325

  
1326
# Offense count: 25
1327
# Cop supports --auto-correct.
1328
# Configuration parameters: EnforcedStyle.
1329
# SupportedStyles: prefer_alias, prefer_alias_method
1330
Style/Alias:
1331
  Enabled: false
1332

  
1333
# Offense count: 40
1334
# Cop supports --auto-correct.
1335
# Configuration parameters: EnforcedStyle.
1336
# SupportedStyles: always, conditionals
1337
Style/AndOr:
1338
  Enabled: false
1339

  
1340
# Offense count: 3
1341
# Configuration parameters: AllowedChars.
1342
Style/AsciiComments:
1343
  Exclude:
1344
    - 'app/models/repository/git.rb'
1345
    - 'lib/redmine/search.rb'
1346
    - 'test/unit/mail_handler_test.rb'
1347

  
1348
# Offense count: 1
1349
# Cop supports --auto-correct.
1350
# Configuration parameters: EnforcedStyle.
1351
# SupportedStyles: percent_q, bare_percent
1352
Style/BarePercentLiterals:
1353
  Exclude:
1354
    - 'test/integration/api_test/api_test.rb'
1355

  
1356
# Offense count: 1
1357
# Cop supports --auto-correct.
1358
Style/BlockComments:
1359
  Exclude:
1360
    - 'lib/diff.rb'
1361

  
1362
# Offense count: 147
1363
# Cop supports --auto-correct.
1364
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
1365
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
1366
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
1367
# FunctionalMethods: let, let!, subject, watch
1368
# IgnoredMethods: lambda, proc, it
1369
Style/BlockDelimiters:
1370
  Enabled: false
1371

  
1372
# Offense count: 209
1373
# Cop supports --auto-correct.
1374
# Configuration parameters: EnforcedStyle.
1375
# SupportedStyles: braces, no_braces, context_dependent
1376
Style/BracesAroundHashParameters:
1377
  Enabled: false
1378

  
1379
# Offense count: 2
1380
# Cop supports --auto-correct.
1381
Style/CharacterLiteral:
1382
  Exclude:
1383
    - 'lib/redmine/wiki_formatting.rb'
1384
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
1385

  
1386
# Offense count: 79
1387
# Cop supports --auto-correct.
1388
# Configuration parameters: AutoCorrect, EnforcedStyle.
1389
# SupportedStyles: nested, compact
1390
Style/ClassAndModuleChildren:
1391
  Enabled: false
1392

  
1393
# Offense count: 2
1394
# Cop supports --auto-correct.
1395
# Configuration parameters: EnforcedStyle.
1396
# SupportedStyles: is_a?, kind_of?
1397
Style/ClassCheck:
1398
  Exclude:
1399
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
1400

  
1401
# Offense count: 1
1402
# Cop supports --auto-correct.
1403
Style/ClassMethods:
1404
  Exclude:
1405
    - 'lib/diff.rb'
1406

  
1407
# Offense count: 48
1408
Style/ClassVars:
1409
  Enabled: false
1410

  
1411
# Offense count: 34
1412
# Cop supports --auto-correct.
1413
Style/ColonMethodCall:
1414
  Exclude:
1415
    - 'Gemfile'
1416
    - 'app/controllers/admin_controller.rb'
1417
    - 'app/models/setting.rb'
1418
    - 'lib/redmine/configuration.rb'
1419
    - 'lib/redmine/export/pdf.rb'
1420
    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
1421
    - 'lib/redmine/wiki_formatting.rb'
1422
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
1423
    - 'test/test_helper.rb'
1424
    - 'test/unit/default_data_test.rb'
1425
    - 'test/unit/lib/redmine/export/pdf_test.rb'
1426

  
1427
# Offense count: 1
1428
# Cop supports --auto-correct.
1429
# Configuration parameters: Keywords.
1430
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
1431
Style/CommentAnnotation:
1432
  Exclude:
1433
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
1434

  
1435
# Offense count: 1
1436
Style/CommentedKeyword:
1437
  Exclude:
1438
    - 'app/models/repository/cvs.rb'
1439

  
1440
# Offense count: 76
1441
# Cop supports --auto-correct.
1442
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
1443
# SupportedStyles: assign_to_condition, assign_inside_condition
1444
Style/ConditionalAssignment:
1445
  Enabled: false
1446

  
1447
# Offense count: 3
... This diff was truncated because it exceeds the maximum size that can be displayed.
(3-3/4)