Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make error-prone ignore my generated source code?

I've recently discovered Error Prone and am integrating it into my Android build using the Gradle plugin linked on their page.

Since our project is using Icepick (and some other code generating annotation processors), we have generated source code, which gets compiled in. Unfortunately, some of the generated code triggers warnings in Error Prone, and I'd like to filter that noise out somehow.

The generated code shows up in the app/build/generated/source/apt/debug directory. How can I exempt this code from Error Prone's steely gaze?

like image 933
Argyle Avatar asked Apr 27 '26 09:04

Argyle


1 Answers

Use the flag -XepDisableWarningsInGeneratedCode

See this issue on GitHub

like image 60
ADev Avatar answered Apr 29 '26 22:04

ADev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!