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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
else if () { }
Should stay as is
It gets formatted to
else { if () { } }
val x = if (showFilter) { 1 } else if (activeTabIndex.value == 0) { 2 } else { null } ?: 0
-->
val x = if (showFilter) { 1 } else { if (activeTabIndex.value == 0) { 2 } else { null } ?: 0 }
.editorconfig
The text was updated successfully, but these errors were encountered:
Tnx for reporting. It is just in time to be fixed in next release.
Sorry, something went wrong.
Similarly the example below should be accepted without reformatting as well:
val foo = if (bar1) { "bar1" } else if (bar2) { "bar2" } else { "bar3" }.plus("foo")
An if-else followed by an elvis operator should not be wrapped in an …
114dcf7
…else-block Closes #1904
5e46778
Successfully merging a pull request may close this issue.
Expected Behavior
Should stay as is
Observed Behavior
It gets formatted to
Steps to Reproduce
-->
Your Environment
.editorconfig
settingsThe text was updated successfully, but these errors were encountered: