cekrem/elm-review-positional-arguments/1.0.1

NOTE: the latest version is 1.1.2

NoTooManyPositionalArguments

Provides a rule to limit the number of positional arguments to functions.

rule : Config -> Rule

Reports functions that have too many positional arguments.

config =
    [ NoTooManyPositionalArguments.rule NoTooManyPositionalArguments.defaults
    ]

When a function has more positional arguments than the configured maximum, the rule reports an error and can auto-fix it by converting to a record parameter. Call sites within the same module are also updated.

Default configuration: flags functions with more than 4 positional arguments.

type Config

Configuration for the rule.