Start a safety block with the command or the condition
Rule ste-safety.safety-block-does-not-start-with-command in the STE Safety Instructions category.
| Field | Value |
|---|---|
| Kind | pattern |
| Severity | warning |
| Scope | paragraph |
Profile strict |
enforced |
Profile normal |
enforced |
Profile relaxed |
enforced |
Message
Section titled “Message”This safety block does not open with a command or condition (“<match>”).
Move the command or the condition to the first sentence of the block.
Examples
Section titled “Examples”Example 1: flagged
Section titled “Example 1: flagged”WARNING: There is a risk of data loss when you run this command with the force flag.Rewrite:
WARNING: Do not use the force flag on a production database. The force flag deletes every row.Example 2: flagged
Section titled “Example 2: flagged”CAUTION: The cache can serve stale reads for one hour after you change the config.Rewrite:
CAUTION: Wait one hour after you change the config. The cache serves stale reads until then.Exceptions
Section titled “Exceptions”- quotation
- code-span
Provenance
Section titled “Provenance”ASD-STE100