mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Increase ComparisonsThreshold for RuboCop's Style/MultipleComparison to 3 (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23496 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
005f7d2166
commit
dde3fe9bfe
@ -246,6 +246,10 @@ Style/IdenticalConditionalBranches:
|
||||
Style/InverseMethods:
|
||||
Enabled: false
|
||||
|
||||
Style/MultipleComparison:
|
||||
Enabled: true
|
||||
ComparisonsThreshold: 3
|
||||
|
||||
Style/NegatedIfElseCondition:
|
||||
Enabled: false
|
||||
|
||||
|
||||
@ -966,14 +966,6 @@ Style/MultilineTernaryOperator:
|
||||
- 'lib/redmine/ciphering.rb'
|
||||
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
||||
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
|
||||
Style/MultipleComparison:
|
||||
Exclude:
|
||||
- 'app/helpers/application_helper.rb'
|
||||
- 'app/models/version.rb'
|
||||
- 'app/models/wiki_page.rb'
|
||||
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
# SupportedStyles: literals, strict
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user