diff --git a/sonar-project.properties b/sonar-project.properties index f9cf29932d..a4f44affd9 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -11,10 +11,13 @@ sonar.organization=cosmos # Encoding of the source code. Default is default system encoding #sonar.sourceEncoding=UTF-8 +# All golang artifacts sonar.sources=. -sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*,**/*.pb.go,**/*.pb.gw.go,**/vue/**/*,**/integration-tests/**/* - +# Do not calculate coverage metrics for statements in these files +sonar.exclusions=**/*_test.go,**/vendor/**,**/*.pb.go,**/*.pb.gw.go,proto,integration-tests,testutil sonar.tests=. +# Run unit and e2e tests, but not integration tests sonar.test.inclusions=**/*_test.go +# Do not run any vendor tests sonar.test.exclusions=**/vendor/** sonar.go.coverage.reportPaths=coverage.out