i use sonar golint plugin to scan my go project ,local scan log is success but report to sonarqube all check list is zero,the scan command is as follows:
sonar-scanner -Dsonar.projectKey=1739:kci-backend -Dsonar.projectName=kci-backend -Dsonar.projectVersion=1.0 -Dsonar.sourceEncoding=UTF-8 -Dsonar.sources=. ‘-Dsonar.exclusions=/*_test.go, /vendor/, /swagger/, /.git/**’ -Dsonar.coverage.reportPath=cover.out -Dsonar.golint.reportPath=report.xml
Anybody answer? Thank you very much
my sonarqube version is 6.7.5 ,now my local sonar check report.xml has get normal results , but report to sonarqube ,all check list is zero,
the scan command is as follows:
sonar-scanner -Dsonar.projectKey=1739:kci-backend -Dsonar.projectName=kci-backend -Dsonar.projectVersion=1.0 -Dsonar.sourceEncoding=UTF-8 -Dsonar.sources=. ‘-Dsonar.exclusions= /*_test.go, /vendor/ , /swagger/ , /.git/**’ -Dsonar.coverage.reportPath=cover.out -Dsonar.golint.reportPath=report.xml
sonarqube golint plugin settings as follow:
Quentin
(Quentin Jaquier)
September 3, 2020, 12:47pm
4
Hello @lixiaoxin
SonarQube version 6.7.5 is already pretty old and not officially supported anymore.
I’m afraid you will have a hard time finding any help, you should consider updating SonarQube.
Best,
Quentin
lixiaoxin
(小鑫 李)
September 11, 2020, 3:41am
5
Thanks for reply,we are considering upgrade
system
(system)
Closed
September 18, 2020, 3:41am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.