Skip to main content

process_linter

Function process_linter 

Source
pub fn process_linter(
    environment: &[(OsString, OsString)],
    limits: ChildLimits,
    scratch: PathBuf,
) -> ProcessLinter
Expand description

What: The linter for an invocation with this environment, bounds and scratch directory. &[(OsString, OsString)] borrows the environment. Why: The executable passes LINTER_LIMITS and the system’s temporary directory; tests pass small bounds and a fixture.

In TS you’d write (pseudocode):

const processLinter = (environment, limits, scratch) => new ProcessLinter(environment, limits, scratch);