A switch over a scoped enumeration of the file has no default and leaves out some of its enumerators

tx0/cpp:switch-misses-enumeratorrecommendedwarningreliability/object-contractsdepth fastbug

What it finds

When every label names an enumerator of one enum class and there is no default, the values left out fall through the switch silently; a new enumerator added later is not noticed either. Listing every enumerator, or a default that handles the rest, makes the choice explicit.

From the rule's source, switch_misses_enumerator.rs.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/cpp:switch-misses-enumerator" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/cpp:switch-misses-enumerator] reason="..."

tx0 explain tx0/cpp:switch-misses-enumerator shows the same in the terminal. Found a false positive? Report it.