Janusz Janusz - 2 months ago 5x
Android Question

How to ignore complete folders for lint checking with gradle?

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?


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

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

for example to ignore build path of that project.