summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2025-02-09 05:43:11 +0000
committerGo MAEDA <maeda@farend.jp>2025-02-09 05:43:11 +0000
commitdde3fe9bfe8dd6e059cee5b12ff0bd0aa3b5928c (patch)
tree72973784e6d2c17d0b65e9d25b4ef5b6372d98e8
parent005f7d21665d512e63449dda6430c1b8dfbda903 (diff)
downloadredmine-dde3fe9bfe8dd6e059cee5b12ff0bd0aa3b5928c.tar.gz
redmine-dde3fe9bfe8dd6e059cee5b12ff0bd0aa3b5928c.zip
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
-rw-r--r--.rubocop.yml4
-rw-r--r--.rubocop_todo.yml8
2 files changed, 4 insertions, 8 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 3190c2870..3a2831c05 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -246,6 +246,10 @@ Style/IdenticalConditionalBranches:
Style/InverseMethods:
Enabled: false
+Style/MultipleComparison:
+ Enabled: true
+ ComparisonsThreshold: 3
+
Style/NegatedIfElseCondition:
Enabled: false
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index e2b2a566b..aee767d54 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -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