Skip to content

Instantly share code, notes, and snippets.

@leandrocp
Last active June 6, 2019 14:11
Show Gist options
  • Save leandrocp/b4f551067db530c3878ce72f52413c0c to your computer and use it in GitHub Desktop.
Save leandrocp/b4f551067db530c3878ce72f52413c0c to your computer and use it in GitHub Desktop.
elixir_code_quality_project_deps.exs
defmodule YourProject.MixProject do
use Mix.Project
def project do
[
# current configs...
elixirc_options: [warnings_as_errors: true],
aliases: aliases(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
ignore_warnings: ".dialyzer_ignore.exs"
]
]
end
defp deps do
[
# current deps...
# dev, test
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test], runtime: false},
{:sobelow, "~> 0.7", only: [:dev, :test], runtime: false}
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment