jfmengels/elm-review-cognitive-complexity

Provide an elm-review rule to measure the cognitive complexity of a function.


License
BSD-3-Clause
Install
elm-package install jfmengels/elm-review-cognitive-complexity 1.0.3

Documentation

elm-review-cognitive-complexity

Provides an elm-review rule to measure the cognitive complexity of a function.

Provided rules

Configuration

module ReviewConfig exposing (config)

import CognitiveComplexity
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ CognitiveComplexity.rule 15
    ]

Try it out

You can try the example configuration above out by running the following command:

elm-review --template jfmengels/elm-review-cognitive-complexity/preview