2

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.

mars3142
  • 2,501
  • 4
  • 28
  • 58

1 Answers1

4

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'
        ...
    }
gio
  • 4,950
  • 3
  • 32
  • 46