From c9676b8c3e4d3b9827c921fae89c816121804d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 18 Jul 2023 14:22:41 +0200 Subject: [PATCH] Enable alignment-related rubocop rules Even though we always follow these rules, this'll make it easier to run Rubocop with `--autocorrect` when we're applying multiline rules. --- .rubocop.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index a7c32aafe..1652ce3e3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -27,18 +27,32 @@ Layout/ArrayAlignment: Layout/AssignmentIndentation: Enabled: true +Layout/BeginEndAlignment: + Enabled: true + EnforcedStyleAlignWith: begin + Layout/BlockAlignment: Enabled: true +Layout/BlockEndNewline: + Enabled: true + Layout/ClosingHeredocIndentation: Enabled: true Layout/ClosingParenthesisIndentation: Enabled: true +Layout/DefEndAlignment: + Enabled: true + EnforcedStyleAlignWith: def + Layout/DotPosition: Enabled: true +Layout/ElseAlignment: + Enabled: true + Layout/EmptyLineAfterGuardClause: Enabled: true @@ -63,6 +77,9 @@ Layout/EmptyLinesAroundMethodBody: Layout/EmptyLinesAroundModuleBody: Enabled: true +Layout/EndAlignment: + Enabled: true + Layout/EndOfLine: EnforcedStyle: lf @@ -126,6 +143,12 @@ Layout/MultilineMethodCallIndentation: Layout/MultilineOperationIndentation: Enabled: true +Layout/ParameterAlignment: + Enabled: true + +Layout/RescueEnsureAlignment: + Enabled: true + Layout/SpaceAfterColon: Enabled: true