-
Notifications
You must be signed in to change notification settings - Fork 508
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
ktlint formatter removes indentation when it should not #1138
Comments
In december 2020 I have prepared several Pull Requests which fixes a lot of indentation problems. The first one (#1052) of a series of 5 PR's or so however is still not merged. :-( |
Just had another look at this issue. This is not an issue caused by the |
The problem can not be reproduced in version 0.43.2. Output is now:
|
Closing issue as no response was received in last month. |
Here is the originial and formatted code by ktlint
0.41.0
. I renamed stuff here since I can not share the actual company code.Original code:
Formatted code:
Expected Behavior
The indentation for
): CardComponent<
line should not be removed. Also AS formats it correctly. If I run AS formatter on the code which is already formatted by ktlint, it will bring the indentation back and correct it.Observed Behavior
As posted in the code, the indentation is removed where is should not.
Steps to reproduce
Run ktlint on the original code! I din't tried it on separate file though
Your Environment
The text was updated successfully, but these errors were encountered: