static-code-analysis-plugin icon indicating copy to clipboard operation
static-code-analysis-plugin copied to clipboard

Android productFlavors are not supported

Open sebad78 opened this issue 9 years ago • 6 comments

When using product flavors, the plugin will fail on Findbugs checks, saying no classes are configured for analysis.

This error may also affect the effectiveness of PMD's type resolution, but that's not yet confirmed.

sebad78 avatar Jun 26 '17 16:06 sebad78

More info: image

We're getting that error even with Findbugs and PMD disabled

barriosnahuel avatar Nov 24 '17 16:11 barriosnahuel

@barriosnahuel this seems to be a different issue... under which version of Gradle? Which version of the Android plugin?

jsotuyod avatar Nov 25 '17 02:11 jsotuyod

Gradle v4.1 and Android Plugin v3.0.0 cc @matiasromar who is trying to integrate it

barriosnahuel avatar Nov 28 '17 14:11 barriosnahuel

@barriosnahuel I confirm this to be a separate issue, I'm tracking it as #23

A fix should be faster / easier than supporting flavors

jsotuyod avatar Dec 06 '17 02:12 jsotuyod

@barriosnahuel I have a working fix for #23. I'll thoroughly test it, include a fix for #22 and probably make a new release.

jsotuyod avatar Dec 06 '17 03:12 jsotuyod

@jsotuyod awesome! Thank you very much!

barriosnahuel avatar Dec 06 '17 14:12 barriosnahuel