From 5d6ac5a7178bdf0d29ab2e97ef0d5540878e4307 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 30 Aug 2022 15:25:15 +0100 Subject: [PATCH 1/3] Attempt --- sonar-project.properties | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index f9cf29932d..4893a9e892 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/**/* - -sonar.tests=. -sonar.test.inclusions=**/*_test.go +# Do not calculate coverage metrics for statements in these files +sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*,**/*.pb.go,**/*.pb.gw.go,**/integration-tests/**/*,**/e2e-tests/**/* +sonar.tests=e2e-tests,x +# Run unit and e2e tests, but not integration tests +sonar.test.inclusions=**/* +# Do not run any vendor tests sonar.test.exclusions=**/vendor/** sonar.go.coverage.reportPaths=coverage.out From b1aa0d5526031e838eacb59710303951448a8f71 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 30 Aug 2022 15:27:45 +0100 Subject: [PATCH 2/3] bumnp --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 4893a9e892..29422c31be 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,7 +14,7 @@ sonar.organization=cosmos # All golang artifacts sonar.sources=. # Do not calculate coverage metrics for statements in these files -sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*,**/*.pb.go,**/*.pb.gw.go,**/integration-tests/**/*,**/e2e-tests/**/* +sonar.exclusions=**/*_test.go,**/vendor/**,**/*.pb.go,**/*.pb.gw.go,proto,integration-tests,e2e-tests,testutil sonar.tests=e2e-tests,x # Run unit and e2e tests, but not integration tests sonar.test.inclusions=**/* From f651ef4e54b3b38466003a6f6553ea277568c1ed Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 31 Aug 2022 08:58:18 +0100 Subject: [PATCH 3/3] Bump --- sonar-project.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 29422c31be..a4f44affd9 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,10 +14,10 @@ sonar.organization=cosmos # All golang artifacts sonar.sources=. # Do not calculate coverage metrics for statements in these files -sonar.exclusions=**/*_test.go,**/vendor/**,**/*.pb.go,**/*.pb.gw.go,proto,integration-tests,e2e-tests,testutil -sonar.tests=e2e-tests,x +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=**/* +sonar.test.inclusions=**/*_test.go # Do not run any vendor tests sonar.test.exclusions=**/vendor/** sonar.go.coverage.reportPaths=coverage.out