Provides elm-review
rules to forbid pipelines for code-style reasons.
ReviewPipelineStyles - Reports pipelines that are not valid by user-defined rules.For example, the usage of <| or the usage of excessively-long |> pipelines.
This rule works with the following pipeline types:
|><|>><<foo (bar (baz (i (j k))))module ReviewConfig exposing (config)
import ReviewPipelineStyles
import Review.Rule exposing (Rule)
config : List Rule
config =
[ ReviewPipelineStyles.rule
[ forbid leftPizzaPipelines
|> andCallThem "forbidden <| pipeline"
, forbid rightPizzaPipelines
|> that (haveMoreStepsThan 10)
|> andCallThem "overly long |> pipeline"
]
]You can try the example configuration above out by running the following command:
elm-review --template SiriusStarr/elm-review-pipeline-styles/example