-
Notifications
You must be signed in to change notification settings - Fork 1
/
analyse.js
28 lines (28 loc) · 1.01 KB
/
analyse.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
25
26
27
28
import scanner from 'sonarqube-scanner'
scanner(
{
serverUrl: "http://localhost:9000",
token: "8ebefd6b851b8ae7d248a6db2be2393bad1f8d7c",
options: {
"sonar.projectKey": "Node.JSRestAPI",
"sonar.projectVersion": "1.0.0",
"sonar.sourceEncoding": "UTF-8",
"sonar.log.level": "TRACE",
"sonar.verbose": "true",
"sonar.scm.disabled": "true",
"sonar.sources": "src",
"sonar.tests": "tests",
"sonar.dependencyCheck.jsonReportPath": "dependency-check-report.json",
"sonar.dependencyCheck.htmlReportPath": "dependency-check-report.html",
"sonar.typescript.jstest.reportsPath": "test_reports",
"sonar.typescript.lcov.reportPaths": "coverage/lcov.info",
"sonar.testExecutionReportPaths": "test_reports/sonarqube/test_results.xml",
"sonar.dependencyCheck.severity.blocker": "9.0",
"sonar.dependencyCheck.severity.critical": "7.0",
"sonar.dependencyCheck.severity.major": "4.0",
"sonar.dependencyCheck.severity.minor": "0.0",
"sonar.dependencyCheck.summarize": "true"
}
},
() => process.exit()
);