Skip to main content

compile

Function compile 

Source
pub fn compile(
    id: &str,
    def: &CheckDef,
    defs: &BTreeMap<String, String>,
) -> Result<CompiledCheck, CheckCompileError>
Expand description

Compile one check’s when predicate. Named helpers from [rules.defs] are expanded into the predicate first (see [expand_defs]), so a check can reuse a shared vocabulary (is_domain, is_test_file, …).