1
0
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:
Go MAEDA 2025-02-09 05:43:11 +00:00
parent 005f7d2166
commit dde3fe9bfe
2 changed files with 4 additions and 8 deletions

View File

@ -246,6 +246,10 @@ Style/IdenticalConditionalBranches:
Style/InverseMethods:
Enabled: false
Style/MultipleComparison:
Enabled: true
ComparisonsThreshold: 3
Style/NegatedIfElseCondition:
Enabled: false

View File

@ -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