summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-02 00:27:19 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-02 00:27:19 +0000
commitfff145a49dac4266a4699de204f835819e42e7ae (patch)
tree636a739ee1ffa18a4f87b02504afbf1df696c091
parent30f3fea023e55c0dd4f027b34da912b06ab13060 (diff)
downloadredmine-fff145a49dac4266a4699de204f835819e42e7ae.tar.gz
redmine-fff145a49dac4266a4699de204f835819e42e7ae.zip
Update rubocop-performance to 1.5.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18579 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml12
-rw-r--r--Gemfile2
2 files changed, 13 insertions, 1 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 69f85ebcc..1e81345cd 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -690,6 +690,18 @@ Naming/VariableNumber:
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
- 'test/unit/project_test.rb'
+# Cop supports --auto-correct.
+Performance/Count:
+ Exclude:
+ - 'test/functional/workflows_controller_test.rb'
+ - 'test/integration/api_test/issues_test.rb'
+ - 'test/unit/issue_test.rb'
+
+# Cop supports --auto-correct.
+Performance/Detect:
+ Exclude:
+ - 'test/unit/project_copy_test.rb'
+
Performance/FixedSize:
Exclude:
- 'test/integration/api_test/issues_test.rb'
diff --git a/Gemfile b/Gemfile
index 9beea93ea..8eacdd122 100644
--- a/Gemfile
+++ b/Gemfile
@@ -85,7 +85,7 @@ group :test do
gem "selenium-webdriver"
# RuboCop
gem 'rubocop', '~> 0.75.0'
- gem 'rubocop-performance', '~> 1.4.1'
+ gem 'rubocop-performance', '~> 1.5.0'
gem 'rubocop-rails', '~> 2.3.0'
end