Skip to content

Rule: Enumerator value changed

Canonical rule slug: enum-member-value-changed. ← back to all rules

An enumerator keeps its name but changes its numeric value, so existing binaries and persisted data carry the wrong meaning.

Canonical demonstration

Variants

The same rule demonstrated under a different condition.