for what it's worth, Detekt uses ktlint for formatting rules (as well as adding many more rules) and has functional Gradle and IDE plugins. there's a compiler plugin too, which can help speed up your overall build by doing compile+lint in a single pass.