| id | MDS056 |
|---|---|
| name | forbidden-text |
| status | ready |
| description | Paragraphs must not contain any configured substring. |
| category | prose |
| nature | content |
| maintainability |
Paragraphs must not contain any configured substring.
For each paragraph in the document, the rule scans the plain text for
every entry in contains: and emits one diagnostic per match,
anchored at the paragraph's start line. Tables (paragraphs whose first
line starts with |) are skipped. Empty substrings are ignored.
Under a schema scope override (plan 146), the per-scope filter keeps only diagnostics inside the scope's range. The same code applies to a single section.
| Setting | Type | Default | Description |
|---|---|---|---|
contains |
list | [] |
Substrings forbidden in any paragraph. Match is case-sensitive. |
Document-wide:
rules:
forbidden-text:
contains: ["should", "may", "might"]Per-section (via plan 146 schema scope):
kinds:
runbook:
schema:
sections:
- heading: "Diagnosis"
rules:
forbidden-text:
contains: ["should", "may"]Disable:
rules:
forbidden-text: false# Title
The platform must investigate the failure before acting.
Operators escalate the alert when the timer expires.# Title
We should investigate the failure before acting.- ID: MDS056
- Name:
forbidden-text - Status: ready
- Default: disabled
- Fixable: no
- Implementation: source
- Category: prose