Skip to end of metadata
Go to start of metadata

NOTE This feature requires SQ 7.2+ and SonarGo 1.1+.

Import of GoVet Reports

SonarGo allows to import into SonarQube/SonarCloud issues generated by GoVet. Here is an example of command generating a GoVet report.

go vet 2> govet-report.out


To import "govet-report.out" you need to feed the property "sonar.go.govet.reportPaths". This property accepts one or more GoVet reports, paths to report files should be absolute or relative to the project base directory.

sonar.go.govet.reportPaths=govet-report.out

Import of GoLint Reports

SonarGo allows to import into SonarQube/SonarCloud issues generated by GoLint. Here is an example of command generating a GoLint report.

golint > golint-report.out


To import "golint-report.out" you need to feed the property "sonar.go.golint.reportPaths". This property accepts one or more GotLint reports, paths to report files should be absolute or relative to the project base directory.

sonar.go.golint.reportPaths=golint-report.out

Import of GoMetaLinter reports

SonarGo allows to import into SonarQube/SonarCloud issues generated by the GoMetaLinter. Here is an example of command generating required report.

gometalinter > gometalinter-report.out


To import "gometalinter-report.out" you need to feed the property "sonar.go.gometalinter.reportPaths". This property accepts one or more GoMetaLinter reports, paths to report files should be absolute or relative to the project base directory.

sonar.go.gometalinter.reportPaths=gometalinter-report.out
  • No labels