pub fn forbids(specs: Vec<TextMatchSpec>) -> Box<dyn Rule>Expand description
Forbid each listed phrase from appearing in the bound section’s subtree text — a
node-local Rule. Each entry emits a text/forbids finding at the offending line
for every hit (or text/count at the heading when a positive max cap is exceeded).
§Panics
On an entry with a negative max, an entry with no needle, or a regex the regex
crate rejects.