Skip to main content

SyntaxChecker

Trait SyntaxChecker 

Source
pub trait SyntaxChecker: Send + Sync {
    // Required method
    fn check(&self, interpreter: &str, file: &Path) -> SyntaxCheckResult;
}
Expand description

Run a syntax-only check on a shell file.

Implementations must not run the file or alter the environment; they invoke the interpreter in parse-only mode and return what it found.

Required Methods§

Source

fn check(&self, interpreter: &str, file: &Path) -> SyntaxCheckResult

Implementors§