From 36e7ca11b20373929c77a68aedbcd8e7940242e8 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Thu, 28 Sep 2023 05:17:45 -0700 Subject: [PATCH] Excluding generated mocks from code coverage analysis --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 65137e1923c..d6b0f7bec1d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,7 +2,7 @@ sonar.projectKey=elastic_elastic-agent_AYluowg0xMq8P7b4moiZ sonar.host.url=https://sonar.elastic.dev sonar.sources=. -sonar.exclusions=**/*_test.go, .git/**, dev-tools/**, /magefile.go, changelog/**, _meta/**, deploy/**, docs/**, img/**, specs/**, pkg/testing/**, pkg/component/fake/** +sonar.exclusions=**/*_test.go, .git/**, dev-tools/**, /magefile.go, changelog/**, _meta/**, deploy/**, docs/**, img/**, specs/**, pkg/testing/**, pkg/component/fake/**m **/mocks/*.go sonar.tests=. sonar.test.inclusions=**/*_test.go