I have recently updated SonarQube to version 4.5.4 and the Java plugin to version 3.5.
We have classes annotated with @Data
, but it seems that the rule squid:S1068
doesn't handle this "special" annotations. Altough they should be ignored since version 3.4 according to https://github.com/SonarSource/sonar-java/pull/257 and https://jira.sonarsource.com/browse/SONARJAVA-990.
Please see attached screenshot. Did I forget to configure something?
UPDATE:
I wanted to ensure that our used Java plugin 3.5 has included the changes of commit https://github.com/benzonico/sonar-java/commit/5e7de16f59450061227d4103f64e351d1f93d9e9 so I reverse engineered the .jar file to see the source of rule squid:S1068
UnusedPrivateFieldCheck.java
. Extended Lombok releated changes are there and apparently working!
mvn sonar:sonar -Dsonar.branch=some_branch_name
. I think we do not provide the bytecode currently. @Callus Thats a very useful statement, I'm going to try your suggestion now – Iphagenia