Skip to content

Commit

Permalink
added a config for setting the local path
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballlover723 committed Dec 23, 2020
1 parent 622fad9 commit 69d1a3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dialyxir/project.ex
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ defmodule Dialyxir.Project do
defp core_path(), do: dialyzer_config()[:plt_core_path] || Mix.Utils.mix_home()

defp local_plt(name) do
Path.join(Mix.Project.build_path(), "dialyxir_" <> name <> ".plt")
Path.join(local_path(), "dialyxir_" <> name <> ".plt")
end

defp local_path(), do: dialyzer_config()[:plt_local_path] || Mix.Project.build_path()

defp default_paths() do
reduce_umbrella_children([], fn paths ->
[Mix.Project.compile_path() | paths]
Expand Down

0 comments on commit 69d1a3d

Please sign in to comment.