- Launch the Node.js process:
node app.js
-
Run the scan (replace with the correct values):
sonar-scanner -D"sonar.projectKey=<projetKey>" -D"sonar.organization=<company>" -D"sonar.sources=." -D"sonar.host.url=https://sonarcloud.io" -D"sonar.login=<token>" -D"sonar.exclusions=**/node_modules/**"