Feat: Abstract sonar-properties to a file
To simplify the sonar implementation, a single
sonar-project.properties file can be used to store the necessary
information.
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I8e2331dfe7239e2af29083a150747d01541c54f8
diff --git a/jjb/nonrtric/sonar-project.properties b/jjb/nonrtric/sonar-project.properties
new file mode 100644
index 0000000..4b499ff
--- /dev/null
+++ b/jjb/nonrtric/sonar-project.properties
@@ -0,0 +1,16 @@
+# Required metadata
+sonar.login={sonarcloud_api_token}
+sonar.projectKey={sonarcloud_project_organization}_{project-name}
+sonar.organization={sonarcloud_project_organization}
+# Encoding
+sonar.build.sourceEncoding=UTF-8
+# Language
+sonar.language=go
+# Source
+sonar.sources=.
+# Unit tests
+sonar.go.coverage.reportPaths=dmaap-mediator-producer/coverage.txt
+# Inclusions
+sonar.inclusions=dmaap-mediator-producer/internal/**/**.go
+# Exclusions
+sonar.exclusions=dmaap-mediator-producer/main.go,dmaap-mediator-producer/mocks/**.go,dmaap-mediator-producer/stub/**.go,dmaap-mediator-producer/internal/**/**_test.go