Skip to content

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

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.

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.
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.
  • quotation
  • code-span

ASD-STE100