rule : Review.Rule.Rule
Reports when a Unit (()
) is not matched in a pattern.
🔧 Running with --fix
will automatically remove all the reported errors.
config =
[ NoUnmatchedUnit.rule
]
foo : () -> Int
foo _ =
3
foo : () -> Int
foo () =
3
You can try this rule out by running the following command:
elm-review --template mthadley/elm-review-unit/example --rules NoUnmatchedUnit