Skip to main content

Module custom

Module custom 

Source

Functions§

run_custom_rules
Run all custom rules defined in the config against the enriched graph. Custom rules are rules with a command field in [rules]. Each custom rule receives { graph, options } as JSON on stdin — the enriched graph (nodes, edges, analyses) plus the rule’s options — and emits diagnostics as newline-delimited JSON on stdout.
run_one