summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2015-05-22 09:46:56 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2015-05-22 09:53:38 +0200
commit17477b54f83b4fbf22aad1435182d05d35c11991 (patch)
treeb1f6b1e52cd06417fb7bd658205a5b60452e6b5a
parent5dfdd9066f04f3e3c3123f061bb073eaf22f91c8 (diff)
downloadrebar-17477b54f83b4fbf22aad1435182d05d35c11991.tar.gz
dialyzer: change plt_location to rebar3 default
To match rebar3, change plt_location's default to 'local'.
-rw-r--r--src/rebar_dialyzer.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rebar_dialyzer.erl b/src/rebar_dialyzer.erl
index 982cc7e..0e44592 100644
--- a/src/rebar_dialyzer.erl
+++ b/src/rebar_dialyzer.erl
@@ -143,8 +143,8 @@ info_help(Description) ->
Description,
{dialyzer,
[
- {plt_location, shared},
{plt_location, local},
+ {plt_location, shared},
{plt_location, "custom_dir"},
{plt_extra_apps, [app1, app2]},
{warnings, [unmatched_returns, error_handling]}
@@ -164,7 +164,7 @@ plt(Config, AppFile, Opts) ->
{NewConfig, Plt}.
plt_dir(Config, Opts) ->
- Location = proplists:get_value(plt_location, Opts, shared),
+ Location = proplists:get_value(plt_location, Opts, local),
plt_dir1(Config, Location).
plt_dir1(_Config, Location) when is_list(Location) ->
@@ -174,12 +174,12 @@ plt_dir1(_Config, Location) when is_list(Location) ->
true ->
Location
end;
-plt_dir1(_Config, shared) ->
- {ok, Home} = init:get_argument(home),
- filename:join([Home, ".rebar", "plt"]);
plt_dir1(Config, local) ->
BaseDir = rebar_utils:base_dir(Config),
- filename:join([BaseDir, ".rebar"]).
+ filename:join([BaseDir, ".rebar"]);
+plt_dir1(_Config, shared) ->
+ {ok, Home} = init:get_argument(home),
+ filename:join([Home, ".rebar", "plt"]).
check_plt_existence(Plt) ->
case filelib:is_regular(Plt) of