Skip to content

Commit

Permalink
fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcarstens committed Feb 13, 2020
1 parent 3bcb1dd commit f325f4b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ defmodule NervesHubLink.MixProject do
app: :nerves_hub_link,
deps: deps(),
description: description(),
dialyzer: dialyzer(),
docs: [main: "readme", extras: ["README.md"]],
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
Expand Down Expand Up @@ -49,6 +50,15 @@ defmodule NervesHubLink.MixProject do
"The NervesHub device application"
end

defp dialyzer() do
[
# TODO: add :unmatched_returns
flags: [:race_conditions, :error_handling, :underspecs],
plt_add_apps: [:atecc508a, :nerves_key, :nerves_key_pkcs11],
list_unused_filters: true
]
end

defp package do
[
licenses: ["Apache-2.0"],
Expand Down

0 comments on commit f325f4b

Please sign in to comment.