View Source Credo.Check.Refactor.IoPuts (Credo v1.7.2-rc.4)

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

Explanation

Prefer using Logger statements over using IO.puts/1.

This is a situational check.

As such, it might be a great help for e.g. Phoenix projects, but a clear mismatch for CLI projects.

Check-Specific Parameters

There are no specific parameters for this check.

General Parameters

Like with all checks, general params can be applied.

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