logical.toSariffunctionno test imports itfunction toSarif(v: Verdict, tool: string): { readonly version: "2.1.0"; readonly runs: readonly unknown[]; }The SARIF document of a verdict, tool being the name that runs the gate.
The verdict as SARIF 2.1.0 (0002-policy-gate FR-008), so that a CI system or a code host shows each violation where a developer looks: one result for each violation that blocks or warns, at the level error or warning; a waived violation is a result that is suppressed, with the waiver's reason as its justification. The document is a pure function of the verdict.
import { toSarif } from "./sarif.ts";
toSarif({ pass: true, blocking: [], warnings: [], waived: [], unusedWaivers: [], checked: 0 }, "gate").version; // "2.1.0"logical.toSariffunctionno test imports itfunction toSarif(v: Verdict, tool: string): { readonly version: "2.1.0"; readonly runs: readonly unknown[]; }The SARIF document of a verdict, tool being the name that runs the gate.
toSariffunctionfunction toSarif(v: Verdict, tool: string): { readonly version: "2.1.0"; readonly runs: readonly unknown[]; }The SARIF document of a verdict, tool being the name that runs the gate.