From a4001d076ba001c32ba4c6682515a33aa6fbb754 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 20 Oct 2022 08:39:24 +0000 Subject: [PATCH] Disable RuboCop Rails/WhereExists (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@21916 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 18 ------------------ 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: