rickchengx commented on issue #11074:
URL: 
https://github.com/apache/dolphinscheduler/issues/11074#issuecomment-1200152306

   Hi, @kezhenxu94 @SbloodyS @EricGao888 
   So we need to exclude the `Lombok` generated code during the coverage tests 
and make the code coverage results of `Sonar` more meaningful.
   One possible solution is to create a `lombok.config` file in the root of the 
project and add the config below:
   ```
   lombok.addLombokGeneratedAnnotation = true
   ```
   which makes Lombok to add @lombok.Generated annotation to all generated 
methods so that Jacoco will automatically ignore the lombok auto generated code.
   
   Ref:
   
https://community.sonarsource.com/t/getting-meaningful-coverage-results-in-sonarqube-when-using-jacoco-and-lombok/13821
   https://projectlombok.org/features/configuration
   
   WDYT


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to