forked from jjcarstens/sobelow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
71 lines (63 loc) · 1.53 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
defmodule Sobelow.Mixfile do
use Mix.Project
@source_url "https://github.com/nccgroup/sobelow"
@version "0.13.0"
def project do
[
app: :sobelow,
version: @version,
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
description: "Security-focused static analysis for Elixir & the Phoenix framework",
name: "Sobelow",
homepage_url: "https://sobelow.io",
docs: docs(),
aliases: aliases(),
escript: [main_module: Mix.Tasks.Sobelow]
]
end
def application do
[extra_applications: [:logger, :eex, :inets]]
end
defp deps do
[
# "Prod" Dependencies
{:jason, "~> 1.0"},
# Dev / Test Dependencies
{:ex_doc, "~> 0.20", only: :dev},
{:credo, "~> 1.6 or ~> 1.7", only: [:dev, :test], runtime: false}
]
end
defp package do
[
licenses: ["Apache-2.0"],
maintainers: ["Griffin Byatt", "Holden Oullette"],
links: %{
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
"GitHub" => @source_url
}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md"]
]
end
defp aliases do
[
"test.all": [
"hex.audit",
"format --check-formatted",
"compile --warnings-as-errors",
"deps.unlock --check-unused",
"credo --all --strict"
]
]
end
end