How to ignore complete folders for lint checking with gradle?

android, gradle, lint

Solution

Add to your project 'lint.xml' file with content as such:

<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <ignore path="build" />
</lint>

for example to ignore build path of that project.

Problem

I have an Android project that includes generated code. This code has some lint violations in it that I don't want to show up in the lint reports because we won't fix this code problems manually. Is it somehow possible to exclude folders in the lint check?

Original source