mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Update RuboCop Performance to 1.9 (#34159).
git-svn-id: http://svn.redmine.org/redmine/trunk@20582 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f43b3685ff
commit
7b926116e2
@ -500,6 +500,19 @@ Performance/AncestorsInclude:
|
|||||||
- 'test/unit/issue_priority_test.rb'
|
- 'test/unit/issue_priority_test.rb'
|
||||||
- 'test/unit/time_entry_activity_test.rb'
|
- 'test/unit/time_entry_activity_test.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Performance/BlockGivenWithExplicitBlock:
|
||||||
|
Exclude:
|
||||||
|
- 'app/controllers/account_controller.rb'
|
||||||
|
- 'app/controllers/application_controller.rb'
|
||||||
|
- 'app/helpers/application_helper.rb'
|
||||||
|
- 'app/models/mailer.rb'
|
||||||
|
- 'app/models/user.rb'
|
||||||
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||||
|
- 'lib/redmine/views/builders.rb'
|
||||||
|
- 'lib/redmine/views/builders/structure.rb'
|
||||||
|
- 'lib/redmine/wiki_formatting/macros.rb'
|
||||||
|
|
||||||
# Configuration parameters: MinSize.
|
# Configuration parameters: MinSize.
|
||||||
Performance/CollectionLiteralInLoop:
|
Performance/CollectionLiteralInLoop:
|
||||||
Exclude:
|
Exclude:
|
||||||
@ -521,6 +534,14 @@ Performance/CollectionLiteralInLoop:
|
|||||||
- 'test/unit/repository_git_test.rb'
|
- 'test/unit/repository_git_test.rb'
|
||||||
- 'test/unit/repository_mercurial_test.rb'
|
- 'test/unit/repository_mercurial_test.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Performance/ConstantRegexp:
|
||||||
|
Exclude:
|
||||||
|
- 'app/models/changeset.rb'
|
||||||
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
||||||
|
- 'lib/redmine/wiki_formatting/textile/formatter.rb'
|
||||||
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
|
|
||||||
Performance/FixedSize:
|
Performance/FixedSize:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'test/integration/api_test/issues_test.rb'
|
- 'test/integration/api_test/issues_test.rb'
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@ -93,7 +93,7 @@ group :test do
|
|||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 1.5.2'
|
gem 'rubocop', '~> 1.5.2'
|
||||||
gem 'rubocop-performance', '~> 1.8.0'
|
gem 'rubocop-performance', '~> 1.9.0'
|
||||||
gem 'rubocop-rails', '~> 2.8.0'
|
gem 'rubocop-rails', '~> 2.8.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user