R003 ContradictoryModals
- Applies to
- Rules files (CLAUDE.md, AGENTS.md, .mdc, .cursorrules, Copilot instructions, GEMINI.md, .windsurfrules)
- Severity
- Error (−10 per finding, max −30)
- Summary
- Mirrored instructions: the same instruction is both required and forbidden.
- Flags
- A line starting with always / must and another starting with never / must not / do not, with the same remaining text.
- Measured false-positive rate
- Not measured: no findings in the 755-file corpus. Methodology
Before
- Always use tabs.
- Never use tabs.
After
- Use tabs.
Fix
- Keep one instruction and delete the other.