From 6fc0695aadd985ecf920971c05a14d4fa4f0006d Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Thu, 26 Dec 2024 21:02:43 +0000 Subject: [PATCH] chore: add sonarcloud (#48) Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/48 Co-authored-by: Naomi Carrigan Co-committed-by: Naomi Carrigan --- .gitignore | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 16d54bb..29f40fe 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ pnpm-debug.log* # jetbrains setting folder .idea/ + +# SonarCloud +.scannerwork/ \ No newline at end of file diff --git a/package.json b/package.json index f18f0ef..85a808b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "lint": "cspell src/content/docs", "build": "astro build", "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "scan": "SONAR_TOKEN='op://Environment Variables - Development/SonarCloud/docs' op run -- sonar-scanner -Dsonar.organization=nhcarrigan -Dsonar.projectKey=nhcarrigan_docs -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io" }, "dependencies": { "@astrojs/check": "^0.9.3",