From b2613aeabd0441dc763ec114910fbfd683feb463 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 21 Jul 2026 10:47:59 -0400 Subject: [PATCH] Disable `Style/GuardClause` cop (#39846) --- .rubocop/style.yml | 3 +++ .rubocop_todo.yml | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.rubocop/style.yml b/.rubocop/style.yml index 1d1c9f98797..e2ded03c8e6 100644 --- a/.rubocop/style.yml +++ b/.rubocop/style.yml @@ -15,6 +15,9 @@ Style/FormatStringToken: merge: - AllowedMethods +Style/GuardClause: + Enabled: false + Style/HashAsLastArrayItem: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 7f2e858d500..7b1e42d3314 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -5,8 +5,3 @@ # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. - -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. -Style/GuardClause: - Enabled: false