mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Update RuboCop Rails to 2.18 (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22154 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c1c9a50397
commit
817d8100c1
@ -209,6 +209,10 @@ Style/IdenticalConditionalBranches:
|
||||
- 'config/initializers/10-patches.rb'
|
||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||
|
||||
Style/InverseMethods:
|
||||
InverseMethods:
|
||||
:include?: ~
|
||||
|
||||
Style/NegatedIfElseCondition:
|
||||
Enabled: false
|
||||
|
||||
|
||||
@ -211,7 +211,6 @@ Layout/SpaceAfterNot:
|
||||
- 'test/functional/workflows_controller_test.rb'
|
||||
- 'test/unit/attachment_test.rb'
|
||||
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
||||
- 'test/unit/project_copy_test.rb'
|
||||
- 'test/unit/project_test.rb'
|
||||
- 'test/unit/query_test.rb'
|
||||
- 'test/unit/role_test.rb'
|
||||
@ -483,7 +482,7 @@ Rails/ActiveRecordCallbacksOrder:
|
||||
- 'app/models/version.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Configuration parameters: Severity, Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/ActiveRecordOverride:
|
||||
Exclude:
|
||||
@ -545,6 +544,7 @@ Rails/CreateTableWithTimestamps:
|
||||
Rails/Date:
|
||||
Enabled: false
|
||||
|
||||
# Configuration parameters: Severity.
|
||||
Rails/DuplicateScope:
|
||||
Exclude:
|
||||
- 'app/models/enumeration.rb'
|
||||
@ -571,10 +571,9 @@ Rails/Exit:
|
||||
- 'config/routes.rb'
|
||||
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Include, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
||||
# Configuration parameters: Include, AllowedMethods, AllowedPatterns.
|
||||
# Include: app/models/**/*.rb
|
||||
# AllowedMethods: order, limit, select, lock
|
||||
# IgnoredMethods: order, limit, select, lock
|
||||
Rails/FindEach:
|
||||
Exclude:
|
||||
- 'app/models/auth_source.rb'
|
||||
|
||||
2
Gemfile
2
Gemfile
@ -105,7 +105,7 @@ group :test do
|
||||
# RuboCop
|
||||
gem 'rubocop', '~> 1.48.1', require: false
|
||||
gem 'rubocop-performance', '~> 1.16.0', require: false
|
||||
gem 'rubocop-rails', '~> 2.17.2', require: false
|
||||
gem 'rubocop-rails', '~> 2.18.0', require: false
|
||||
end
|
||||
|
||||
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user