CivilCode's in-house Credo rules.
To your list of dependencies in mix.exs
:
def deps do
[
{:civil_credo, github: "civilcode/civil-credo", only: [:dev, :test], runtime: false},
]
end
and .credo.exs
.
%{
configs: [
%{
name: "default",
# 1. Configure the plugin
plugins: [
{CivilCredo, []}
]
}
]
checks: [
# 2. Add this after existing checks
# Custom checks from Plugin
#
{CivilCredo.Check.Design.TagWip, []},
{CivilCredo.Check.Warning.UnsafeStruct, []}
]
}
The CivilCode Collective, a group of freelance developers, build tailored business applications in Elixir and Phoenix in Montreal, Canada.