Packages

A set of community-maintained checks for the Credo static analysis tool. Many of the checks are implementations of rules from https://github.com/christopheradams/elixir_style_guide.

Current section

Files

Jump to
credo_contrib lib credo_contrib.ex
Raw

lib/credo_contrib.ex

defmodule CredoContrib do
@moduledoc false
alias Credo.Plugin
@config_file :code.priv_dir(:credo_contrib)
|> Path.join(".credo.exs")
|> File.read!()
def init(exec) do
Plugin.register_default_config(exec, @config_file)
end
end