Skip to content

Commit

Permalink
Add dialyzer/dialyxir and lcov_ex
Browse files Browse the repository at this point in the history
  • Loading branch information
jzimbel-mbta authored Aug 5, 2024
1 parent e67c908 commit d5a72e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ transit_data_reports-*.tar
/tmp/

# Files downloaded by notebooks.
/dataset/
/dataset/

# Dialyzer creates Persistent Lookup Table files to cache its analysis of the project.
/priv/plts/*.plt
/priv/plts/*.plt.hash
13 changes: 11 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ defmodule TransitData.MixProject do
version: "0.1.0",
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps()
deps: deps(),
dialyzer: [
plt_add_deps: :app_tree,
flags: [
:unmatched_returns
]
],
test_coverage: [tool: LcovEx]
]
end

Expand All @@ -31,7 +38,9 @@ defmodule TransitData.MixProject do
{:jaxon, "~> 2.0"},
{:stream_gzip, "~> 0.4.2"},
{:sweet_xml, "~> 0.7.4"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:lcov_ex, "~> 0.3", only: [:dev, :test], runtime: false}
]
end
end

0 comments on commit d5a72e5

Please sign in to comment.