Skip to main content

render_text

Function render_text 

Source
pub fn render_text(report: &ClassificationReport) -> String
Expand description

Renders a classification report in the canonical human-readable form.

The first line is classification <verdict>, followed by one finding line per report finding. Findings retain classifier report order and always carry a quoted path field, plus kind, base, and submitted excerpts (- when absent). Conditional findings append their condition value. Every quoted textual field applies the printable-character escape policy so hostile contract content cannot break the one-finding-per-line contract. The output is deterministic and has one trailing newline.