:question:I want to enable the rules with type res...
# detekt
p
I want to enable the rules with type resolution in my Gradle multi-module project. For this I use the
detektMain
task instead of
detekt
. This works when executing it manually, but when running the
build
task still the
detekt
task is executed, or am I wrong? Is it possible to also use the
detektMain
task for this?
m
You can configure the build task to depend on detektMain.
p
Is that executing both
detekt
and
detektMain
as a consequence?
m
Yes, that would be the case.
p
I manually added the dependency to the detekMain task and removed the detekt task to prevent running multiple detekt tasks. This feels like a workaround. Are there plans for a kind of plugin configuration for this?