This is a collection of my personal (and highly experimental) Credo checks.
- Install
my_credo_checks
as a dependency:
def deps do
[
{:my_credo_checks, "~> 0.1.2"}
]
end
- Add to your
.credo.exs
file:
# ...
# my_credo_checks must be either added to project dependencies or manually
# required with the line below:
requires: ["#{__DIR__}/lib/my_credo_checks/"],
# ...
checks: [
# Consistency
{MyCredoChecks.Consistency.DescribeArity, []},
# Readability
{MyCredoChecks.Readability.NoModule, []},
# Warning
{MyCredoChecks.Warning.DuplicatedAlias, []},
{MyCredoChecks.Warning.RedundantDelegateAlias, []},
{MyCredoChecks.Warning.RejectTags, []},
{MyCredoChecks.Warning.UnspecifiedAsync, []}
# ... Vanilla checks, etc.
]
# ...