Skip to content

Can we use ktlint as formatter as an alternative to the default ktfmt? #22

Open
@Nyaacinth

Description

@Nyaacinth

The main reason for posting this is ktfmt's configurability (As mentioned here by Google (ref); pointed out by ktfmt's README)

Especially when you are writing IJ Compose codes, it produces something like this:

fun main() = application { Window(title = "Conna", onCloseRequest = ::exitApplication) { App() } }

This is not expected as it produces a lot of wrapping without any line ending, and I cannot config anything, even max-line-length to prevent this. 😔

Expected:

fun main() = application {
    Window(title = "Conna", onCloseRequest = ::exitApplication) {
        App()
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions