Expand description
Core engine: orchestrates diff parsing + rule evaluation + reporting.
Structs§
- Check
Plan - Check
Run - Rule
Metadata - Metadata for a rule (help text, URL, and tags).
- Sarif
Report - Root SARIF document structure.
- Sensor
Report Context - Context for rendering a sensor report.
- Settings
- Consolidated input for the diffguard sensor engine.
Enums§
Traits§
- Substrate
- Optional shared substrate from the Cockpit runtime.
Functions§
- compute_
fingerprint - Computes a stable fingerprint for a finding.
- compute_
fingerprint_ raw - Computes a full SHA-256 fingerprint from an arbitrary input string.
- render_
csv_ for_ receipt - Renders a CheckReceipt as a CSV report (RFC 4180 compliant).
- render_
junit_ for_ receipt - Renders a CheckReceipt as a JUnit XML report.
- render_
markdown_ for_ receipt - render_
sarif_ for_ receipt - Renders a CheckReceipt as a SARIF 2.1.0 report.
- render_
sarif_ json - Renders a SARIF report as a JSON string.
- render_
sensor_ json - Renders a CheckReceipt as a sensor.report.v1 JSON string.
- render_
sensor_ report - Renders a CheckReceipt as a SensorReport.
- render_
tsv_ for_ receipt - Renders a CheckReceipt as a TSV report.
- run_
check - run_
sensor - R2 Library Contract: run the diffguard sensor and return a
SensorReport.