Replace an unclear pronoun with the noun
Rule ste-practices.unclear-pronoun in the STE Writing Practices category.
| Field | Value |
|---|---|
| Kind | pattern |
| Severity | suggestion |
| Scope | sentence |
Profile strict |
advisory |
Profile normal |
advisory |
Profile relaxed |
advisory |
Message
Section titled “Message”Pronoun “<match>” may have more than one referent.
Replace the pronoun with the noun it refers to.
Examples
Section titled “Examples”Example 1: flagged
Section titled “Example 1: flagged”If you attach the policy to the role, it can become invalid.Rewrite:
If you attach the policy to the role, the policy can become invalid.Example 2: flagged
Section titled “Example 2: flagged”The reviewer approves the change after he reads the diff.Rewrite:
The reviewer approves the change after reading the diff.Exceptions
Section titled “Exceptions”- quotation
- code-span
Provenance
Section titled “Provenance”ASD-STE100