chore: add sonarcloud (#48)

Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/48
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
Naomi Carrigan 2024-12-26 21:02:43 +00:00 committed by Naomi the Technomancer
parent 2c5a9b6702
commit 6fc0695aad
2 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -22,3 +22,6 @@ pnpm-debug.log*
# jetbrains setting folder # jetbrains setting folder
.idea/ .idea/
# SonarCloud
.scannerwork/

View File

@ -8,7 +8,8 @@
"lint": "cspell src/content/docs", "lint": "cspell src/content/docs",
"build": "astro build", "build": "astro build",
"preview": "astro preview", "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": { "dependencies": {
"@astrojs/check": "^0.9.3", "@astrojs/check": "^0.9.3",