Skip to main content

analyze

Function analyze 

Source
pub fn analyze(path: &Path, content: &str) -> Vec<Finding>
Expand description

Run every check over content, reporting against path.

Findings come back sorted by position, then by check name, so the output of two runs over the same file is byte-identical and a reader follows the file top to bottom. The checks themselves run in whatever order is convenient; grouping output by check would make a reader jump around the file.