What it does
When a defect is fixed inside one branch of a conditional, is the same expression present in the sibling branch and left unchanged?
How it helps you
A bug fixed in one branch gets fixed in the matching branch too.
Tested against itself
9 deliberate breaks, all caught
We change this check on purpose and watch its test fail. Each dot is one of those changes.
Details
| Category | Code quality |
|---|---|
| Checks in this category | 216 |
| ISO/IEC 25010 | Maintainability: modifiability |
| Breaks caught | 9 |