Hi! What do you think about ktlint? Do you use it?...
# announcements
m
Hi! What do you think about ktlint? Do you use it? Does kotlin team have any plans to integrate it in the compiler toolkit, like Go and Rust? Links: https://ktlint.github.io/#getting-started https://golang.org/pkg/go/format/ https://github.com/rust-lang/rustfmt
t
I'm not using Ktlint (yet?) but I think that since Kotlin has been built with tooling in mind, most lint checks and hints offered by Ktlint are already built into IntelliJ in the form of the Kotlin plugin.
g
There is also Gradle plugin that uses headless Idea to do checks and reformat code
m
@tseisel could you enforce it to format code while compiling?
@gildor could you provide a link? Do you know similar plugin for maven?
g
Sorry, don't know anything similar for maven, but idea provides CLI interface for this
☹️ 1
d
We use ktlint here in every project, also because it can auto-format (most) issues in case an editor of a dev went havoc.