From 27a8a3ec75b40fe2b6b95355966d59c0c7f22406 Mon Sep 17 00:00:00 2001 From: Darius Schneider <schneider@itc.rwth-aachen.de> Date: Tue, 25 Feb 2025 21:51:11 +0100 Subject: [PATCH] update rubocop for gem --- rails/rubocop-for-gem.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rails/rubocop-for-gem.yml b/rails/rubocop-for-gem.yml index 62a64e8..1c72a86 100644 --- a/rails/rubocop-for-gem.yml +++ b/rails/rubocop-for-gem.yml @@ -20,10 +20,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 -- GitLab