You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry in advance if I missed this searching for existing reports! I looked, I swear 😄
Expected Behavior
I was recently updating our project from 0.47.0 to 0.48.2 and observed some odd-looking indentation changes made by ktlintFormat. No config changes were made, just the version bump and subsequent ktlintFormat run.
I would have expected the code below to have been left untouched:
It could be that the behavior is changed in 0.48.x. The indent rule has been rewritten from scratch. The current formatting is in sync with the behavior of IntelliJ IDEA default formatting. But the current formatting is less clear. I will take this into account with the new code style on which I am working.
Is it correct that your code sample is part of a class constructor or function signature? I did not notice the trailing comma before.
If so, than this is an intended change in order to be compatible with IntelliJ IDEA default formatting. In 0.49.x a new code style will be added that drops the requirement for being compatible with the default IDEA formatting and the continuation indent for class and function parameters will be fixed when using that code style (see #1846).
Sorry in advance if I missed this searching for existing reports! I looked, I swear 😄
Expected Behavior
I was recently updating our project from 0.47.0 to 0.48.2 and observed some odd-looking indentation changes made by
ktlintFormat
. No config changes were made, just the version bump and subsequentktlintFormat
run.I would have expected the code below to have been left untouched:
Observed Behavior
ktlintFormat
removed the indentation from the second line:I saw the same changes made elsewhere as well for code fitting the same pattern.
Steps to Reproduce
Here's a link to the raw file in case more context is needed than just the snippet above:
https://github.com/mozilla-mobile/firefox-android/blob/777a9f3ab0309cbff5758e1d34868f61560aff8d/android-components/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/DownloadsFeature.kt
Your Environment
The text was updated successfully, but these errors were encountered: