Expand description
The deterministic rule engine.
Given a snapshot and a config, run evaluates every built-in rule
and returns a sorted, deduplicated Vec<Violation>. The sort key is
(rule_id, viewport, selector, dom_order) — see docs/local/prd.md §9.
Structs§
- RunReport
- A partitioned engine result: reported and ignored violations split
according to the active
[[ignore]]config entries.
Functions§
- apply_
ignores - Partition
violationsinto(reported, ignored)according toignores. - run
- Run every built-in rule against the snapshot. Output is sorted and deduplicated before return.
- run_
many - Run every built-in rule against each snapshot in
snapshotsand return their merged, sorted, deduplicated violation list. - run_
report - Like
run_manybut returns aRunReportpartitioning the violation set into reported vs. ignored according toconfig.ignore.