1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

SARIF report: Include help links (#4924)

This commit is contained in:
Lukas Bestle 2021-01-03 02:45:21 +01:00 committed by Daniil Gentili
parent 0355465b38
commit c58f5603c3
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class SarifReport extends Report
'tool' => [
'driver' => [
'name' => 'Psalm',
'informationUri' => 'https://psalm.dev',
'version' => PSALM_VERSION,
],
],
@ -45,6 +46,7 @@ class SarifReport extends Report
(\substr($issue_data->type, 0, 7) === 'Tainted') ? 'security' : 'maintainability',
],
],
'helpUri' => $issue_data->link,
];
$markdown_documentation_path = __DIR__ . '/../../../docs/running_psalm/issues/' . $issue_data->type . '.md';

View File

@ -98,6 +98,7 @@ echo "Successfully executed the command: " . $prefixedData;';
'tool' => [
'driver' => [
'name' => 'Psalm',
'informationUri' => 'https://psalm.dev',
'version' => '2.0.0',
'rules' => [
[
@ -111,6 +112,7 @@ echo "Successfully executed the command: " . $prefixedData;';
'security'
],
],
'helpUri' => 'https://psalm.dev/246',
'help' => [
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedShell.md'),
'text' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedShell.md'),
@ -127,6 +129,7 @@ echo "Successfully executed the command: " . $prefixedData;';
'security'
],
],
'helpUri' => 'https://psalm.dev/245',
'help' => [
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedHtml.md'),
'text' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedHtml.md'),