Skip to content

Commit 1da924b

Browse files
authored
Merge pull request #122 from paulo-ferraz-oliveira/fix/dialyzer-and-xref
Increase confidence in Dialyzer and Xref results
2 parents 3600345 + 4750e22 commit 1da924b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rebar.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{i, "include"}]}.
44
{minimum_otp_vsn, "24"}.
55
{deps, []}.
6-
{xref_checks, [undefined_function_calls,locals_not_used]}.
6+
{xref_checks, [deprecated_function_calls,undefined_function_calls,locals_not_used]}.
77
{profiles, [
88
{docs, [
99
{deps, [{edown, "0.9.1"}]},
@@ -28,7 +28,7 @@
2828
]}.
2929

3030
{provider_hooks, [{pre, [{eunit, lint}]}]}.
31-
{dialyzer, [{plt_extra_apps, [ssl]}]}.
31+
{dialyzer, [{plt_extra_apps, [ssl]}, {warnings, [unknown]}]}.
3232

3333
{cover_enabled, true}.
3434
{cover_export_enabled, true}.

src/elli_example_callback.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ chunk_loop(Ref, N) ->
297297
%% `file_error' is sent when the user wants to return a file as a
298298
%% response, but for some reason it cannot be opened.
299299
-spec handle_event(Event, Args, Config) -> ok when
300-
Event :: elli:event(),
300+
Event :: elli_handler:event(),
301301
Args :: elli_handler:callback_args(),
302302
Config :: [tuple()].
303303
handle_event(elli_startup, [], _) -> ok;

src/elli_middleware.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ handle_event(Event, Args, Config) ->
8686

8787
-spec do_init(Req, Callbacks) -> {ok, standard | handover} when
8888
Req :: elli:req(),
89-
Callbacks :: elli_handler:callbacks().
89+
Callbacks :: [elli_handler:callback()].
9090
do_init(_, []) ->
9191
{ok, standard};
9292
do_init(Req, [{Mod, Args}|Mods]) ->

0 commit comments

Comments
 (0)