pub struct AgentsMarkdownValidator;Expand description
Validates that OpenCode’s AGENTS.md is non-empty.
Trait Implementations§
Source§impl Validator for AgentsMarkdownValidator
impl Validator for AgentsMarkdownValidator
Source§fn patterns(&self) -> &[&str]
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>
fn validate(&self, path: &Path, src: &str) -> Vec<Diagnostic>
Validate
src (the file contents) for path. Returns all diagnostics.Source§fn validate_batch(&self, _files: &[(PathBuf, String)]) -> Vec<Diagnostic>
fn validate_batch(&self, _files: &[(PathBuf, String)]) -> Vec<Diagnostic>
Cross-file validation called once after all per-file passes. Receives
only the files claimed by this validator. Default implementation returns
no diagnostics; override for rules that require global state (e.g.
duplicate-name detection).
Auto Trait Implementations§
impl Forget for AgentsMarkdownValidator
impl Freeze for AgentsMarkdownValidator
impl Move for AgentsMarkdownValidator
impl RefUnwindSafe for AgentsMarkdownValidator
impl Send for AgentsMarkdownValidator
impl Sync for AgentsMarkdownValidator
impl Unpin for AgentsMarkdownValidator
impl UnsafeUnpin for AgentsMarkdownValidator
impl UnwindSafe for AgentsMarkdownValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more