We are using:
- Sonar-scanner-cli v.126.96.36.1993
We use Gradle to build our Java code and sonar-scanner to analyse it, but sonar-scanner generates false-positive codesmells regarding Lombok library, for example: “Remove this unused “fname” private field” or “Add a private constructor to hide the implicit public one”.
We have faced similar issues with sonar-scanner and Maven projects as well, and we used the following plugin: http://javaln.blogspot.com/2019/09/sonar-lombok-maven-jacoco.html in order to generate lombok .jar files. Then we set sonar.java.libraries property accordingly to point to the location of these .jars, in our sonar-project.properties file and the problem was solved.
However, we cannot find anything similar in order to generate lombok .jar files for Gradle projects. Do you know if there is such a setting or maybe another way to resolve this issue in Gradle? Please note that we need to avoid creating custom rules.