Skip to main content

review_draft

Function review_draft 

Source
pub fn review_draft(body: &str) -> Result<(), Vec<String>>
Expand description

Is this draft usable as a magi task?

Separated from plan so that the rules are assertable without an interview, and so magi task add can reuse them for the files it is handed.

Every problem found is returned, not just the first: an operator about to edit a draft wants the whole list, and a validator that reveals one defect per run turns one fix into three.