pub fn scan( paths: &[PathBuf], rules: &[Rule], config: &Config, ) -> Result<ScanResult, ScanError>
Scan the given paths for rule violations.