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§
- Check
Context - 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.