From 4ac347c4bf03211e6c04aa02e58eb59f30088820 Mon Sep 17 00:00:00 2001 From: James Fish Date: Tue, 3 Mar 2015 17:31:04 +0000 Subject: Do not automatically check plt --- src/rebar_prv_dialyzer.erl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl index 24abc4f..9d2c10a 100644 --- a/src/rebar_prv_dialyzer.erl +++ b/src/rebar_prv_dialyzer.erl @@ -380,13 +380,18 @@ run_dialyzer(State, Opts) -> case proplists:get_bool(get_warnings, Opts) of true -> WarningsList = rebar_state:get(State, dialyzer_warnings, []), - Opts2 = [{warnings, WarningsList} | Opts], + Opts2 = [{warnings, WarningsList}, + {check_plt, false} | + Opts], {Unknowns, Warnings} = format_warnings(dialyzer:run(Opts2)), _ = [?CONSOLE("~s", [Unknown]) || Unknown <- Unknowns], _ = [?CONSOLE("~s", [Warning]) || Warning <- Warnings], {length(Warnings), State}; false -> - _ = dialyzer:run([{warnings, no_warnings()} | Opts]), + Opts2 = [{warnings, no_warnings()}, + {check_plt, false} | + Opts], + _ = dialyzer:run(Opts2), {0, State} end. -- cgit v1.1