sketch-hq / nicene

Additional Credo checks
MIT License
39 stars 7 forks source link

Nicene

Nicene is a collection of Credo checks.

Documentation is available at https://hexdocs.pm/nicene.

Installation

Add nicene to your list of dependencies in mix.exs:

def deps do
  [
    {:nicene, "~> 0.7.0"}
  ]
end

Usage

Nicene defines Credo.Checks that you can add to your .credo.exs, for example:

%{
  configs: [
    %{
      name: "default",
      checks: [
        {Nicene.FileAndModuleName, []},
        {Nicene.UnnecessaryPatternMatching, []},
        {Nicene.FileTopToBottom, []},
      ]
    }
  ]
}

See the documentation on hex for the list of supported checks and their configuration.