Skip to main content

validate_with

Function validate_with 

Source
pub fn validate_with(
    section: &HooksConfig,
    known: &[HookInfo],
) -> Result<(), String>
Expand description

Check [hooks] against the hooks known, saying what is wrong and what to do about it.

This is the whole of the “no silent ignoring” rule for hooks: the section is read with flatten so that nothing in it is dropped by the parser, and every key is accounted for here instead.