Skip to content

Commit 062e68a

Browse files
committed
Add invalid helpUri attribute to test data
1 parent 7d763b8 commit 062e68a

File tree

1 file changed

+33
-21
lines changed

1 file changed

+33
-21
lines changed

src/testdata/with-invalid-uri.sarif

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,42 @@
88
"name": "LGTM.com",
99
"organization": "Semmle",
1010
"version": "1.24.0-SNAPSHOT",
11-
"rules": []
11+
"rules": [
12+
{
13+
"id": "js/unused-local-variable",
14+
"shortDescription": {
15+
"text": "Unused local variable"
16+
},
17+
"helpUri": "not a valid URI"
18+
}
19+
]
1220
}
1321
},
14-
"results" : [ {
15-
"ruleId" : "js/unused-local-variable",
16-
"ruleIndex" : 0,
17-
"message" : {
18-
"text" : "Unused variable foo."
19-
},
20-
"locations" : [ {
21-
"physicalLocation" : {
22-
"artifactLocation" : {
23-
"uri" : "not a valid URI",
24-
"uriBaseId" : "%SRCROOT%",
25-
"index" : 0
26-
},
27-
"region" : {
28-
"startLine" : 2,
29-
"startColumn" : 7,
30-
"endColumn" : 10
22+
"results": [
23+
{
24+
"ruleId": "js/unused-local-variable",
25+
"ruleIndex": 0,
26+
"message": {
27+
"text": "Unused variable foo."
28+
},
29+
"locations": [
30+
{
31+
"physicalLocation": {
32+
"artifactLocation": {
33+
"uri": "not a valid URI",
34+
"uriBaseId": "%SRCROOT%",
35+
"index": 0
36+
},
37+
"region": {
38+
"startLine": 2,
39+
"startColumn": 7,
40+
"endColumn": 10
41+
}
42+
}
3143
}
32-
}
33-
} ]
34-
} ],
44+
]
45+
}
46+
],
3547
"columnKind": "utf16CodeUnits",
3648
"properties": {
3749
"semmle.formatSpecifier": "2.1.0",

0 commit comments

Comments
 (0)