Skip to main content

validate

Function validate 

Source
pub fn validate(filename: &str, content: &str) -> Result<Pending, Vec<String>>
Expand description

Validate a single pending file’s content. filename is used to check the stem is a kebab-case slug. Returns every problem found (not just the first), so a malformed file reports completely.