Skip to main content

finding_line

Function finding_line 

Source
pub fn finding_line(source: Option<&str>, f: &Finding) -> String
Expand description

One line of text output for a finding.

source is the layer that produced it ("tool", "llm"), rendered as a prefix inside the brackets. check passes one because two layers write into one list and they gate differently; lint-docs passes None, because it has a single source and a constant tag on every line says nothing.

The message is excerpted: a tool’s diagnostics are text drep did not write, and the JSON reporters decode \u001b escapes faithfully, so a raw print hands the terminal an escape sequence and a multi-kilobyte message hands it a flood.