pub struct AuditConfig {
pub root_markers: Vec<&'static str>,
pub include_claude_md: bool,
pub source_extensions: Vec<&'static str>,
pub source_dirs: Vec<&'static str>,
pub skip_dirs: Vec<&'static str>,
}Expand description
Configuration for instruction file discovery and auditing.
Different projects can customize behavior by providing different configs.
Fields§
§root_markers: Vec<&'static str>Project root marker files, checked in order. agent-doc uses many (Cargo.toml, package.json, etc.); corky uses only Cargo.toml.
include_claude_md: boolWhether to include CLAUDE.md in root-level discovery and agent file checks. agent-doc: true, corky: false.
source_extensions: Vec<&'static str>Source file extensions to check for staleness comparison. agent-doc: broad (rs, ts, py, etc.); corky: just “rs”.
source_dirs: Vec<&'static str>Source directories to scan for staleness. agent-doc: [“src”, “lib”, “app”, …]; corky: just [“src”].
skip_dirs: Vec<&'static str>Directories to skip when scanning for source files.
Implementations§
Source§impl AuditConfig
impl AuditConfig
Sourcepub fn agent_doc() -> AuditConfig
pub fn agent_doc() -> AuditConfig
Config matching agent-doc’s current behavior: broad project detection, includes CLAUDE.md, scans many source extensions.
Sourcepub fn corky() -> AuditConfig
pub fn corky() -> AuditConfig
Config matching corky’s current behavior: Cargo.toml-only root detection, excludes CLAUDE.md from audit, scans only .rs files.
Trait Implementations§
Source§impl Clone for AuditConfig
impl Clone for AuditConfig
Source§fn clone(&self) -> AuditConfig
fn clone(&self) -> AuditConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more