Skip to main content

render_annotations

Function render_annotations 

Source
pub fn render_annotations(
    highlights: &[Highlight],
    cfg: &CockpitConfig,
    sensor_blocking: &BTreeMap<String, bool>,
) -> AnnotationRenderResult
Expand description

Render annotations (file-level or inline findings) with capping.

Annotations are rendered as a markdown list of findings with file locations. The total number of annotations is capped by max_annotations from policy. Deterministic ordering is maintained: severity desc -> blocking-first -> sensor_id -> path -> line -> code.