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.
This commit is contained in:
Javi Martín
2023-07-18 14:22:41 +02:00
parent cbda85c48d
commit c9676b8c3e

View File

@@ -27,18 +27,32 @@ Layout/ArrayAlignment:
Layout/AssignmentIndentation: Layout/AssignmentIndentation:
Enabled: true Enabled: true
Layout/BeginEndAlignment:
Enabled: true
EnforcedStyleAlignWith: begin
Layout/BlockAlignment: Layout/BlockAlignment:
Enabled: true Enabled: true
Layout/BlockEndNewline:
Enabled: true
Layout/ClosingHeredocIndentation: Layout/ClosingHeredocIndentation:
Enabled: true Enabled: true
Layout/ClosingParenthesisIndentation: Layout/ClosingParenthesisIndentation:
Enabled: true Enabled: true
Layout/DefEndAlignment:
Enabled: true
EnforcedStyleAlignWith: def
Layout/DotPosition: Layout/DotPosition:
Enabled: true Enabled: true
Layout/ElseAlignment:
Enabled: true
Layout/EmptyLineAfterGuardClause: Layout/EmptyLineAfterGuardClause:
Enabled: true Enabled: true
@@ -63,6 +77,9 @@ Layout/EmptyLinesAroundMethodBody:
Layout/EmptyLinesAroundModuleBody: Layout/EmptyLinesAroundModuleBody:
Enabled: true Enabled: true
Layout/EndAlignment:
Enabled: true
Layout/EndOfLine: Layout/EndOfLine:
EnforcedStyle: lf EnforcedStyle: lf
@@ -126,6 +143,12 @@ Layout/MultilineMethodCallIndentation:
Layout/MultilineOperationIndentation: Layout/MultilineOperationIndentation:
Enabled: true Enabled: true
Layout/ParameterAlignment:
Enabled: true
Layout/RescueEnsureAlignment:
Enabled: true
Layout/SpaceAfterColon: Layout/SpaceAfterColon:
Enabled: true Enabled: true