-
Notifications
You must be signed in to change notification settings - Fork 683
Expand file tree
/
Copy pathsarif.test.ts.snap
More file actions
111 lines (110 loc) · 3.17 KB
/
sarif.test.ts.snap
File metadata and controls
111 lines (110 loc) · 3.17 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`Sarif Logs has the expected content 1`] = `
Object {
"$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5",
"runs": Array [
Object {
"artifacts": Array [
Object {
"location": Object {
"uri": "src/index.ts",
},
},
Object {
"location": Object {
"uri": "src/sarif.test.ts",
},
},
],
"results": Array [
Object {
"level": "warning",
"locations": Array [
Object {
"physicalLocation": Object {
"artifactLocation": Object {
"index": 0,
"uri": "src/index.ts",
},
"region": Object {
"endColumn": 24,
"endLine": 6,
"startColumn": 3,
"startLine": 6,
},
},
},
],
"message": Object {
"text": "Expected _bar to have a type annotation.",
},
"ruleId": "@typescript-eslint/typedef",
"ruleIndex": 0,
"suppressions": Array [
Object {
"justification": "",
"kind": "inSource",
},
],
},
Object {
"level": "warning",
"locations": Array [
Object {
"physicalLocation": Object {
"artifactLocation": Object {
"index": 0,
"uri": "src/index.ts",
},
"region": Object {
"endColumn": 30,
"endLine": 10,
"startColumn": 14,
"startLine": 10,
},
},
},
],
"message": Object {
"text": "Variable name \`Bad_Name\` must match one of the following formats: camelCase, UPPER_CASE, PascalCase",
},
"ruleId": "@typescript-eslint/naming-convention",
"ruleIndex": 1,
"suppressions": Array [
Object {
"justification": "",
"kind": "external",
},
],
},
],
"tool": Object {
"driver": Object {
"informationUri": "https://eslint.org",
"name": "ESLint",
"rules": Array [
Object {
"helpUri": "https://typescript-eslint.io/rules/typedef",
"id": "@typescript-eslint/typedef",
"properties": Object {},
"shortDescription": Object {
"text": "Require type annotations in certain places",
},
},
Object {
"helpUri": "https://typescript-eslint.io/rules/naming-convention",
"id": "@typescript-eslint/naming-convention",
"properties": Object {},
"shortDescription": Object {
"text": "Enforce naming conventions for everything across a codebase",
},
},
],
"version": "9.37.0",
},
},
},
],
"version": "2.1.0",
}
`;