View Source Credo.Check.Consistency.UnusedVariableNames (Credo v1.7.5)
This check is disabled by default.
Learn how to enable it via
This check has a base priority of
high and works with any version of Elixir.
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
_user instead of
_), but some people prefer to name them all anonymously (
A single style should be present in the same codebase.
Use the following parameters to configure this check:
Force a choice, values can be
This parameter defaults to
Like with all checks, general params can be applied.
Parameters can be configured via the
.credo.exs config file.