From 05984713fc936f3ada8deeeba68bb89c57e7756f Mon Sep 17 00:00:00 2001
From: Alexis POYEN <apoyen@grandlyon.com>
Date: Fri, 21 Aug 2020 15:54:44 +0200
Subject: [PATCH] Exclude test files from Sonar analysis

---
 sonar-project.properties | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 sonar-project.properties

diff --git a/sonar-project.properties b/sonar-project.properties
new file mode 100644
index 0000000..791ad54
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1,7 @@
+sonar.projectKey=elections
+
+# relative paths to source directories. More details and properties are described
+# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
+sonar.sources=.
+sonar.go.coverage.reportPaths=./coverage.out
+sonar.coverage.exclusions=**/*_test.go
\ No newline at end of file
-- 
GitLab