Skip to content

chain-method-continution should take priority over argument-list-wrapping #2451

@mklnwt

Description

@mklnwt

chain-method-continution should take priority over argument-list-wrapping.

// Assume that the last
// allowed character is
// at the X character
// on the right             X
val foo = Bar.builder().baz(1).build()

Expected Rule behavior

val foo = Bar.builder()
    .baz(1)
    .build()

Current Behavior

val foo = Bar
    .builder()
    .baz(
        1,
    ).build()

Additional information

  • Current version of ktlint: 1.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions