An enum's name ends in Enum or Flags
What it finds
The naming guidelines leave the kind of a type out of its name: callers see that Color is an enum. ColorEnum or OptionFlags repeat it.
From the rule's source, enum_type_suffix.rs.
enum ColorEnumtx0 reports: the enum ColorEnum has its kind in its name{ Red,} enum Shape{ Circle,} Turn it on, off or suppress it
The rule runs from the all tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/csharp:enum-type-suffix" = "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/csharp:enum-type-suffix] reason="..."tx0 explain tx0/csharp:enum-type-suffix shows the same in the terminal. Found a false positive? Report it.