Skip to content

Should enums pass the DataClass rule? #21

@Whathecode

Description

@Whathecode

I ran into an enum to which the DataClass rule applies and for which detekt did not pass, but which lives up to the expectations (predictable equals/hashcode behavior).

@ImplementAsDataClass
interface Data

enum class Sex : Data
{
    Male,
    Female,
    Intersex
}

Should enums be allowed? If so, all, or only some?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions