Reputation: 2561
I want to execute some of the 11 disabled checks. The Android Lint documentation just said about this
Some checks are disabled by default. These can be enabled by adding the --enable flag.
How can I activate them for my gradle build? I can't find any options to do that within the build.gradle
or lint.xml
file.
Upvotes: 2
Views: 915
Reputation: 5020
From Lint Support
As of version 0.7.0, you can run lint for a specific variant, or for all variants, in which case it produces a report which describes which specific variants a given issue applies to.
You can configure lint by adding a lintOptions section like following. You typically only specify a few of these; this section shows all the available options.
android { lintOptions { ... enable 'RtlHardcoded','RtlCompat', 'RtlEnabled' ... }
Upvotes: 4