1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +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 GitHub
parent 245a331be3
commit 2d17b744ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'),