pub fn scan(
paths: &[PathBuf],
rules: &[Rule],
config: &Config,
) -> Result<ScanResult, ScanError>Expand description
Scan the given paths for rule violations.
A file among paths (as the pre-commit hook passes them) is reported on its
own, but the cross-file index still covers its whole project.