ktlint icon indicating copy to clipboard operation
ktlint copied to clipboard

`chain-method-continuation` wrapping fully qualified function/constructor calls

Open bcmedeiros opened this issue 5 months ago • 12 comments

Consider the following code:

fun foo(): Foo {
    return dev.foo.p1.p2.Foo("bar")
}

Expected Behavior

Code should be accepted as is.

Observed Behavior

chain-method-continuation rule fails.

Steps to Reproduce

https://github.com/pinterest/ktlint/pull/2796

bcmedeiros avatar Sep 14 '24 14:09 bcmedeiros