pub fn find_violations(
root: impl AsRef<Path>,
language: Language,
max_lines: u32,
) -> Result<Vec<Violation>>Expand description
Scan the source files under root for language and return a violation for
every module-scope function 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. A file that cannot be read or parsed is an error.