Skip to main content

run_corpus

Function run_corpus 

Source
pub fn run_corpus<'a>(
    config: &CorpusConfig,
    files: impl IntoIterator<Item = (&'a str, &'a str)>,
    opts: &RunOptions,
) -> Result<RunOutcome, GlobError>
Expand description

Run a config across a file set and aggregate findings.

files supplies (relative posix path, source) pairs in the caller’s walk order. Each file is validated by the first rule whose include matches and whose exclude does not, with its path stamped on every finding. A file that matches no rule is skipped.