Skip to content

Commit 6ee8d77

Browse files
vividtoneishikawa999
authored andcommitted
Update RuboCop Performance to 1.8 (#34159).
git-svn-id: http://svn.redmine.org/redmine/trunk@20174 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent c7905b7 commit 6ee8d77

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.rubocop_todo.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,34 @@ Naming/VariableNumber:
524524
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
525525
- 'test/unit/project_test.rb'
526526

527+
# Cop supports --auto-correct.
528+
Performance/AncestorsInclude:
529+
Exclude:
530+
- 'test/unit/document_category_test.rb'
531+
- 'test/unit/issue_priority_test.rb'
532+
- 'test/unit/time_entry_activity_test.rb'
533+
534+
# Configuration parameters: MinSize.
535+
Performance/CollectionLiteralInLoop:
536+
Exclude:
537+
- 'app/helpers/imports_helper.rb'
538+
- 'app/helpers/queries_helper.rb'
539+
- 'app/helpers/settings_helper.rb'
540+
- 'app/helpers/timelog_helper.rb'
541+
- 'app/models/issue.rb'
542+
- 'app/models/workflow_transition.rb'
543+
- 'lib/redmine/helpers/time_report.rb'
544+
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
545+
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
546+
- 'test/functional/issues_custom_fields_visibility_test.rb'
547+
- 'test/functional/repositories_git_controller_test.rb'
548+
- 'test/functional/repositories_mercurial_controller_test.rb'
549+
- 'test/functional/timelog_custom_fields_visibility_test.rb'
550+
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
551+
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
552+
- 'test/unit/repository_git_test.rb'
553+
- 'test/unit/repository_mercurial_test.rb'
554+
527555
Performance/FixedSize:
528556
Exclude:
529557
- 'test/integration/api_test/issues_test.rb'
@@ -552,6 +580,20 @@ Performance/RedundantMerge:
552580
- 'test/unit/issue_import_test.rb'
553581
- 'test/unit/time_entry_import_test.rb'
554582

583+
# Cop supports --auto-correct.
584+
Performance/Squeeze:
585+
Exclude:
586+
- 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
587+
588+
# Cop supports --auto-correct.
589+
# Configuration parameters: AutoCorrect.
590+
Performance/StringInclude:
591+
Exclude:
592+
- 'test/functional/versions_controller_test.rb'
593+
- 'test/integration/sessions_test.rb'
594+
- 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
595+
- 'test/unit/lib/redmine/wiki_formatting/macros_test.rb'
596+
555597
# Cop supports --auto-correct.
556598
Performance/StringReplacement:
557599
Exclude:
@@ -569,6 +611,11 @@ Performance/StringReplacement:
569611
- 'test/unit/repository_cvs_test.rb'
570612
- 'test/unit/repository_git_test.rb'
571613

614+
# Cop supports --auto-correct.
615+
Performance/Sum:
616+
Exclude:
617+
- 'app/helpers/issues_helper.rb'
618+
572619
# Cop supports --auto-correct.
573620
# Configuration parameters: Include.
574621
# Include: app/models/**/*.rb

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ group :test do
9797
gem "selenium-webdriver"
9898
# RuboCop
9999
gem 'rubocop', '~> 1.0.0'
100-
gem 'rubocop-performance', '~> 1.5.0'
100+
gem 'rubocop-performance', '~> 1.8.0'
101101
gem 'rubocop-rails', '~> 2.8.0'
102102
end
103103

0 commit comments

Comments
 (0)