I just upgraded to RC16 and generated a fresh conf...
# detekt
h
I just upgraded to RC16 and generated a fresh config (just disabled some checks), and my build fails with (paraphrased):
Copy code
$ ./gradlew detekt
...
task :some:module:detekt failed
/project/some/module/submodule/build/reports/detekt/test.xml does not exist
when trying to merge the report of
:some:module
with the reports of
:some:module:submodule
(exception thrown here: https://github.com/arturbosch/detekt/blob/1.0.0-RC16/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/output/XmlReportConsolidation.kt#L44 ) The
some:module:submodule:detekt
tasks runs before
some:module:detekt
, so I don't think it's an ordering issue – when I run just
some:module:submodule:detekt
all it generates is
detekt.html
and
detekt.xml
. My theory is that this section: https://github.com/arturbosch/detekt/blob/1.0.0-RC16/detekt-gradle-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/output/XmlReportConsolidation.kt#L44 is overeager and finds the
detektMain
and
detektTest
tasks even though they didn't run. Is there a way to disable generation of the tasks-per-source-set?