diff --git a/rails/rubocop-for-gem.yml b/rails/rubocop-for-gem.yml
index a1eeddbbaa5104b28756cd03055612d2546b7c88..a7fbf01654f97c9392813c3c99f2883383094d92 100644
--- a/rails/rubocop-for-gem.yml
+++ b/rails/rubocop-for-gem.yml
@@ -21,10 +21,18 @@ Gemspec/RequireMFA:
 # END Gemspec
 
 # 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