pub fn render_annotations(
highlights: &[Highlight],
cfg: &CockpitConfig,
sensor_blocking: &BTreeMap<String, bool>,
) -> AnnotationRenderResultExpand 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.