summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-02-16 09:28:50 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-02-16 09:28:50 -0600
commit9665eb8e72bf941b833d5ffa0f95ab736868a602 (patch)
tree11be84f56f7d3348e8c5cb16d1a662532243792f
parent63a765f1b0533b8ca036c29abfed29239b5d52f3 (diff)
parente2d3c27b80a1aee696d7e60dc3a818830b9418c9 (diff)
Merge pull request #153 from fishcakez/dialyzer_no_defaults
Dialyzer: Remove extra default warnings
-rw-r--r--src/rebar_prv_dialyzer.erl8
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,