Skip to content

Commit c5fa937

Browse files
committed
Add dialyzer
1 parent b91ea9f commit c5fa937

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

mix.exs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ defmodule Tracex.MixProject do
1111
start_permanent: Mix.env() == :prod,
1212
deps: deps(),
1313
docs: docs(),
14-
package: package()
14+
package: package(),
15+
dialyzer: dialyzer()
1516
]
1617
end
1718

@@ -25,7 +26,8 @@ defmodule Tracex.MixProject do
2526
# Run "mix help deps" to learn about dependencies.
2627
defp deps do
2728
[
28-
{:ex_doc, "~> 0.21", only: :dev, runtime: false}
29+
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
30+
{:dialyxir, "~> 1.0", only: :dev, runtime: false}
2931
]
3032
end
3133

@@ -48,4 +50,10 @@ defmodule Tracex.MixProject do
4850
}
4951
]
5052
end
53+
54+
defp dialyzer() do
55+
[
56+
plt_add_apps: [:mix]
57+
]
58+
end
5159
end

mix.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
%{
2+
"dialyxir": {:hex, :dialyxir, "1.0.0", "6a1fa629f7881a9f5aaf3a78f094b2a51a0357c843871b8bc98824e7342d00a5", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "aeb06588145fac14ca08d8061a142d52753dbc2cf7f0d00fc1013f53f8654654"},
23
"earmark": {:hex, :earmark, "1.4.3", "364ca2e9710f6bff494117dbbd53880d84bebb692dafc3a78eb50aa3183f2bfd", [:mix], [], "hexpm", "8cf8a291ebf1c7b9539e3cddb19e9cef066c2441b1640f13c34c1d3cfc825fec"},
4+
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
35
"ex_doc": {:hex, :ex_doc, "0.21.3", "857ec876b35a587c5d9148a2512e952e24c24345552259464b98bfbb883c7b42", [:mix], [{:earmark, "~> 1.4", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm", "0db1ee8d1547ab4877c5b5dffc6604ef9454e189928d5ba8967d4a58a801f161"},
46
"makeup": {:hex, :makeup, "1.0.1", "82f332e461dc6c79dbd82fbe2a9c10d48ed07146f0a478286e590c83c52010b5", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "49736fe5b66a08d8575bf5321d716bac5da20c8e6b97714fec2bcd6febcfa1f8"},
57
"makeup_elixir": {:hex, :makeup_elixir, "0.14.0", "cf8b7c66ad1cff4c14679698d532f0b5d45a3968ffbcbfd590339cb57742f1ae", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "d4b316c7222a85bbaa2fd7c6e90e37e953257ad196dc229505137c5e505e9eff"},

0 commit comments

Comments
 (0)