-
Notifications
You must be signed in to change notification settings - Fork 11
/
mix.exs
77 lines (70 loc) · 1.81 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
defmodule ExCheck.MixProject do
use Mix.Project
@github_url "https://github.com/karolsluszniak/ex_check"
@version "0.16.0"
def project do
[
app: :ex_check,
version: @version,
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
xref: [exclude: [:crypto]],
preferred_cli_env: [
check: :test,
credo: :test,
dialyxir: :test,
doctor: :test,
sobelow: :test,
"deps.audit": :test
]
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: []
]
end
defp deps do
[
{:credo, ">= 0.0.0", only: [:test], runtime: false},
{:doctor, ">= 0.0.0", only: [:test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:sobelow, ">= 0.0.0", only: [:test], runtime: false},
{:mix_audit, ">= 0.0.0", only: [:test], runtime: false}
]
end
defp docs do
[
extras: [
"CHANGELOG.md": [title: "Changelog"],
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
assets: "assets",
logo: "assets/logo.svg",
source_url: @github_url,
source_ref: "v#{@version}",
api_reference: false,
formatters: ["html"]
]
end
defp package do
[
description:
"One task to efficiently run all code analysis & testing tools in an Elixir project",
maintainers: ["Karol Słuszniak"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/ex_check/changelog.html",
"GitHub repository" => @github_url
}
]
end
end