Skip to content
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

When case formatting #58

Closed
meoyawn opened this issue Jun 15, 2017 · 1 comment
Closed

When case formatting #58

meoyawn opened this issue Jun 15, 2017 · 1 comment

Comments

@meoyawn
Copy link

meoyawn commented Jun 15, 2017

ktlint says I have unnecessary spaces here

when {
    true         -> 1
    true && true -> 2
    else         -> 3
}

but these are not unnecessary

@shyiko
Copy link
Collaborator

shyiko commented Jun 15, 2017

@adelnizamutdinov ktlint does not allow vertical alignment on purpose* (there are exceptions like class/function arg list or comments but when expression is not one of them). Intellij IDEA formatter (with default settings) is more or less doing the same.

@shyiko shyiko closed this as completed Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants