-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonarqube-scanner.js
24 lines (23 loc) · 968 Bytes
/
sonarqube-scanner.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import scanner from 'sonarqube-scanner';
import dotenv from 'dotenv';
dotenv.config();
scanner(
{
serverUrl: "http://localhost:9000",
options: {
"sonar.projectName" : "SOBCH",
"sonar.host.url" : "http://localhost:9000",
"sonar.login" : "admin",
"sonar.password" : process.env.SONAR_PW,
"sonar.sources": "./",
"sonar.exclusions" : "test/*, scripts/genDevices.js, simulation/main.js, lib/notifyUser.js, sonarqube-scanner.js",
"sonar.coverage.exclusions" : "scripts/genDevices.js, simulation/main.js",
"sonar.tests" : "test",
"sonar.javascript.lcov.reportPaths" : "coverage/lcov.info",
"sonar.javascript.xunit.reportPaths" : "coverage/xunit.xml",
"sonar.javascript.clover.reportPaths" : "coverage/clover.xml",
"sonar.clover.reportPaths" : "coverage/clover.xml",
}
},
() => process.exit()
);