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?
I ran into an enum to which the
DataClassrule applies and for which detekt did not pass, but which lives up to the expectations (predictable equals/hashcode behavior).Should enums be allowed? If so, all, or only some?