Skip to content

Commit

Permalink
Merge pull request #122 from paulo-ferraz-oliveira/fix/dialyzer-and-xref
Browse files Browse the repository at this point in the history
Increase confidence in Dialyzer and Xref results
  • Loading branch information
tsloughter authored Jun 29, 2024
2 parents 3600345 + 4750e22 commit 1da924b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{i, "include"}]}.
{minimum_otp_vsn, "24"}.
{deps, []}.
{xref_checks, [undefined_function_calls,locals_not_used]}.
{xref_checks, [deprecated_function_calls,undefined_function_calls,locals_not_used]}.
{profiles, [
{docs, [
{deps, [{edown, "0.9.1"}]},
Expand All @@ -28,7 +28,7 @@
]}.

{provider_hooks, [{pre, [{eunit, lint}]}]}.
{dialyzer, [{plt_extra_apps, [ssl]}]}.
{dialyzer, [{plt_extra_apps, [ssl]}, {warnings, [unknown]}]}.

{cover_enabled, true}.
{cover_export_enabled, true}.
Expand Down
2 changes: 1 addition & 1 deletion src/elli_example_callback.erl
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ chunk_loop(Ref, N) ->
%% `file_error' is sent when the user wants to return a file as a
%% response, but for some reason it cannot be opened.
-spec handle_event(Event, Args, Config) -> ok when
Event :: elli:event(),
Event :: elli_handler:event(),
Args :: elli_handler:callback_args(),
Config :: [tuple()].
handle_event(elli_startup, [], _) -> ok;
Expand Down
2 changes: 1 addition & 1 deletion src/elli_middleware.erl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ handle_event(Event, Args, Config) ->

-spec do_init(Req, Callbacks) -> {ok, standard | handover} when
Req :: elli:req(),
Callbacks :: elli_handler:callbacks().
Callbacks :: [elli_handler:callback()].
do_init(_, []) ->
{ok, standard};
do_init(Req, [{Mod, Args}|Mods]) ->
Expand Down

0 comments on commit 1da924b

Please sign in to comment.