diff options
author | James Fish <james@fishcakez.com> | 2015-02-15 18:40:29 +0000 |
---|---|---|
committer | James Fish <james@fishcakez.com> | 2015-02-16 14:58:27 +0000 |
commit | e2d3c27b80a1aee696d7e60dc3a818830b9418c9 (patch) | |
tree | 11be84f56f7d3348e8c5cb16d1a662532243792f | |
parent | 63a765f1b0533b8ca036c29abfed29239b5d52f3 (diff) |
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.
-rw-r--r-- | src/rebar_prv_dialyzer.erl | 8 |
1 files changed, 1 insertions, 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, |