pub fn finding_line(source: Option<&str>, f: &Finding) -> StringExpand 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 kind and message are excerpted: a tool’s diagnostics and a model’s
answer are text drep did not write, and JSON decodes \u001b into a real
escape, so a raw print hands the terminal an escape sequence, a newline
forges a line of its own, and a multi-kilobyte field hands it a flood. A
model’s category becomes the kind, and the code under review can steer
the model. The file name is the repository’s, and is printed through
crate::text::path_label for the same reason.