A collection of Credo checks used by the team at Localvore Today.
Localvore.Check.DebugComment
- Check for commented out debug statements:
defmodule Example do
# require Logger
def important_function(arg1, arg2) do
# Logger.info("Calling important_function/2")
# IO.inspect({arg1, arg2})
end
end
If available in Hex, the package can be installed
by adding localvore_credo_checks
to your list of dependencies in mix.exs
:
def deps do
[{:localvore_credo_checks, "~> 0.1"}]
end
Want to live on the edge?
def deps do
[{:localvore_credo_checks, github: "localvore-today/localvore-credo-checks"}]
end