Skip to content

Implement EnumIsDefinedBeforeCasting #365

@Vannevelj

Description

@Vannevelj

Warn when casting an integer to an Enum without verifying it is a defined value (using Enum.IsDefined), which can lead to "corrupt" enum states that pass through switch statements without hitting any branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions