Fix indent issues with continuation indent#4103
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4103 +/- ##
=========================================
Coverage 83.58% 83.58%
Complexity 3187 3187
=========================================
Files 459 459
Lines 9101 9101
Branches 1772 1772
=========================================
Hits 7607 7607
Misses 561 561
Partials 933 933 Continue to review full report at Codecov.
|
|
You're not alone, I've also noticed this - but isn't this just changing the IntelliJ config to make ktlint happy? It should be the other way around. I think ktlint has problems with continuation indents so my preference would be to turn off that rule if it's not working correctly instead of changing the default IntelliJ code style. |
Well, that depends if we want to have continuation indentation of size 8 or 4. I prefer them to be of size 4. And because, right now, all the code uses identation of size 4 (because of ktlint) I think that it's ok to continue with indent of 4. |
I don't know if I'm the only one that when there are some continuation indents in a file, if I autoformat them with IntelliJ they are indented with 8 spaces and when that code is pushed the ktlint rules complain about it.
This PR fixes that. It defines the desired indent so IntelliJ and ktlint are aligined.