Replace gsub with tr, delete, or squeeze (#34161).

git-svn-id: http://svn.redmine.org/redmine/trunk@20176 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-10-24 06:46:50 +00:00
parent b46953247d
commit 78dfef0978
15 changed files with 18 additions and 40 deletions

View File

@@ -564,11 +564,6 @@ Performance/RedundantMatch:
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
# Cop supports --auto-correct.
Performance/Squeeze:
Exclude:
- 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Performance/StringInclude:
@@ -578,23 +573,6 @@ Performance/StringInclude:
- 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
# Cop supports --auto-correct.
Performance/StringReplacement:
Exclude:
- 'app/helpers/application_helper.rb'
- 'app/helpers/imports_helper.rb'
- 'app/helpers/settings_helper.rb'
- 'lib/redmine/core_ext/string/conversions.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- 'test/functional/repositories_cvs_controller_test.rb'
- 'test/functional/repositories_git_controller_test.rb'
- 'test/helpers/application_helper_test.rb'
- 'test/integration/repositories_git_test.rb'
- 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb'
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
- 'test/unit/repository_cvs_test.rb'
- 'test/unit/repository_git_test.rb'
# Cop supports --auto-correct.
Performance/Sum:
Exclude: