From f0f5a1a2da2e851e490a821ec1300faa6f18372e Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 27 Dec 2021 16:36:45 +0000 Subject: [PATCH] Allow methods which skip validations in Rubocop There are plenty of places where we use methods which skip validations for perfectly good reasons... --- .rubocop_styleguide.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.rubocop_styleguide.yml b/.rubocop_styleguide.yml index b956e49708..411fae7022 100644 --- a/.rubocop_styleguide.yml +++ b/.rubocop_styleguide.yml @@ -19,6 +19,15 @@ AllCops: # # Cop settings that have been agreed upon by the OFN community +Rails/SkipsModelValidations: + AllowedMethods: + - "touch" + - "touch_all" + - "update_all" + - "update_attribute" + - "update_column" + - "update_columns" + Style/Documentation: Enabled: false