Title
m

marcinmoskala

02/06/2019, 12:01 PM
What do you use or prefer, KtLint vs Detekt? Why?
s

sngrekov

02/06/2019, 12:12 PM
We use both. Ktlint is mostly for code style checks, and Detekt's main target are code smells.
1
4
u

4ntoine

02/06/2019, 12:30 PM
@sngrekov Does Ktlint have ready set of rules equal to official Jetbrains’ code style?
a

Alan Evans

02/06/2019, 12:41 PM
It only has that.
No configuration. Which means no decisions to make, nothing to argue about and no special files to manage.
While this might sound extreme, keep in mind that ktlint tries to capture (reflect) official code style from kotlinlang.org and Android Kotlin Style Guide (+ we respect your .editorconfig and support additional ruleset|s).
u

4ntoine

02/06/2019, 12:44 PM
@Alan Evans Thanks for pointing! However it seems to be not all the rules: https://github.com/shyiko/ktlint/#standard-rules Anything not (yet) supported?
a

Alan Evans

02/06/2019, 12:45 PM
True, I suppose it may be incomplete.
s

sngrekov

02/06/2019, 1:40 PM
@4ntoine Yes, Kotlin's official styleguide it is not fully covered by Ktlint
m

marcinmoskala

02/06/2019, 10:41 PM
Thanks @sngrekov and @Alan Evans. It was helpful 🙂
👍 1