-
Notifications
You must be signed in to change notification settings - Fork 503
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
Indentation on lambda's closing brace #479
Comments
Hmm... I don't really know. The IntelliJ and the ktlint format both seem a little bit wrong. |
@bethcutler I think IntelliJ is right:
It looks like the bug is that |
* Fixing bug with extra indentation after lambda arrow Fixes #479 * Adding tests
* Fixing bug with extra indentation after lambda arrow Fixes pinterest#479 * Adding tests
* Fixing bug with extra indentation after lambda arrow Fixes pinterest/ktlint#479 * Adding tests
What's the correct way to format this?
Intellij formats it as this:
But ktlint expects this:
The solution is a bit more obvious when the params can fit on the same line as the opening brace:
The text was updated successfully, but these errors were encountered: