8

Problem:

When I execute gradle lint it lint both product flavors. One is not ready, so it fails always (not all the strings are there).

What i want:

I really want some option to say lint only this product flavor

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Extranion
  • 588
  • 8
  • 25

1 Answers1

16

You can run:

gradle lintFlavorType

Also, in your build.gradle you can add this option

android {
    lintOptions {
        // if true, stop the gradle build if errors are found
        abortOnError false
    }
}
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • 11
    Just to clarify for someone else that stumbles on this, when Gabriele says lintFlavorType, Type refers to the build configuration (e.g. Debug vs. Release). So if you had a Pro flavor you might do: gradle lintProRelease –  Jul 01 '14 at 21:10