-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathDefaultRuleConfiguration.sarif
69 lines (69 loc) · 1.8 KB
/
DefaultRuleConfiguration.sarif
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
{
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
"version": "2.1.0",
"properties": {
"comment": "This sample demonstrates the use of default rule configuration."
},
"runs": [
{
"tool": {
"driver": {
"name": "SarifSamples",
"version": "1.0",
"rules": [
{
"id": "TUT0001",
"defaultConfiguration": {
"level": "error"
}
},
{
"id": "TUT0002",
"defaultConfiguration": {
"level": "warning",
"properties": {
"comment": "'warning' is the default, so this can be omitted."
}
}
}
]
}
},
"results": [
{
"ruleId": "TUT1001",
"ruleIndex": 0,
"message": {
"text": "This result is an error according to the default rule configuration."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "file:///C:/code/myProject/io/kb.c"
}
}
}
]
},
{
"ruleId": "TUT1002",
"ruleIndex": 1,
"message": {
"text": "This result is a warning according to the default rule configuration."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "file:///C:/code/myProject/io/file.c"
}
}
}
]
}
],
"columnKind": "utf16CodeUnits"
}
]
}