Merge pull request #32391 from rscrivens/master

[Sarif] Add Types for Version 2.0.0-csd.2.beta-2018-10-10
This commit is contained in:
Benjamin Lichtman
2019-01-23 14:28:42 -08:00
committed by GitHub
4 changed files with 1633 additions and 0 deletions
+1591
View File
File diff suppressed because it is too large Load Diff
+18
View File
@@ -0,0 +1,18 @@
import * as sarif from "sarif";
const input = `{
"version": "2.0.0",
"runs": [
{
"tool": {
"name": "CodeScanner",
"semanticVersion": "2.1.0"
},
"results": [
]
}
]
}`;
const log = JSON.parse("") as sarif.Log;
if (log.runs[0].tool.name !== "CodeScanner") {
throw new Error("error: Tool name does not match");
}
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"sarif-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }