Do not omit the subject after If, When, or Once
Rule ste-sentences.omitted-subject in the STE Sentences category.
| Field | Value |
|---|---|
| Kind | pattern |
| Severity | warning |
| Scope | sentence |
Profile strict |
enforced |
Profile normal |
advisory |
Profile relaxed |
advisory |
Message
Section titled “Message”Omitted subject “<match>”. Name what is installed, configured, or ready.
Restore the omitted subject.
Examples
Section titled “Examples”Example 1: flagged
Section titled “Example 1: flagged”If configured, the proxy rewrites the Host header.Rewrite:
If the proxy is configured, it rewrites the Host header.Example 2: flagged
Section titled “Example 2: flagged”Once enabled, the cache serves stale reads.Rewrite:
Once the cache is enabled, it serves stale reads.Exceptions
Section titled “Exceptions”- quotation
- code-span
Provenance
Section titled “Provenance”ASD-STE100