Skip to main content

Validator

Trait Validator 

Source
pub trait Validator: Send + Sync {
    // Required methods
    fn patterns(&self) -> &[&str];
    fn validate(&self, path: &Path, src: &str) -> Vec<Diagnostic>;
}

Required Methods§

Source

fn patterns(&self) -> &[&str]

File glob patterns this validator claims (e.g. .claude/agents/**/*.md).

Source

fn validate(&self, path: &Path, src: &str) -> Vec<Diagnostic>

Validate src (the file contents) for path. Returns all diagnostics.

Implementors§