-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultilineMethodCallIndentation false positive? #3468
Comments
I think this is fixed in #3464 -- want to check and maybe review that fix? |
Actually I misread, it's unrelated 😬. I think your concern can be fixed by changing the configuration to match your preference. |
I just don't see how my code is related to the examples in the documentation: http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Style/MultilineMethodCallIndentation I don't see why it would look a the |
I see what you're saying. Agreed, that looks like a bug in the output of the message. FWIW, the following config produces no offenses and I believe is more in line with your preference: MultilineMethodCallIndentation:
EnforcedStyle: indented |
I don't agree, I think changing the style is a workaround. If I remove the begin block, then there are no complains without changing the style. |
We already have special handling for a number of keywords when it comes to multiline indentation/alignment. Add kwbegin to the list.
When running RuboCop on a file with the following content:
I get the following offenses:
Is that the expected behavior? Following what RuboCop suggests, I would need to write the code like this:
Formatting the code like that looks very strange to me. Is anyone actually writing code formatted like that?
0.42.0 (using Parser 2.3.1.2, running on ruby 2.1.5 x86_64-darwin15.0)
The text was updated successfully, but these errors were encountered: