pub fn find_violations(
root: impl AsRef<Path>,
language: Language,
max_lines: u32,
) -> Result<(Vec<Violation>, usize)>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), and the number of files scanned to find
them. The first over-threshold function in a file holds it; each later one is a violation
naming both.