Skip to main content

Module check

Module check 

Source
Expand description

Architecture-rules check engine (backs ctx check and the check_violations metric of ctx score).

Loads .ctx/rules.toml, builds a file-level dependency set from the code intelligence index (resolved call/implements/extends/uses edges plus resolved imports), evaluates the rules, and returns violations. The CLI wrapper in src/commands/check.rs handles all printing.

Structs§

CheckContext
Everything loaded and validated, ready for evaluation.

Functions§

collect_violations
Build the dependency set and evaluate all rules.
load_context
Load and compile the rules file, open the index, and validate.