Skip to content

antedeguemon/my_credo_checks

Repository files navigation

my_credo_checks

This is a collection of my personal (and highly experimental) Credo checks.

Installation

  1. Install my_credo_checks as a dependency:
def deps do
  [
    {:my_credo_checks, "~> 0.1.2"}
  ]
end
  1. 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.
  ]

  # ...