SonarQube Lombok Recognition Getter

I am using SonarQube 4.5.4 with the Java 3.1 plugin. Since I know that this version of sonar-java supports Lombok partially (Getter and Setter annotations) since 2.8 .
But in my case, it still tells the field with lombok.Getterhow:

squid:S1068  Unused private fields should be removed:
@Getter
private String userName;

Do you have any idea why this could happen, and where can I fix it?

Update

For bytecode, I tried both sonar.java.binaries, and sonar.binaries I use sbt and do sonar analysis for below sonar-project.properties

sonar.projectVersion=0.1
sonar.java.binaries=\
    target/scala-2.11/classes,\
    target/scala-2.11/test-classes

sonar.sourceEncoding=UTF-8

sonar.projectName=projectName  
sonar.host.url=http://hostname:9000  
sonar.login=login  
sonar.password=password  
sonar.projectKey=projectKey:webJava  
sonar.modules=app  
app.sonar.projectBaseDir=web  
app.sonar.sources=app  
app.sonar.tests=test

sonar.analysis.mode=preview  
sonar.issuesReport.lightModeOnly=false
+4
source share
1 answer

(.. ) sonar.java.libraries , , .

+6

All Articles