From 3351e158a83ddad6b4a822d9a75815586e348319 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 12 Apr 2022 15:51:18 +0200 Subject: [PATCH] Integrate with SonarQube --- .gitignore | 3 +++ sonar-scan | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100755 sonar-scan diff --git a/.gitignore b/.gitignore index 66fd13c..41c47b0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ # Dependency directories (remove the comment below to include it) # vendor/ + +# SonarQube +.scannerwork/ \ No newline at end of file diff --git a/sonar-scan b/sonar-scan new file mode 100755 index 0000000..7d8e8ca --- /dev/null +++ b/sonar-scan @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +source ./.sonar +${SONAR_BIN} \ + -Dsonar.projectKey=go-mail \ + -Dsonar.sources=. \ + -Dsonar.host.url=https://sonar.fritz.box \ + -Dsonar.login="$SONAR_TOKEN"