Expand description
The checks behind cook doctor.
validate walks every .cook and .menu file under a root, parses it,
and reports what it found. Broken recipes are the payload, not a failure:
a collection full of syntax errors still validates successfully. See
Outcome for the rule. broken_references follows up on what it found,
resolving the recipe references a report collected.
aisle_coverage and pantry_coverage answer the other two questions
cook doctor asks: which of a collection’s ingredients are categorised in
aisle.conf, and which of them are already in the pantry.
Structs§
- Checked
Ingredient - One ingredient a collection uses, and whether a configuration knows it.
- Coverage
Request - Which collection to check a configuration against.
- Ingredient
Coverage - How much of a collection’s ingredients a configuration accounts for.
- Recipe
Validation - What validating one recipe found.
- Validate
Request - A validation run.
- Validation
Report - Everything
validatefound under one root.
Functions§
- aisle_
coverage - Check the collection’s ingredients against the aisle configuration
Context::aislenames — the questioncook doctor aisleasks. - broken_
references - Resolve every reference a report collected, keeping the ones that lead nowhere.
- pantry_
coverage - Check the collection’s ingredients against the pantry configuration
Context::pantrynames — the questioncook doctor pantryasks. - validate
- Validate every recipe under
req’s root.