public sealed class ComplianceReport
Result of ZplCompliance.Check: findings plus JSON, SARIF and text output.
Properties
Fields & Constants
Methods
| Method Signature | Returns | Description |
# Fails(ComplianceSeverity failOn) | bool | True when a finding has at least severity failOn (for CI gates). |
# ToJson(bool indented = true) | string | Findings as JSON (tool, dpi, packs, summary, findings with bounds in dots and mm). |
# ToSarif(string? artifactUri = default) | string | SARIF 2.1.0 log (one run, all rules with citations, results with the ZPL line/column and the label area in properties) for GitHub code scanning and other SARIF viewers. artifactUri: Path of the checked file relative to the repository root (e.g. "labels/sscc.zpl"). |
# ToString() | string | |
# ToText(string? fileName = default) | string | Plain text: one line per finding and a summary line. |
# WithFindings(IEnumerable<ComplianceFinding> findings) | ComplianceReport | A copy of this report with other findings (same packs, label count and dpi), e.g. filtered or with rewritten messages before ComplianceReport.ToSarif / ComplianceReport.ToJson. |