Skip to main content

verbatim_violations

Function verbatim_violations 

Source
pub fn verbatim_violations(text: &str) -> Vec<Violation>
Expand description

Scan text (a Verbatim statement’s own wrapped TypeScript) for every line matching one of the six banned constructs. Order of the checks within a line matters only for which construct label a line already matching two patterns gets — real emitted lines don’t do that in practice, so the first match wins and the rest of that line isn’t checked further.