lue-bird / elm-review-variant-value-count / Review.VariantValueCount

Limit the number of values allowed on a variant

zeroOrOne : Review.Rule.Rule

Reports variant definitions that have multiple attached values

config =
    [ Review.VariantValueCount.zeroOrOne
    ]

reported

type User
    = User String Time.Posix

not reported

type User
    = User { name : String, registrationTime : Time.Posix }

dependency variants with multiple arguments are also ok

import List.NonEmpty exposing (NonEmpty(..))

notReported =
    List.NonEmpty.NonEmpty 'H' [ 'e', 'l', 'l', 'o' ]

why enable this rule?