-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalyse.js
More file actions
24 lines (23 loc) · 849 Bytes
/
analyse.js
File metadata and controls
24 lines (23 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const scanner = require("sonarqube-scanner");
scanner(
{
// this example uses local instance of SQ
serverUrl: "https://sonarcloud.io/",
token: process.env.SONAR_TOKEN,
options: {
"sonar.organization": "tinyield",
"sonar.projectKey": "ts-sequences-benchmarks",
"sonar.projectName": "Sequences Benchmarks for TS",
"sonar.sources": "src",
"sonar.inclusions": "**/*.ts",
"sonar.ts.tslintconfigpath": "tslint.json",
"sonar.javascript.lcov.reportPaths": "coverage/lcov.info",
"sonar.language": "ts",
"sonar.branch.name": "master",
"sonar.sourceEncoding": "UTF-8",
"sonar.scm.provider": "git",
"sonar.scm.forceReloadAll": "true"
},
},
() => process.exit()
);