https://kotlinlang.org logo
Title
j

Jakub Gwóźdź

12/28/2018, 10:23 AM
Hi. Are there any mature gradle plugins and/or just command line tools to enforce official coding conventions? Something like eslint for .js, or checkstyle for java?
h

Hamza

12/28/2018, 10:23 AM
If you’re using IDEA, u can set the coding style to
official
t

Tolriq

12/28/2018, 10:25 AM
j

Jakub Gwóźdź

12/28/2018, 10:25 AM
I'm thinking about CI builds
h

Hamza

12/28/2018, 10:25 AM
j

Jakub Gwóźdź

12/28/2018, 10:25 AM
Thanks @Tolriq
t

Tolriq

12/28/2018, 10:26 AM
detekt does more and have a wrapper for ktlint too 🙂 But still frequent breaking changes until 1.0 is out and "mature" was a requirement 😉
h

Hamza

12/28/2018, 10:26 AM
oh, right
g

gildor

12/28/2018, 11:11 AM
Official plugin (but not so mature yet) https://github.com/JetBrains/inspection-plugin It has one big advantage (at least in theory) you always has exactly the same formatting as in IDE and all the inspections
👍 2