Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 926 Bytes

sarifLog.md

File metadata and controls

36 lines (24 loc) · 926 Bytes

sarifLog object

A sarifLog object specifies the version of the file format and contains the output from one or more runs.

sarifLog object

Example

{
    "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
    "version": "2.1.0",
    "runs": []
}

How to generate

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();