Skip to main content

validate_rule

Function validate_rule 

Source
pub fn validate_rule(rule: &Rule) -> Result<()>
Expand description

The checks write_rule makes before it touches the pack, so a broad pattern is refused with no atom written.

ยงErrors

The pattern or the reason is empty, the verdict is not deny or ask, the pattern matches ordinary branch pushes, or an agent wrote a pattern wider than the command its reason cites.