summaryrefslogtreecommitdiff
path: root/src/rebar_prv_dialyzer.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-09-22 11:26:06 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-09-22 11:26:06 -0400
commitfa33d65c93c515fbb2b57ba3d4c2879d94dfaaf3 (patch)
treefc024d0712b8b0084803a80f21039f9698fad7e3 /src/rebar_prv_dialyzer.erl
parent86478aa2e65677eeea452bfd1fe12e0b4ec5f67c (diff)
parentea95e68ab0bfb7344687ea08ca566b185673cd99 (diff)
Merge pull request #823 from project-fifo/nice-dialyzer
Colorized dialyzer output
Diffstat (limited to 'src/rebar_prv_dialyzer.erl')
-rw-r--r--src/rebar_prv_dialyzer.erl14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index ef14b81..035155b 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -408,15 +408,8 @@ format_warnings(Output, Warnings) ->
length(Warnings1).
format_warnings(Warnings) ->
- [format_warning(Warning) || Warning <- Warnings].
-
-format_warning(Warning) ->
- case strip(dialyzer:format_warning(Warning, fullpath)) of
- ":0: " ++ Unknown ->
- Unknown;
- Warning1 ->
- Warning1
- end.
+ [rebar_dialyzer_format:format(Warning) || Warning <- Warnings].
+
console_warnings(Warnings) ->
_ = [?CONSOLE("~s", [Warning]) || Warning <- Warnings],
@@ -433,9 +426,6 @@ file_warnings(Output, Warnings) ->
throw({output_file_error, Output, Reason})
end.
-strip(Warning) ->
- string:strip(Warning, right, $\n).
-
no_warnings() ->
[no_return,
no_unused,