On this page

PrerequisitesLanguage-specific propertiessonar-project.properties sampleRelated pagesIssue tracker

Go

Prerequisites

Language-specific properties

You can discover and update the Go-specific properties in Administration > General Settings > Go

By default, all the vendor directories are excluded from the analysis. However, you can change the property sonar.go.exclusions to a different pattern if you want to force their analysis (not recommended).

sonar-project.properties sample

Here is a first version of a sonar-project.properties file, valid for a simple Go project:

  sonar.projectKey=com.company.projectkey1
  sonar.projectName=My Project Name

  sonar.sources=.
  sonar.exclusions=**/*_test.go

  sonar.tests=.
  sonar.test.inclusions=**/*_test.go

Issue tracker

Check the issue tracker for this language.

© 2008-2022, SonarSource S.A, Switzerland. Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution-NonCommercial 3.0 United States License. SONARQUBE is a trademark of SonarSource SA. All other trademarks and copyrights are the property of their respective owners.

Creative Commons License