We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Original code:
val result = sequence(Person("alice", 25), Person("bob", 20), Person("charlie", 30)) .ktMap("MapExtractName") { it.name }
Expected result after ktfmt:
Actual result:
val result = sequence(Person("alice", 25), Person("bob", 20), Person("charlie", 30)).ktMap( "MapExtractName" ) { it.name }
The text was updated successfully, but these errors were encountered:
A similar example, possibly related:
val foo = aCall(withALongParameter).anotherChainedCall(withAnotherLongParameter).andAnother().arrayHere[ 100] .apply { // something }
Sorry, something went wrong.
v0.49 gets us this:
val result = sequence(Person("alice", 25), Person("bob", 20), Person("charlie", 30)).ktMap( "MapExtractName") { it.name } val foo = aCall(withALongParameter) .anotherChainedCall(withAnotherLongParameter) .andAnother() .arrayHere[100] .apply { // something }
I still dislike the first one as it does not make things any clear. I do think the second case is good though.
No branches or pull requests
Original code:
Expected result after ktfmt:
Actual result:
The text was updated successfully, but these errors were encountered: