Skip to content

Commit ef7bebc

Browse files
committed
Use "indented" style for MultilineMethodCallIndentation
The current (default) value for this check wants chained assignments to look like: ``` foo = Foo. bar. baz ``` That is not a style I think anybody on our team habitually writes. What I think we tend to do (and which matches the `indented` style) is: ``` foo = Foo. bar. baz ``` Since AFAIK this is already the most common de-facto style we use, we should probably set that in the styleguide.
1 parent 42b2d62 commit ef7bebc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ruby/rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ Style/AlignHash:
142142
# MultilineMethodCallBraceLayout:
143143
# EnforcedStyle: new_line
144144

145+
Layout/MultilineMethodCallIndentation:
146+
EnforcedStyle: indented
147+
145148
# We prefer alias_method. This cop's documentation actually indicates that's
146149
# what it enforces, but it seems to behave exactly the opposite.
147150
Style/Alias:

0 commit comments

Comments
 (0)