summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-10-20 08:39:24 +0000
committerGo MAEDA <maeda@farend.jp>2022-10-20 08:39:24 +0000
commita4001d076ba001c32ba4c6682515a33aa6fbb754 (patch)
tree1fda927b0994b18d295d173ab9289a9013fe6c92
parent2f81cb6b2a6566135a40d43264a9b391f1ca35e5 (diff)
downloadredmine-a4001d076ba001c32ba4c6682515a33aa6fbb754.tar.gz
redmine-a4001d076ba001c32ba4c6682515a33aa6fbb754.zip
Disable RuboCop Rails/WhereExists (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21916 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop.yml3
-rw-r--r--.rubocop_todo.yml18
2 files changed, 3 insertions, 18 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index b166316da..83ce7a33e 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -139,6 +139,9 @@ Rails/HelperInstanceVariable:
Rails/SquishedSQLHeredocs:
Enabled: false
+Rails/WhereExists:
+ Enabled: false
+
Style/AsciiComments:
Exclude:
# Copyright credit has non ascii character.
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index b04754a10..86e1a18f1 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -948,24 +948,6 @@ Rails/WhereEquals:
- 'lib/redmine/helpers/gantt.rb'
- 'test/functional/issues_controller_test.rb'
-# This cop supports unsafe autocorrection (--autocorrect-all).
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: exists, where
-Rails/WhereExists:
- Exclude:
- - 'app/controllers/issues_controller.rb'
- - 'app/models/issue.rb'
- - 'app/models/project.rb'
- - 'app/models/user.rb'
- - 'app/models/watcher.rb'
- - 'lib/redmine/default_data/loader.rb'
- - 'test/functional/workflows_controller_test.rb'
- - 'test/unit/document_category_test.rb'
- - 'test/unit/enumeration_test.rb'
- - 'test/unit/issue_status_test.rb'
- - 'test/unit/project_test.rb'
- - 'test/unit/workflow_transition_test.rb'
-
# This cop supports safe autocorrection (--autocorrect).
Rails/WhereNot:
Exclude: