https://kotlinlang.org logo
#detekt
Title
# detekt
p

PJ Walstrom

08/08/2022, 12:29 PM
How can I get the Detekt IntelliJ-plugin to work well with the official Kotlin style-guide in IntelliJ? They seem to disagree on a number of things, e.g. Indentation
e

ephemient

08/08/2022, 12:35 PM
maybe something to ask #ktlint since detekt-formatting delegates to ktlint
https://github.com/detekt/detekt/blob/main/detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/wrappers/Indentation.kt seems to indicate that ktlint doesn't support continuation indent size (anymore?) so if that's what IJ is doing, it'll never match…
c

Colton Idle

08/11/2022, 5:18 PM
its insane how hard formatting is. ive had so much pain with ktlint. 😭
4 Views