Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonar-scan can't parset coverage.out:ERROR: Error parsing coverage info for file /xxx/coverage.out: Invalid go coverage, expect 'mode:' on the first line. #157

Closed
eyotang opened this issue Jan 26, 2021 · 1 comment

Comments

@eyotang
Copy link

eyotang commented Jan 26, 2021

sonar-scan can't parse the coverage.out generated by 'goc profile'

ERROR:
INFO: Load project repositories (done) | time=18ms
INFO: Load coverage report from '/xxx/coverage.out'
ERROR: Error parsing coverage info for file /xxx/coverage.out: Invalid go coverage, expect 'mode:' on the first line.
INFO: Sensor SonarGo [go] (done) | time=523ms

template with one blank in instrument.go
mux.HandleFunc("/v1/cover/profile", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "mode: {{.Mode }} \n")

eyotang pushed a commit to eyotang/goc that referenced this issue Jan 26, 2021
qiniu-bot added a commit that referenced this issue Jan 26, 2021
@eyotang
Copy link
Author

eyotang commented Jan 26, 2021

after #158 ,this issue has been solved.

@eyotang eyotang closed this as completed Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant