pub fn text_rule(spec: TextRuleSpec) -> Box<dyn DocRule>
Attach required / forbidden phrase checks to the WHOLE document — a cross-plane DocRule for a contract’s rules slot. A requires miss is document-level (no position); each forbids hit anchors at the exact offending source line.
DocRule
rules
requires
forbids
As requires and forbids do.