mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
SARIF report: Include help links (#4924)
This commit is contained in:
parent
245a331be3
commit
2d17b744ce
@ -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';
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user