Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
sonar-scanner

Here is a good first version of a sonar-project.properties, correctly excluding some "vendor" directories and categorizing files as "main" or "test":

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


sonar.sources=.
sonar.exclusions="**/*_test.go,**/vendor/**"


sonar.tests=.
sonar.test.inclusions="**/*_test.go"
sonar.test.exclusions="**/vendor/**"


Advanced Usage

With SonarGo, you can also:

...