Test collateral for exceptional conditions. (#26)

Co-authored-by: Larry Golding <lgolding@comcast.net>
This commit is contained in:
Larry Golding 2021-06-29 08:21:40 -07:00 коммит произвёл GitHub
Родитель ed94457459
Коммит 819b0f62f4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 127 добавлений и 0 удалений

Просмотреть файл

@ -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.