Use one obligation word
Rule ste-words.obligation-word-substitution in the STE Words category.
| Field | Value |
|---|---|
| Kind | substitution |
| Severity | warning |
| Scope | prose |
Profile strict |
enforced |
Profile normal |
advisory |
Profile relaxed |
excluded |
Message
Section titled “Message”Use “<replacement>” rather than “<match>”.
Replace with “must” where the requirement is real. Where it is genuinely optional, say so plainly (“optional”, “you can”) rather than hedging the obligation word. In a document using RFC 2119 keywords, write them in capitals.
Examples
Section titled “Examples”Example 1: flagged
Section titled “Example 1: flagged”The worker should retry the request before it reports a failure.Rewrite:
The worker must retry the request before it reports a failure.Example 2: flagged
Section titled “Example 2: flagged”Callers shall close the handle.Rewrite:
Callers must close the handle.Exceptions
Section titled “Exceptions”- identifier-fidelity
- code-span
- quotation
- normative-keyword
Provenance
Section titled “Provenance”ASD-STE100