A sarifLog
object specifies the version of the file format and contains the output from one or more runs.
{
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"version": "2.1.0",
"runs": []
}
See full examples/sarifLog.php
script into repository.
Note
Since release 1.5.0, you may use fluent builders API as alternative.
See full examples/builder/sarifLog.php
script into repository.
<?php declare(strict_types=1);
use Bartlett\Sarif\SarifLog;
$log = new SarifLog();