https://kotlinlang.org logo
#ktlint
Title
# ktlint
i

igor.wojda

03/10/2024, 4:01 PM
I have updated ktlint and not is is formatting subsequent parent interfaces by adding extra indent:
Copy code
internal class KoTypeDeclarationCore private constructor(
    override val ktTypeReference: KtTypeReference,
    override val containingDeclaration: KoBaseDeclaration,
) :
    KoTypeDeclaration,
        KoBaseProviderCore, //extra indent
        KoNameProviderCore, //extra indent
Is this intentional? What is the name of the ktlint rule?
p

Paul Dingemans

03/10/2024, 6:30 PM
This does not seem intentional. What was your old version?
i

igor.wojda

03/11/2024, 4:40 PM
I don't really get it but works as expected now (no indent) 🤔 Just for reference I have upgraded Spotless 6.21.0 to 6.2.5 6.21.0 (running I believe ktlint 1.1.1) to 6.2.5 (manually overriden ktlint to 1.2.1 in spotless config)
2 Views