-
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
Missing spacing after "}" when trying to format data class #1560
Comments
I tried running this release, which resulted in this:
After adding braces to the branches it works, though:
The previous ktlint (0.45.2) worked fine, btw. Output after first format run (notice the missing space after the curly brace before
|
|
…ultiline-if-else` Closes pinterest#1560
Expected Behavior
Code should format without error.
Observed Behavior
When trying to format the code (can also be seen in the attached reproduction), this occurs:
Steps to Reproduce
Reproduction.zip
Download the reproduction and format the code via
./gradlew spotlessApply
Your Environment
.editorconfig
settingsThe text was updated successfully, but these errors were encountered: