Skip to main content

write_hotspots_gha

Function write_hotspots_gha 

pub fn write_hotspots_gha<W: Write>(
    rows: &[HotspotRow],
    w: &mut W,
) -> Result<()>
Expand description

Emit hotspot rows as GitHub Actions workflow commands.

Each row โ†’ one ::error file=...::message or ::warning:: / ::notice:: line on stdout, with severity bucketed by the composite hotspot_score and the file path as the anchor. Line number is omitted โ€” hotspot is a whole-file signal, not a line signal; the Actions UI files an annotation against the top of the file in this case, which matches the analysis semantics.

ยงErrors

Returns CodeLoreError::Io on writer failure.