-
-
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
Check indentation of conditionals spanning multiple lines #1321
Comments
Sounds like a task for the mighty @jonas054 :-) |
😊 Alright. |
I'm slowly working towards a solution, just so you know. 😄 There are quite a few cases to consider. |
@jonas054 You should also consider cases like:
Ideally, |
I’d vote for consistent 2-space indentation anytime:
Maybe it should be a configuration option? |
This obscures that you're actually continuing the condition, not the
I'm fine with that, as long as vertical alignment is the default. |
@bquorning 👍 on configuration option. @bbatsov Your vertical alignment idea looks pretty good. It's just that it's not how emacs indents it (maybe you have a better ruby-mode than I do). And it's not the style we've used in our own code. Are you sure you want to make it the default? |
This was changed in 24.4.
In the beginning I was still using Emacs 24.3. :-) Yeah, seems like a pretty good default to me (and it's consistent with what you get in the presence of parens. |
Good! That settles it. I'll get working. |
When breaking a line into multiple lines, we should check the indentation of the all lines, not just the first one.
The text was updated successfully, but these errors were encountered: