novoda/gradle-static-analysis-plugin

CollectViolations is skipped when xml is not available

tasomaniac opened this issue · 1 comments

To be able to collect the number of errors and warnings and then fail the build accordingly, we really depend on availability of xml reports.

At least for detekt, when xml report is disabled, we just ignore/skip. This causes the build to be successful even when there are errors.

We should warn user in configuration time and ask them to enable reports.

I see that the tools might skip creating the report file when there are no errors/warnings to report. That's why we have onlyIf {} in there. So this is working as expected.