mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Update RuboCop Rails to 2.21 (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22341 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b81818100c
commit
1a1ea18307
@ -146,6 +146,9 @@ Rails/EnvironmentVariableAccess:
|
||||
Rails/FilePath:
|
||||
Enabled: false
|
||||
|
||||
Rails/FindEach:
|
||||
Enabled: false
|
||||
|
||||
Rails/HelperInstanceVariable:
|
||||
Enabled: false
|
||||
|
||||
|
||||
@ -566,23 +566,6 @@ Rails/Exit:
|
||||
- 'config/initializers/10-patches.rb'
|
||||
- 'config/routes.rb'
|
||||
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: Include, AllowedMethods, AllowedPatterns.
|
||||
# Include: app/models/**/*.rb
|
||||
# AllowedMethods: order, limit, select, lock
|
||||
Rails/FindEach:
|
||||
Exclude:
|
||||
- 'app/models/auth_source.rb'
|
||||
- 'app/models/group.rb'
|
||||
- 'app/models/issue.rb'
|
||||
- 'app/models/issue_status.rb'
|
||||
- 'app/models/project.rb'
|
||||
- 'app/models/query.rb'
|
||||
- 'app/models/repository.rb'
|
||||
- 'app/models/setting.rb'
|
||||
- 'app/models/watcher.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/HasAndBelongsToMany:
|
||||
|
||||
2
Gemfile
2
Gemfile
@ -105,7 +105,7 @@ group :test do
|
||||
# RuboCop
|
||||
gem 'rubocop', '~> 1.57.0', require: false
|
||||
gem 'rubocop-performance', '~> 1.19.0', require: false
|
||||
gem 'rubocop-rails', '~> 2.20.2', require: false
|
||||
gem 'rubocop-rails', '~> 2.21.2', require: false
|
||||
end
|
||||
|
||||
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user