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

Vampire

12/01/2023, 6:49 PM
How can I know whether
ktlint_code_style
and / or
ktlint_experimental
are properly respected? From what I see in https://pinterest.github.io/ktlint/latest/rules/experimental/#class-signature I would have expected that with
ktlint_experimental = enabled
in
Copy code
open class FooBar(a: Any, b: Any)

class Foo2(a: Any, b: Any)

class Foo3(
    a: Any,
    b: Any
)

class Foo6(a: Any, b: Any, c: Any) : FooBar(a, c)
Foo2
should be changed when in
ktlint_official
Foo3
should be changed when in one of the others
Foo6
should be changed in all styles But the code is not complained about / changed at all. (Could of course be due to usage of IntelliJ ktlint plugin 0.20.0-beta-4)
7 Views