https://kotlinlang.org logo
#announcements
Title
# announcements
m

Maksim Vlasov

06/30/2019, 10:18 AM
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

tseisel

06/30/2019, 10:22 AM
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

gildor

06/30/2019, 10:52 AM
There is also Gradle plugin that uses headless Idea to do checks and reformat code
m

Maksim Vlasov

06/30/2019, 12:20 PM
@tseisel could you enforce it to format code while compiling?
@gildor could you provide a link? Do you know similar plugin for maven?
g

gildor

06/30/2019, 1:13 PM
Sorry, don't know anything similar for maven, but idea provides CLI interface for this
☹️ 1
d

dead.fish

06/30/2019, 8:38 PM
We use ktlint here in every project, also because it can auto-format (most) issues in case an editor of a dev went havoc.
4 Views