From 3d8a8d9c44cab3ed34407b206eedb4eded52b3bd Mon Sep 17 00:00:00 2001 From: Pavan <25031267+Pavan-SAP@users.noreply.github.com> Date: Fri, 8 Sep 2023 16:27:00 +0200 Subject: [PATCH] [Misc] Sonar: analysis folders updated We want the files under pkg and internal to be part of Sonar analysis. We just want to exclude pkg/operator/operator.go from coverage aspect --- sonar-project.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 4e332fe..9cab6e6 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -7,8 +7,9 @@ sonar.organization=sap-1 # Go! sonar.language=go # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -sonar.sources=internal +sonar.sources=pkg,internal sonar.exclusions=**/*_test.go +sonar.coverage.exclusions=pkg/operator/operator.go sonar.tests=. sonar.test.inclusions=**/*_test.go