mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-18 01:22:03 +00:00
Set TargetRubyVersion of RuboCop to 2.5 (#31128).
git-svn-id: http://svn.redmine.org/redmine/trunk@20904 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4d42e7a98f
commit
bb09ec1384
@ -1,7 +1,7 @@
|
|||||||
inherit_from: .rubocop_todo.yml
|
inherit_from: .rubocop_todo.yml
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.4
|
TargetRubyVersion: 2.5
|
||||||
TargetRailsVersion: 5.2
|
TargetRailsVersion: 5.2
|
||||||
|
|
||||||
NewCops: enable
|
NewCops: enable
|
||||||
|
|||||||
@ -529,6 +529,14 @@ Performance/FixedSize:
|
|||||||
- 'test/integration/api_test/issues_test.rb'
|
- 'test/integration/api_test/issues_test.rb'
|
||||||
- 'test/integration/attachments_test.rb'
|
- 'test/integration/attachments_test.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Performance/RedundantEqualityComparisonBlock:
|
||||||
|
Exclude:
|
||||||
|
- 'app/models/query.rb'
|
||||||
|
- 'app/models/setting.rb'
|
||||||
|
- 'lib/redmine/field_format.rb'
|
||||||
|
- 'test/integration/api_test/issues_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Performance/RedundantMatch:
|
Performance/RedundantMatch:
|
||||||
Exclude:
|
Exclude:
|
||||||
@ -1544,7 +1552,16 @@ Style/RedundantAssignment:
|
|||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/RedundantBegin:
|
Style/RedundantBegin:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
- 'app/controllers/issues_controller.rb'
|
||||||
|
- 'app/models/auth_source.rb'
|
||||||
- 'app/models/member.rb'
|
- 'app/models/member.rb'
|
||||||
|
- 'app/models/repository.rb'
|
||||||
|
- 'app/models/setting.rb'
|
||||||
|
- 'lib/redmine/codeset_util.rb'
|
||||||
|
- 'lib/redmine/plugin.rb'
|
||||||
|
- 'test/unit/issue_nested_set_concurrency_test.rb'
|
||||||
|
- 'test/unit/project_nested_set_concurrency_test.rb'
|
||||||
|
- 'test/unit/query_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/RedundantCondition:
|
Style/RedundantCondition:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user