dimsuz
09/23/2021, 4:27 PMwithType
in subprojects
while I already have this:
subprojects {
apply plugin: "io.gitlab.arturbosch.detekt"
detekt { ... }
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {
exclude("**/entity/generated/**")
}
}
And yet the file with path like this:
module/src/main/kotlin/data/network/entity/generated/AmountModel.kt:34:3
ends up being checked by detekt.
Any hints on what I did wrong? Version is 1.18.1
gammax
09/23/2021, 4:57 PM**/entity/generated/**
string thoughdimsuz
09/23/2021, 5:08 PM**/generated/**
but the errors are still there ...dimsuz
09/23/2021, 5:10 PMsubprojects
, they somehow don't work, not sure why...
Though we also have **/build/**
pattern and it seems to work... strange.Brais Gabin
09/23/2021, 5:12 PMdetekt
it should work.Brais Gabin
09/23/2021, 5:17 PMdimsuz
09/24/2021, 10:40 AMdimsuz
09/24/2021, 10:42 AMtasks.withType<com....Detect> { exclude(...) }
while type resolution has tasks like detektMain
, detektDebug
, etcdimsuz
09/24/2021, 10:52 AM