From 648b5ef29185df46774e4b143c97726619ca6878 Mon Sep 17 00:00:00 2001 From: Ferran Pelayo Monfort Date: Thu, 14 Mar 2024 17:42:27 +0100 Subject: [PATCH 1/2] Add Layout/AccessModifierIndentation --- default.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.yml b/default.yml index 462f2dc..b0fba58 100644 --- a/default.yml +++ b/default.yml @@ -58,6 +58,10 @@ Style/NestedModifier: Style/SoleNestedConditional: Enabled: true +# https://docs.rubocop.org/rubocop/cops_layout.html#layoutaccessmodifierindentation +Layout/AccessModifierIndentation: + EnforcedStyle: outdent + # Align `when` with `case`. Layout/CaseIndentation: Enabled: true From a5cfa4231e9b75c63d1327949291fc5fdfc298a4 Mon Sep 17 00:00:00 2001 From: Ferran Pelayo Monfort Date: Mon, 18 Mar 2024 09:27:16 +0100 Subject: [PATCH 2/2] Add severity info for AccessModifierIndentation --- default.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/default.yml b/default.yml index b0fba58..0c053f2 100644 --- a/default.yml +++ b/default.yml @@ -61,6 +61,7 @@ Style/SoleNestedConditional: # https://docs.rubocop.org/rubocop/cops_layout.html#layoutaccessmodifierindentation Layout/AccessModifierIndentation: EnforcedStyle: outdent + Severity: info # Align `when` with `case`. Layout/CaseIndentation: