Pattern: Use of enum with array syntax
Issue: -
Looks for enums written with array syntax.
When using array syntax, adding an element in a position other than the last causes all previous definitions to shift. Explicitly specifying the value for each key prevents this from happening.
# bad
enum status: [:active, :archived]
# good
enum status: { active: 0, archived: 1 }