Skip to main content

gate

Function gate 

Source
pub fn gate<E: AsRef<str> + Ord>(
    p: &ParsedPolicy,
    gi: &GateInput<'_, E>,
) -> GateOutcome
Expand description

Apply a parsed §6.2 policy to an already-accumulated signature. THE ONLY matching code in the stable toolchain — candor-scan --policy and candor-query gate --report both land here, which is what makes “the same verdict from the same signature” a property of the code rather than of two consistent authors. Returns the violations, sorted by (rule, detail), AND the withheld pairs.