Skip to main content

Module guard

Module guard 

Source
Expand description

Guard DSL rules as a validation-pipeline concern shared by every engine.

GuardRuleSet holds the loaded rule files and turns the Guard evaluator’s findings into Diagnostics: the finding’s template path becomes the diagnostic’s entity, property path, and source span. Because both built-in engines evaluate Guard rules through this one type, they cannot disagree on a Guard finding.

Structs§

GuardRuleSet
The Guard rule files an engine was configured with, parsed once at construction so a syntax error fails engine construction rather than every later validation.

Constants§

GUARD_CATEGORY_PREFIX
Prefix of the category every Guard rule reports, followed by its pack name.

Functions§

guard_category
resolve_guard_config