View Source Credo.Check.Refactor.FunctionArity (Credo v1.7.7)


This check is enabled by default.

Learn how to disable it via .credo.exs.

This check has a base priority of 0 and works with any version of Elixir.


A function can take as many parameters as needed, but even in a functional language there can be too many parameters.

Can optionally ignore private functions (check configuration options).

Check-Specific Parameters

Use the following parameters to configure this check:


The maximum number of parameters which a function should take.

This parameter defaults to 8.


Set to true to ignore private functions.

This parameter defaults to false.

General Parameters

Like with all checks, general params can be applied.

Parameters can be configured via the .credo.exs config file.