From 734627b5c2b3482e1988f4897477397602e64382 Mon Sep 17 00:00:00 2001 From: Gabriel Csollei Date: Fri, 11 Oct 2024 14:24:27 +0000 Subject: [PATCH] Add sonar example --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 39f7725..4202810 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,23 @@ [Documentation](https://g43riko.github.io/GTools/) + +## Scan docker +```bash +docker run \ + --rm \ + -e SONAR_SCANNER_OPTS="-Dsonar.projectKey=G43riko_GTools" \ + -e SONAR_SCANNER_OPTS="-Dsonar.organization=g43riko" \ + -e SONAR_SCANNER_OPTS="-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info" \ + -e SONAR_TOKEN=35e611231b768d371f22e880a31bbada5f9359d3 \ + -v ".:/usr/src" \ + sonarsource/sonar-scanner-cli +``` + ## Contents - [GTools](#gtools) + - [Scan docker](#scan-docker) - [Contents](#contents) - [Installation](#installation) - [NodeJS](#nodejs)