truqu / elm-review-noredundantcons / NoRedundantCons

rule : Review.Rule.Rule

Forbids consing to a literal list.

Expressions like foo :: [ bar ] can be rewritten more simply as [ foo, bar ].

To use this rule, add it to your elm-review config like so:

module ReviewConfig exposing (config)

import NoRedundantCons
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoRedundantCons.rule
    ]