diff --git a/rails/rubocop-for-gem.yml b/rails/rubocop-for-gem.yml index 62a64e89fe9da8b0aa8c402783d915dccab7d7e1..1c72a8637fd0a744eba4cb105902eaa0bd391040 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