How do I create the most light task that has `type...
# detekt
u
How do I create the most light task that has
type resolution
enabled? If I run
detektMain
I'm getting both debug & release. Is that normal? (and release stuff takes way longer)
a
Disable detekt for non debug build types. That way you get type resolution but it only runs on debug.
Detekt config block provides
ignoredBuildTypes
for this.https://detekt.dev/docs/gettingstarted/gradle/#groovy-dsl-3
b
https://github.com/detekt/detekt/issues/6232 this issue is to fix that. But we are block by the android gradle plugin. There is a link in that issue to the issue I opened to Google. Any vote in that issue is more than welcome.
u
hmm.. what if I manually collect all the
detectDebug
tasks? seems to do what I want - what do you think?
b
That works too