Hey Sonar, my company is using SonarQube(Developer Edition - Version 10.4.1) and using lombok annotation for our entities. But when it comes to the sonarqube report it says:
Unused “private” fields should be removed
So we have added this content in our lombok.config file for all our repositories:
# This tells lombok that this directory is the root.
config.stopBubbling = true
# Add the @lombok.Generated annotation to all the code generated by Lombok, so it can be excluded from code coverage.
lombok.addLombokGeneratedAnnotation = true
But even with this added the same issue happens and one of the repository the coverage dropped by 0.2%
We want to avoid SonarQube from scanning lombok annotations and creating issues related to it