novoda/gradle-static-analysis-plugin

Run check for a particular flavor/build type

bblackbelt opened this issue · 1 comments

Hi,

would it be possible to run gradlew check for a specific combination of flavors/build type ?

EG.

gradlew checkFlavorDebug

thanks

Hi, in the configuration, you have the option to filter per variant. It gives you the whole variant object where you can filter per flavor or buildType (debug/release). Sample project's build.gradle has an example.

If you do this, you need to run evaluateViolations task and that will do that for you.