mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
SARIF report: Include help links (#4924)
This commit is contained in:
parent
0355465b38
commit
c58f5603c3
@ -23,6 +23,7 @@ class SarifReport extends Report
|
|||||||
'tool' => [
|
'tool' => [
|
||||||
'driver' => [
|
'driver' => [
|
||||||
'name' => 'Psalm',
|
'name' => 'Psalm',
|
||||||
|
'informationUri' => 'https://psalm.dev',
|
||||||
'version' => PSALM_VERSION,
|
'version' => PSALM_VERSION,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@ -45,6 +46,7 @@ class SarifReport extends Report
|
|||||||
(\substr($issue_data->type, 0, 7) === 'Tainted') ? 'security' : 'maintainability',
|
(\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';
|
$markdown_documentation_path = __DIR__ . '/../../../docs/running_psalm/issues/' . $issue_data->type . '.md';
|
||||||
|
@ -98,6 +98,7 @@ echo "Successfully executed the command: " . $prefixedData;';
|
|||||||
'tool' => [
|
'tool' => [
|
||||||
'driver' => [
|
'driver' => [
|
||||||
'name' => 'Psalm',
|
'name' => 'Psalm',
|
||||||
|
'informationUri' => 'https://psalm.dev',
|
||||||
'version' => '2.0.0',
|
'version' => '2.0.0',
|
||||||
'rules' => [
|
'rules' => [
|
||||||
[
|
[
|
||||||
@ -111,6 +112,7 @@ echo "Successfully executed the command: " . $prefixedData;';
|
|||||||
'security'
|
'security'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'helpUri' => 'https://psalm.dev/246',
|
||||||
'help' => [
|
'help' => [
|
||||||
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedShell.md'),
|
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedShell.md'),
|
||||||
'text' => 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'
|
'security'
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'helpUri' => 'https://psalm.dev/245',
|
||||||
'help' => [
|
'help' => [
|
||||||
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedHtml.md'),
|
'markdown' => file_get_contents(__DIR__ . '/../docs/running_psalm/issues/TaintedHtml.md'),
|
||||||
'text' => 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