From 58688e29e63ccf863b298a54c407f1c822cba502 Mon Sep 17 00:00:00 2001
From: Darius Schneider <schneider@itc.rwth-aachen.de>
Date: Mon, 24 Feb 2025 12:48:44 +0100
Subject: [PATCH] update rubocop file

---
 rails/rubocop.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/rails/rubocop.yml b/rails/rubocop.yml
index 8afa4c6..a54128b 100644
--- a/rails/rubocop.yml
+++ b/rails/rubocop.yml
@@ -15,10 +15,18 @@ AllCops:
 
 # BEGIN Customizations
 # BEGIN Layout
+# align case with its 'end' to forbid deep indentation and be consistent with variable assignments
+Layout/CaseIndentation:
+  EnforcedStyle: end # default: case
+
 # only before, enforcing also after adds too many blank lines
 Layout/EmptyLinesAroundAccessModifier:
   EnforcedStyle: only_before # default: around
 
+# prevent unnecessary deep indentation by enforcing 'end' to be at the start of the line
+Layout/EndAlignment:
+  EnforcedStyleAlignWith: start_of_line # default: keyword
+
 # indent first element one level deeper than the 'parent'
 Layout/FirstArrayElementIndentation:
   EnforcedStyle: consistent # default: special_inside_parentheses
-- 
GitLab