From 7ec182925e57d7ffa3ad344bc9f4ed2a799e17bd Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 6 Sep 2024 05:24:25 +0000 Subject: [PATCH] Disable RuboCop Rails/SkipsModelValidations (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@23027 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c86cb7b25..3190c2870 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -168,6 +168,9 @@ Rails/Pluck: Rails/RootPathnameMethods: Enabled: false +Rails/SkipsModelValidations: + Enabled: false + Rails/SquishedSQLHeredocs: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index fd17051b9..7eac207f6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -606,11 +606,6 @@ Rails/ShortI18n: - 'test/unit/version_test.rb' - 'test/unit/wiki_page_test.rb' -# Configuration parameters: ForbiddenMethods, AllowedMethods. -# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all -Rails/SkipsModelValidations: - Enabled: false - # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: strict, flexible -- 2.39.5