Last active
July 13, 2024 23:41
-
-
Save jonra1993/7803b32db5a472d7261e769fcd7b93fb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const scanner = require('sonarqube-scanner').default; | |
scanner( | |
{ | |
serverUrl: 'http://localhost:9000', | |
token: "sqp_c8c45be1417f241c1214efb53f3a1d432229aa51", | |
options: { | |
'sonar.projectName': 'sonarqube-react-project', | |
'sonar.projectDescription': 'Here I can add a description of my project', | |
'sonar.projectKey': 'sonarqube-react-project', | |
'sonar.projectVersion': '0.0.1', | |
'sonar.exclusions': '', | |
'sonar.sourceEncoding': 'UTF-8', | |
} | |
}, | |
error => { | |
if (error) { | |
console.error(error); | |
} | |
process.exit(); | |
}, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment