Is it expected that ktlint disagrees with IntelliJ regarding indentation of
Copy code
a &&
b
(ktlint)
vs.
Copy code
a &&
b
(IntelliJ)
?
s
Sha Sha Chu
06/17/2023, 2:05 AM
both seem wrong in my opinion :) but ktlint seems less wrong?
v
Vampire
06/17/2023, 2:06 AM
Why?
The official code style does not have any rule for how to conitinue a wrapped binary expression as far as I have seen
Vampire
06/17/2023, 2:06 AM
So using the usual double-indent seems more logical to me
Vampire
06/17/2023, 2:08 AM
Besides that how IntelliJ is doing it is done by the inventors of the language and the coding conventions.
s
Sha Sha Chu
06/17/2023, 2:14 AM
sure. feel free to file a bug. I guess to answer your original question no I don't think it was a deliberate choice to not match the intellij formatter