Audit Finding (API Design, Low)
Location: crates/agnix-core/src/pipeline.rs:38
ValidationResult is #[non_exhaustive] with public fields. The attribute only prevents struct literal construction but doesn't protect field access. This is inconsistent with the builder pattern used for LintConfig.
Fix: Either make fields private with getter methods, or remove #[non_exhaustive] since the struct is simple.
Found by /audit-project
Audit Finding (API Design, Low)
Location:
crates/agnix-core/src/pipeline.rs:38ValidationResultis#[non_exhaustive]with public fields. The attribute only prevents struct literal construction but doesn't protect field access. This is inconsistent with the builder pattern used forLintConfig.Fix: Either make fields private with getter methods, or remove
#[non_exhaustive]since the struct is simple.Found by
/audit-project