1

I am using gradle lint plugin in my Android project on CI Server. But sometimes I want to run android lint only on custom files, just like gradle Copy Task include and exclude to defined task scope in my gradle task.

In Android Studio, inspection can defined these behavior. But in my case, it is gradle task run on CI Server without UI interaction.

1 Answers1

0

I don't think the Gradle Plugin is capeable of that. However you can also run lint on it's own.

lint [flags] <project directory>

You can get all of the options with:

lint --help

The executable is located in $ANDROID_HOME/tools/

More information here.

Niklas
  • 23,674
  • 33
  • 131
  • 170
  • You are right. The Gradle Plugin is not capable of that. What I am trying to do is to use custom lint for a huge project. But still didn't find a great way to approach that – Quinlan Zhong Feb 11 '18 at 03:46