Join Slack
Powered by
best linter available for kotlin with gradle / in...
# announcements
b
Brian Dilley
03/24/2021, 5:04 AM
best linter available for kotlin with gradle / intellij support?
r
rnett
03/24/2021, 6:19 AM
https://github.com/pinterest/ktlint
is the only one I've used. Intellij has pretty good built in capabilities, too.
b
Brian Dilley
03/24/2021, 6:42 AM
thanks, tried that out and it seems ok. is making linting part of a build just not a normal thing with kotlin?
e
ephemient
03/24/2021, 7:28 AM
Gradle:
https://github.com/jeremymailen/kotlinter-gradle
or
https://github.com/JLLeitschuh/ktlint-gradle
or write your own
ephemient
03/24/2021, 7:28 AM
IDE: Detekt uses ktlint for formatting rules, and has an IntelliJ plugin
https://plugins.jetbrains.com/plugin/10761-detekt
☝️ 1
ephemient
03/24/2021, 7:29 AM
in fact, might as well use the Detekt Gradle plugin too - my team uses both kotlinter-gradle and detekt-gradle for different things
➕ 2
5
Views
Open in Slack
Previous
Next