Test collateral for exceptional conditions. (#26)
Co-authored-by: Larry Golding <lgolding@comcast.net>
This commit is contained in:
Родитель
ed94457459
Коммит
819b0f62f4
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"driver": {
|
||||
"name": "CodeScanner",
|
||||
"version": "1.0",
|
||||
"informationUri": "https://www.example.com/codescanner"
|
||||
}
|
||||
},
|
||||
"invocations": [
|
||||
{
|
||||
"toolConfigurationNotifications": [
|
||||
{
|
||||
"message": {
|
||||
"text": "Ruleset 'no-such-ruleset.xml' does not exist."
|
||||
},
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"executionSuccessful": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"driver": {
|
||||
"name": "CodeScanner",
|
||||
"version": "1.0",
|
||||
"informationUri": "https://www.example.com/codescanner"
|
||||
}
|
||||
},
|
||||
"invocations": [
|
||||
{
|
||||
"toolExecutionNotifications": [
|
||||
{
|
||||
"message": {
|
||||
"text": "Out of memory."
|
||||
},
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"executionSuccessful": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": []
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": null
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"driver": {
|
||||
"name": "CodeScanner",
|
||||
"version": "1.0",
|
||||
"informationUri": "https://www.example.com/codescanner"
|
||||
}
|
||||
},
|
||||
"results": []
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"driver": {
|
||||
"name": "CodeScanner",
|
||||
"version": "1.0",
|
||||
"informationUri": "https://www.example.com/codescanner"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.5.json",
|
||||
"version": "2.1.0",
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"driver": {
|
||||
"name": "CodeScanner",
|
||||
"version": "1.0",
|
||||
"informationUri": "https://www.example.com/codescanner"
|
||||
}
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"ruleId": "TEST1001",
|
||||
"message": {
|
||||
"text": "Missing semicolon."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
This directory contains a set of sample SARIF files that illustrate various "exceptional conditions", for example:
|
||||
|
||||
- A log file contains no runs.
|
||||
- A run failed with an error-level "tool execution notification".
|
||||
- A run contains no results.
|
||||
|
||||
Developers of applications (such as viewers or bug filing systems) that consume SARIF log files can use the files in this directory to ensure that their application behaves properly under all these conditions.
|
Загрузка…
Ссылка в новой задаче