Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nyaacinth opened this issue Sep 2, 2024 · 0 comments
Open

Comments

@Nyaacinth
Copy link

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()
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant