Use the active voice
Rule ste-verbs.passive-voice in the STE Verbs category.
| Field | Value |
|---|---|
| Kind | pattern |
| Severity | warning |
| Scope | sentence |
Profile strict |
enforced |
Profile normal |
advisory |
Profile relaxed |
advisory |
Message
Section titled “Message”Passive voice “<match>”. Name the actor and use the active voice.
Name the actor as the subject, or rewrite as an imperative.
Examples
Section titled “Examples”Example 1: flagged
Section titled “Example 1: flagged”The manifest is validated by the admission controller.Rewrite:
The admission controller validates the manifest.Example 2: flagged
Section titled “Example 2: flagged”The stale branches were deleted last night.Rewrite:
The cleanup job deleted the stale branches last night.Example 3: flagged
Section titled “Example 3: flagged”The retry limit is set in the client config.Rewrite:
Set the retry limit in the client config.Example 4: flagged
Section titled “Example 4: flagged”The option is often ignored when the index is open.Rewrite:
The option is often useful when the index is open.Exceptions
Section titled “Exceptions”- quotation
- code-span
- unknown-agent
Provenance
Section titled “Provenance”ASD-STE100