Credo.Check.Consistency.UnusedVariableNames (Credo v1.5.0) View Source

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

Explanation

Elixir allows us to use _ as a name for variables that are not meant to be used. But it’s a common practice to give these variables meaningful names anyway (_user instead of _), but some people prefer to name them all _.

A single style should be present in the same codebase.

Configuration parameters

There are no specific parameters for this check.

Like with all checks, general params can be applied.

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