Skip to content

DECLARATIVE-YAML-15: Forbid a phrase document-wide

forbids: on the body root asserts a phrase appears nowhere in the document (compiles to a docRule).

Builds on: DECLARATIVE-YAML-14: Require a phrase in a section

The declarative YAML artifact, verbatim — no code required.

mcVersion: 1
kind: contract
body:
forbids:
- pattern: "}scripts/" # must appear nowhere in the document
normalize: false # exact bytes, no whitespace folding
note: "route through the op substrate"
sections:
- section: Notes
  • forbids: on the body root -> a whole-document docRule
  • text/forbids finding at the offending line