diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2017-01-21 09:53:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-21 09:53:15 -0800 |
commit | 6a1cfaf9483e93b5410a21e4967d53f0ecf4b3c0 (patch) | |
tree | 49a1515f9e74f506d973fd16aab40eb1a916ea62 /src/rebar_prv_dialyzer.erl | |
parent | e3f08361b66df8f7a4b33402a62ce739c791b422 (diff) | |
parent | f16fdd35be2d0d6acb0a4b3448b12d7796751b80 (diff) |
Merge pull request #1450 from ferd/relative-dialyzer-paths
Relative dialyzer paths
Diffstat (limited to 'src/rebar_prv_dialyzer.erl')
-rw-r--r-- | src/rebar_prv_dialyzer.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl index 44dc0d2..21d7f5a 100644 --- a/src/rebar_prv_dialyzer.erl +++ b/src/rebar_prv_dialyzer.erl @@ -478,7 +478,8 @@ run_dialyzer(State, Opts, Output) -> {check_plt, false} | Opts], ?DEBUG("Running dialyzer with options: ~p~n", [Opts2]), - Warnings = format_warnings(Output, dialyzer:run(Opts2)), + Warnings = format_warnings(rebar_state:opts(State), + Output, dialyzer:run(Opts2)), {Warnings, State}; false -> Opts2 = [{warnings, no_warnings()}, @@ -497,8 +498,8 @@ legacy_warnings(Warnings) -> Warnings end. -format_warnings(Output, Warnings) -> - Warnings1 = rebar_dialyzer_format:format_warnings(Warnings), +format_warnings(Opts, Output, Warnings) -> + Warnings1 = rebar_dialyzer_format:format_warnings(Opts, Warnings), console_warnings(Warnings1), file_warnings(Output, Warnings), length(Warnings). |