pub struct AuditConfig {
pub gate: AuditGate,
pub dead_code_baseline: Option<String>,
pub health_baseline: Option<String>,
pub dupes_baseline: Option<String>,
pub cache_max_age_days: Option<u32>,
}Expand description
Per-analysis baseline paths for the audit command.
Each field points to a baseline file produced by the corresponding
subcommand (fallow dead-code --save-baseline, fallow health --save-baseline,
fallow dupes --save-baseline). audit passes each baseline through to its
underlying analysis; baseline-matched issues are excluded from the verdict.
Fields§
§gate: AuditGateWhich findings should make fallow audit fail.
dead_code_baseline: Option<String>Path to the dead-code baseline (produced by fallow dead-code --save-baseline).
health_baseline: Option<String>Path to the health baseline (produced by fallow health --save-baseline).
dupes_baseline: Option<String>Path to the duplication baseline (produced by fallow dupes --save-baseline).
cache_max_age_days: Option<u32>Maximum age (in days since last reuse or fresh create) of a persistent
reusable base-snapshot worktree cache entry. Older entries are removed
at the top of the next fallow audit invocation. The env var
FALLOW_AUDIT_CACHE_MAX_AGE_DAYS wins over this field. Unset on both
sides defaults to 30 days. Setting either source to 0 disables the
sweep entirely (escape hatch for CI runners that prune caches
out-of-band). Invalid env var values (non-integer, negative) silently
fall back to this field / default rather than failing the audit.
Implementations§
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 moreSource§impl Debug for AuditConfig
impl Debug for AuditConfig
Source§impl Default for AuditConfig
impl Default for AuditConfig
Source§fn default() -> AuditConfig
fn default() -> AuditConfig
Source§impl<'de> Deserialize<'de> for AuditConfig
impl<'de> Deserialize<'de> for AuditConfig
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 AuditConfig
impl JsonSchema for AuditConfig
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 more