Question: I am using Android lint with Jenkins and need to ignore library projects (specifically Action Bar Sherlock) that my team does not modify so that we can get useful results from Android lint. At the moment I am launching lint from the command line and saving the results to an XML file that can then be read by Jenkins. What I can't seem to do though is ignore library projects. In Eclipse you can explicitly disable scanning of library projects but I can't figure out if there is a corresponding command line argument for this.

I have come up with a few different work-arounds for this issue but none of them are ideal. I am using lint 22.0.5. Thanks.

Answer: 
This is how I do it with Jenkins and Gradle:

* Configure the Jenkins post-build action "Publish Android Lint Results" to pick up only the lint-results.xml of the main project. The default is \*\*/lint-results.xml and includes lint results of library projects.
* Set `abortOnError false` in the build.gradle file in library projects to ignore lint errors there.
Put this in `lint.xml` in project root directory:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <issue id="all">
        <ignore path="path_to_library/**" />
    </issue>
</lint>

```