Skip to main content

find_violations

Function find_violations 

Source
pub fn find_violations(
    root: impl AsRef<Path>,
    language: Language,
    max_lines: u32,
) -> Result<Vec<Violation>>
Expand description

A violation for every module-scope function under root past the first whose body runs longer than max_lines, sorted by (file, line). The first over-threshold function in a file holds it; each later one is a violation naming both.