I'm trying to ignore Lombok code (generated code) from Sonar analysis based on files which have a custom annotation, @ExcludeLombok
.
I've tried this guide which did not work.
In fact, I've even tried excluding an entire directory from analysis and it still wouldn't work.
I've also tirelessly searched through StackOverflow looking for a solution, and I've seen this has been discussed a good bit on here, but I've seen that people have been suggesting to write a single test to get the coverage up, which is pointless since we should not test auto generated code.
The solution I'm looking for is to exclude files based on a custom annotation. But so far, anything I attempt to exclude does not get excluded.
Any help would be greatly appreciated.