SonarGo coverage not scanning Go files that are in the sonar server

Hi Sonar Community,

My team is trying to analyze Golang files with SonarGo. We are using the mvn-golang plugin (, the maven scanner version is, SonarQube is version 6.7.4, and SonarGo is 1.1.0.
I see the files I want to scan are showing up at the sonar server, however, when I try to load the coverage report, I get warnings telling me the file “is not included in the project, ignoring coverage”.
Please let me know if I need to provide any other information! Thanks!!



can you post your analysis logs and structure of your project? Also if you can include the coverage report. I am not familiar with mvn-golang plugin, try to run with -X option so we have more logs.

Hi Tibor,

Sure, there a tons of logs and I’m not totally sure if this is what you’re looking for, so please tell me if I should send more:
Here are my analysis logs:
Analysis Logs.txt (8.3 KB)

The structure of my project is ecdm/adm/adm-agent-core/src/, and i have several directories within / with golang files I want to scan.

And here is a few lines of the coverage report (in total, the original is around 30.5k lines):
Partial Coverage Report.txt (2.3 KB)

I’m not sure if I’ve given you enough info, so please let me know if it’s not enough or if you need anything else, thank you!

This is same as

Please let’s keep discussion in one place, preferably here, otherwise is difficult to collect all the information. Also don’t comment on closed issues.

Would it be possible for you to create small example repository repository reproducing the issue? You can also use to do the analysis.

per GitHub issue, the solution is to setup the GOPATH before running the scanner

Thanks for your time Tibor! We have resolved our issue with how Dan described