mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Update RuboCop Rails to 2.9 (#32531).
git-svn-id: http://svn.redmine.org/redmine/trunk@20585 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
800d35c016
commit
62a212faa4
@ -721,8 +721,9 @@ Rails/FindBy:
|
|||||||
- 'app/models/wiki_content_version.rb'
|
- 'app/models/wiki_content_version.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: Include.
|
# Configuration parameters: Include, IgnoredMethods.
|
||||||
# Include: app/models/**/*.rb
|
# Include: app/models/**/*.rb
|
||||||
|
# IgnoredMethods: order, limit, select, lock
|
||||||
Rails/FindEach:
|
Rails/FindEach:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/auth_source.rb'
|
- 'app/models/auth_source.rb'
|
||||||
@ -732,6 +733,7 @@ Rails/FindEach:
|
|||||||
- 'app/models/project.rb'
|
- 'app/models/project.rb'
|
||||||
- 'app/models/query.rb'
|
- 'app/models/query.rb'
|
||||||
- 'app/models/repository.rb'
|
- 'app/models/repository.rb'
|
||||||
|
- 'app/models/repository/cvs.rb'
|
||||||
- 'app/models/setting.rb'
|
- 'app/models/setting.rb'
|
||||||
- 'app/models/watcher.rb'
|
- 'app/models/watcher.rb'
|
||||||
- 'app/models/wiki_page.rb'
|
- 'app/models/wiki_page.rb'
|
||||||
@ -943,6 +945,23 @@ Rails/TimeZone:
|
|||||||
Rails/Validation:
|
Rails/Validation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Rails/WhereEquals:
|
||||||
|
Exclude:
|
||||||
|
- 'app/models/group.rb'
|
||||||
|
- 'app/models/issue.rb'
|
||||||
|
- 'app/models/repository.rb'
|
||||||
|
- 'app/models/user.rb'
|
||||||
|
- 'db/migrate/101_populate_changesets_user_id.rb'
|
||||||
|
- 'db/migrate/20090614091200_fix_messages_sticky_null.rb'
|
||||||
|
- 'db/migrate/20090704172350_populate_users_type.rb'
|
||||||
|
- 'db/migrate/20101104182107_add_unique_index_on_members.rb'
|
||||||
|
- 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
|
||||||
|
- 'db/migrate/20120115143126_set_default_repositories.rb'
|
||||||
|
- 'db/migrate/20120422150750_change_repositories_to_full_sti.rb'
|
||||||
|
- 'lib/redmine/helpers/gantt.rb'
|
||||||
|
- 'test/functional/issues_controller_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: exists, where
|
# SupportedStyles: exists, where
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@ -94,7 +94,7 @@ group :test do
|
|||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 1.5.2'
|
gem 'rubocop', '~> 1.5.2'
|
||||||
gem 'rubocop-performance', '~> 1.9.0'
|
gem 'rubocop-performance', '~> 1.9.0'
|
||||||
gem 'rubocop-rails', '~> 2.8.0'
|
gem 'rubocop-rails', '~> 2.9.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user