forked from OpenClassrooms-Student-Center/Gerez-un-projet-collaboratif-en-int-grant-une-demarche-CI-CD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mise en place de l'analyse SonarQube en local pour le frontend
- Loading branch information
1 parent
c59b182
commit d946c04
Showing
6 changed files
with
211 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
projectKey=bobapp | ||
serverUrl=https://b28e-2a01-e0a-2d-a090-41d3-2457-aed5-3965.ngrok-free.app | ||
serverVersion=10.2.1.78527 | ||
dashboardUrl=https://b28e-2a01-e0a-2d-a090-41d3-2457-aed5-3965.ngrok-free.app/dashboard?id=bobapp | ||
ceTaskId=AYtg5lllaLpwacgQz9fM | ||
ceTaskUrl=https://b28e-2a01-e0a-2d-a090-41d3-2457-aed5-3965.ngrok-free.app/api/ce/task?id=AYtg5lllaLpwacgQz9fM |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const sonarqubeScanner = require("sonarqube-scanner"); | ||
sonarqubeScanner( | ||
{ | ||
serverUrl: "http://localhost:9000", | ||
token: "squ_a5177bdeab7985362d9985cd6354b2b75a81bd7d", // Ajoutez cette ligne | ||
options: { | ||
"sonar.sources": ".", // Indique que la racine du projet est le point de départ de l'analyse. | ||
"sonar.inclusions": "src/**", // Spécifie que seuls les fichiers sous le répertoire packages/core/src/ doivent être inclus dans l'analyse. | ||
"sonar.javascript.lcov.reportPaths": | ||
"coverage/bobapp/report-lcovonly.txt", | ||
}, | ||
}, | ||
() => {} | ||
); |