We are using the Sonar PR Scanner on branch builds within our Jenkin’s setup, but with certain Go-Lang based repositories, we are not getting any scan results to be reported.
Through much trial and error with debugging, we continue to see the same issue arise where the console logs note that the files within our reports folder (where we store the files for logging Sonar PR Scan results). Also, the logs are noting an issue with our direction to our source files. (we designate the folder ‘src’)
It would be greatly appreciated to get another set of eyes on this issue.
I have attached example documentation of what our configurations look like, and the console outputs observed.
We are using SonarGo plug in.
sonar.projectKey=compliance_goapi sonar.projectName=[Compliance] go sonar.go.gometalinter.reportPaths=reports/lint.txt sonar.go.coverage.reportPaths=reports/coverage.out sonar.language=go sonar.sources=./src sonar.exclusions=**/*_test.go,src/models/**/*,src/logger/**/*,src/cmd/compliance-server/main.go,src/restapi/**/*,src/rmq/ResourceRequest/*.go,src/rmq/rmqModel/model.go,src/constants/*.go,src/**/*.json,src/rmq/rmqModel/**/*
Analysis log: ConsoleLogSonarBranchScan.txt (366.4 KB)