View Source Credo.Check.Refactor.IoPuts (Credo v1.7.10)
Basics
This check is disabled by default.
Learn how to enable it via
.credo.exs
.
This check is tagged
:controversial
This means that this check is more opinionated than others and not for everyone's taste.
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.