You can add static code analysis to kotlin using detekt
. Below is the basic configuration, for more details about configuration and rules go to project page: https://arturbosch.github.io/detekt/.
//add to top-level gradle file
buildscript {
ext {
detektVersion = '1.0.0.RC7'
}
repositories {