check_line

Function check_line 

Source
pub fn check_line(line: &str) -> Result<(), Vec<Violation>>
Expand description

Check a single line against all applicable line-level rules.

Static rules (R10, R11, R13, R14) are structural and cannot be checked from a single line; they are enforced by a static grep test that scans src/**/*.rs.

ยงErrors

Returns a Vec of all violations found on the line. A fully- conformant line returns Ok(()).