Skip to content

Instantly share code, notes, and snippets.

@filipegorges
Created May 18, 2020 19:34
Show Gist options
  • Save filipegorges/3e308aa167823a2f918122f7ce5e1d0f to your computer and use it in GitHub Desktop.
Save filipegorges/3e308aa167823a2f918122f7ce5e1d0f to your computer and use it in GitHub Desktop.
Sonarqube properties file for Go project
sonar.projectKey=example
sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/vendor/**
#go test ./... -v -coverpkg=./... -coverprofile=coverage.out
sonar.go.coverage.reportPaths=coverage.out
#go test **/*_test.go -json > test-report.out
sonar.go.tests.reportPaths=test.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment