I’ve tried to make custom rule for Detekt and I ha...
# detekt
n
I’ve tried to make custom rule for Detekt and I having an issue to make detekt task run updated version of rules.
Copy code
tasks.withType<Detekt> { dependsOn(":my-rules:assemble") }
I’ve added similar configuration to all my modules, but when I change my custom rule and run
detekt
old version of the rule instead of new one is launched. Only project clean + detekt helps me. Configuration and build cache are enabled. How I can ensure that the newest version of rules is launched.
b
n
Thank you very much this was not obvious. So
detekt.use.worker.api=true
in
gradle.properties
should fix my issue?
b
it should