There is a previous thread under similar title.
https://groups.google.com/forum/#!searchin/project-lombok/jacoco/project-lombok/IvwOjf0McvI/R5mHVw-WRX4JThe basic problem is that I want to ensure high code coverage because to me that means I know my code works. I also do not want to spend a bunch of time testing boiler plate code. Right now if I point jacoco at a lombok generated classes then it reports a ton of code that is all generated. I do not want jacoco to measure this.
The original idea was to annotate the byte code to with a byte code specific concept of synthetic. This was ruled out because that would remove the identifiers from code completion.
I thought I would propose an alternate solution to the same problem for community review.
Option 1
Update the retention policy on Lombok annotations to Class. This will allow code coverage tools to be configured to ignore lombok annotated methods.
Option 2
Create a new annotation named GeneratedSource give it a retention policy of Class. Code coverage tools can look for that annotation.
Note there are SuppressWarnings and Generated annotations in the jdk. However their retention policies are set to Source. So byte code analyzers never see them. If there was a way to retain these annotations in the byte code that would work as well.
Michael Power