From e2d3c27b80a1aee696d7e60dc3a818830b9418c9 Mon Sep 17 00:00:00 2001 From: James Fish Date: Sun, 15 Feb 2015 18:40:29 +0000 Subject: Remove extra default warnings It is not convenient for everyone to handle unmatched_returns and underspecs warnings. Extra default warnings are removed to match dialyzer's behaviour. --- src/rebar_prv_dialyzer.erl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl index bcba36a..240427b 100644 --- a/src/rebar_prv_dialyzer.erl +++ b/src/rebar_prv_dialyzer.erl @@ -380,8 +380,7 @@ run_dialyzer(State, Opts) -> %% dialyzer may return callgraph warnings when get_warnings is false case proplists:get_bool(get_warnings, Opts) of true -> - WarningsList = rebar_state:get(State, dialyzer_warnings, - default_warnings()), + WarningsList = rebar_state:get(State, dialyzer_warnings, []), Opts2 = [{warnings, WarningsList} | Opts], {Unknowns, Warnings} = format_warnings(dialyzer:run(Opts2)), _ = [?CONSOLE("~s", [Unknown]) || Unknown <- Unknowns], @@ -408,11 +407,6 @@ format_warnings([], Unknowns, Warnings) -> strip(Warning) -> string:strip(Warning, right, $\n). -default_warnings() -> - [error_handling, - unmatched_returns, - underspecs]. - no_warnings() -> [no_return, no_unused, -- cgit v1.1