-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
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
intellij_idea style contradicts IntelliJ formatting for indentaton within when
#2808
Comments
Sometimes they fix bugs in the default formatting of Intellij IDEA as well. At least up and until |
paul-dingemans
added a commit
that referenced
this issue
Oct 19, 2024
Determines whether an arrow in a when-entry should be indented when it starts on a new line. For code styles `intellij_idea` and `android_studio` this property needs to be set to `true` to keep formatting compatible with default IDEA Formatting when using IDEA version `2024.2` or above. Closes #2808
8 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Expected Behavior
ktlint does not match IntelliJ code formatting. IntelliJ indents the
->
another 4 spaces, but ktlint wants it back out to line up withfoo
Observed Behavior
See comments in code
Steps to Reproduce
Run ktlint on the included code snippet.
Your Environment
.editorconfig
settingsThe text was updated successfully, but these errors were encountered: