dimsuz
08/26/2022, 2:26 PMbuild/generated/sqldelight/code.../SomeFile.kt
and Detekt analyzes it and prints errors. How should I instruct it to ignore build/generated
? I recall there was some config option in gradle plugin, but cannot find it in the manual, maybe it got deprecated/removed.hfhbd
08/26/2022, 2:35 PMtasks {
fun SourceTask.config() {
include("**/*.kt")
exclude("**/*.kts")
exclude("**/resources/**")
exclude("**/generated/**")
exclude("**/build/**")
}
withType<DetektCreateBaselineTask>().configureEach {
config()
}
withType<Detekt>().configureEach {
config()
reports {
sarif.required.set(true)
}
}
}
dimsuz
08/26/2022, 2:45 PM