Skip to content

g1t/crates/scan/fixtures/eslint.sarif

122 lines3,326 bytesCodeBlame
1{
2 "version": "2.1.0",
3 "$schema": "http://json.schemastore.org/sarif-2.1.0-rtm.5",
4 "runs": [
5 {
6 "tool": {
7 "driver": {
8 "name": "ESLint",
9 "informationUri": "https://eslint.org",
10 "rules": [
11 {
12 "id": "no-eval",
13 "helpUri": "https://eslint.org/docs/latest/rules/no-eval",
14 "properties": {},
15 "shortDescription": {
16 "text": "Disallow the use of `eval()`"
17 }
18 },
19 {
20 "id": "no-var",
21 "helpUri": "https://eslint.org/docs/latest/rules/no-var",
22 "properties": {},
23 "shortDescription": {
24 "text": "Require `let` or `const` instead of `var`"
25 }
26 },
27 {
28 "id": "no-unused-vars",
29 "helpUri": "https://eslint.org/docs/latest/rules/no-unused-vars",
30 "properties": {},
31 "shortDescription": {
32 "text": "Disallow unused variables"
33 }
34 }
35 ],
36 "version": "9.39.5"
37 }
38 },
39 "artifacts": [
40 {
41 "location": {
42 "uri": "file:///home/runner/work/app/app/src/server.js"
43 }
44 }
45 ],
46 "results": [
47 {
48 "level": "error",
49 "message": {
50 "text": "eval can be harmful."
51 },
52 "locations": [
53 {
54 "physicalLocation": {
55 "artifactLocation": {
56 "uri": "file:///home/runner/work/app/app/src/server.js",
57 "index": 0
58 },
59 "region": {
60 "startLine": 10,
61 "startColumn": 12,
62 "endLine": 10,
63 "endColumn": 16
64 }
65 }
66 }
67 ],
68 "ruleId": "no-eval",
69 "ruleIndex": 0
70 },
71 {
72 "level": "warning",
73 "message": {
74 "text": "Unexpected var, use let or const instead."
75 },
76 "locations": [
77 {
78 "physicalLocation": {
79 "artifactLocation": {
80 "uri": "file:///home/runner/work/app/app/src/server.js",
81 "index": 0
82 },
83 "region": {
84 "startLine": 17,
85 "startColumn": 1,
86 "endLine": 17,
87 "endColumn": 16
88 }
89 }
90 }
91 ],
92 "ruleId": "no-var",
93 "ruleIndex": 1
94 },
95 {
96 "level": "warning",
97 "message": {
98 "text": "'unused' is assigned a value but never used."
99 },
100 "locations": [
101 {
102 "physicalLocation": {
103 "artifactLocation": {
104 "uri": "file:///home/runner/work/app/app/src/server.js",
105 "index": 0
106 },
107 "region": {
108 "startLine": 17,
109 "startColumn": 5,
110 "endLine": 17,
111 "endColumn": 11
112 }
113 }
114 }
115 ],
116 "ruleId": "no-unused-vars",
117 "ruleIndex": 2
118 }
119 ]
120 }
121 ]
122}