Hi SonarSource team,
I am using version 6.7.5 of SonarQube and Jacoco Agent 0.8.2 on the app servers, and I am facing an issue where all my metrics like code smells get published, but “Code Coverage” is zero percent.
I have noticed that when I run mvn sonar:sonar from my laptop to publish report from my jacoco.exec, I get the following non-critical error regarding Lizard Report:
[INFO] Sensor Cobertura [backelitesonarswiftplugin] (done) | time=0ms
[INFO] Sensor Lizard [backelitesonarswiftplugin]
[INFO] Processing complexity report
[ERROR] Lizard Report not found /home/kram/C_C/trial2/app/appReportMetaDataLibrary/sonar-reports/lizard-report.xml
java.io.FileNotFoundException: /home/kram/C_C/trial2/app/appReportMetaDataLibrary/sonar-reports/lizard-report.xml (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
...
...
[INFO] Saving results of complexity analysis
[INFO] Sensor Lizard [backelitesonarswiftplugin] (done) | time=1ms
[INFO] Sensor FindBugs Sensor [findbugs]
I am interested in knowing:
- Why does it look for the xml report, when I have the binary exec data available? Has publishing from exec data been deprecated?
- If deprecated, where can I enable the Lizard report?
- If not deprecated, how do I force sonar to look only at the exec file?
Thanks in advance.