Hi , Detekt wrapper for ktlint does not check or f...
# detekt
a
Hi , Detekt wrapper for ktlint does not check or format build.gradle file like ktlint do. is there a way to enable this ?
g
It does as long as those are .kts files
a
hi Nicola , i see in my project that build.gradle is also of type .kts , the wrapper work for everything else except for that file . here's detekt config;
Copy code
detekt {
    toolVersion = "1.22.0-RC2"
    config =files("config/detekt/detekt.yml")
    buildUponDefaultConfig = true
    autoCorrect = true
    parallel = true
    ignoreFailures = false
}
after many tries I added this line and it finally worked 🙂
Copy code
source = files("src/main/kotlin","src/test/kotlin", "$projectDir/build.gradle.kts")
g
Awesome