1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Raise MinSize for RuboCop Performance/CollectionLiteralInLoop to 4 (#38146).

git-svn-id: https://svn.redmine.org/redmine/trunk@22028 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2023-01-11 13:25:07 +00:00
parent 3942177f49
commit c53bf36b9a
2 changed files with 3 additions and 20 deletions

View File

@ -116,6 +116,9 @@ Naming/BinaryOperatorParameterName:
Naming/PredicateName:
Enabled: false
Performance/CollectionLiteralInLoop:
MinSize: 4
Rails/ActionControllerFlashBeforeRender:
# False positive in actions where `redirect_to_referer_or` is used
Enabled: false

View File

@ -486,26 +486,6 @@ Naming/VariableNumber:
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
- 'test/unit/project_test.rb'
# Configuration parameters: MinSize.
Performance/CollectionLiteralInLoop:
Exclude:
- 'app/helpers/imports_helper.rb'
- 'app/helpers/queries_helper.rb'
- 'app/helpers/settings_helper.rb'
- 'app/helpers/timelog_helper.rb'
- 'app/models/issue.rb'
- 'app/models/workflow_transition.rb'
- 'lib/redmine/helpers/time_report.rb'
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- 'test/functional/issues_custom_fields_visibility_test.rb'
- 'test/functional/repositories_git_controller_test.rb'
- 'test/functional/repositories_mercurial_controller_test.rb'
- 'test/functional/timelog_custom_fields_visibility_test.rb'
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
- 'test/unit/repository_git_test.rb'
- 'test/unit/repository_mercurial_test.rb'
# This cop supports safe autocorrection (--autocorrect).
Performance/ConstantRegexp:
Exclude: