pub struct FilesConfig {
pub include_as_memory: Vec<String>,
pub include_as_generic: Vec<String>,
pub exclude: Vec<String>,
}Expand description
File inclusion/exclusion configuration for non-standard agent files.
By default, agnix only validates files it recognizes (CLAUDE.md, SKILL.md, etc.). Use this section to include additional files in validation or exclude files that would otherwise be validated.
Patterns use glob syntax (e.g., "docs/ai-rules/*.md").
Paths are matched relative to the project root.
Priority: exclude > include_as_memory > include_as_generic > built-in detection.
Fields§
§include_as_memory: Vec<String>Glob patterns for files to validate as memory/instruction files (ClaudeMd rules).
Files matching these patterns will be treated as CLAUDE.md-like files, receiving the full set of memory/instruction validation rules.
include_as_generic: Vec<String>Glob patterns for files to validate as generic markdown (XML, XP, REF rules).
Files matching these patterns will receive generic markdown validation (XML balance, import references, cross-platform checks).
exclude: Vec<String>Glob patterns for files to exclude from validation.
Files matching these patterns will be skipped entirely, even if they would otherwise be recognized by built-in detection.
Trait Implementations§
Source§impl Clone for FilesConfig
impl Clone for FilesConfig
Source§fn clone(&self) -> FilesConfig
fn clone(&self) -> FilesConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilesConfig
impl Debug for FilesConfig
Source§impl Default for FilesConfig
impl Default for FilesConfig
Source§fn default() -> FilesConfig
fn default() -> FilesConfig
Source§impl<'de> Deserialize<'de> for FilesConfig
impl<'de> Deserialize<'de> for FilesConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for FilesConfig
impl JsonSchema for FilesConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FilesConfig
impl RefUnwindSafe for FilesConfig
impl Send for FilesConfig
impl Sync for FilesConfig
impl Unpin for FilesConfig
impl UnsafeUnpin for FilesConfig
impl UnwindSafe for FilesConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more