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:
23
.rubocop.yml
23
.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user