Patch #38146 » 0003-Fix-RuboCop-offense-Performance-CollectionLiteralInL.patch
.rubocop.yml | ||
---|---|---|
116 | 116 |
Naming/PredicateName: |
117 | 117 |
Enabled: false |
118 | 118 | |
119 |
Performance/CollectionLiteralInLoop: |
|
120 |
MinSize: 4 |
|
121 | ||
119 | 122 |
Rails/ActionControllerFlashBeforeRender: |
120 | 123 |
# False positive in actions where `redirect_to_referer_or` is used |
121 | 124 |
Enabled: false |
.rubocop_todo.yml | ||
---|---|---|
486 | 486 |
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb' |
487 | 487 |
- 'test/unit/project_test.rb' |
488 | 488 | |
489 |
# Configuration parameters: MinSize. |
|
490 |
Performance/CollectionLiteralInLoop: |
|
491 |
Exclude: |
|
492 |
- 'app/helpers/imports_helper.rb' |
|
493 |
- 'app/helpers/queries_helper.rb' |
|
494 |
- 'app/helpers/settings_helper.rb' |
|
495 |
- 'app/helpers/timelog_helper.rb' |
|
496 |
- 'app/models/issue.rb' |
|
497 |
- 'app/models/workflow_transition.rb' |
|
498 |
- 'lib/redmine/helpers/time_report.rb' |
|
499 |
- 'lib/redmine/scm/adapters/filesystem_adapter.rb' |
|
500 |
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb' |
|
501 |
- 'test/functional/issues_custom_fields_visibility_test.rb' |
|
502 |
- 'test/functional/repositories_git_controller_test.rb' |
|
503 |
- 'test/functional/repositories_mercurial_controller_test.rb' |
|
504 |
- 'test/functional/timelog_custom_fields_visibility_test.rb' |
|
505 |
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb' |
|
506 |
- 'test/unit/repository_git_test.rb' |
|
507 |
- 'test/unit/repository_mercurial_test.rb' |
|
508 | ||
509 | 489 |
# This cop supports safe autocorrection (--autocorrect). |
510 | 490 |
Performance/ConstantRegexp: |
511 | 491 |
Exclude: |