Skip to content

Commit

Permalink
[#22] Fix Dialyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoaloi committed Jul 17, 2019
1 parent 3965034 commit c44f08d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/erlang_ls_indexer.erl
Expand Up @@ -44,6 +44,17 @@
%%==============================================================================
-type state() :: #state{}.

%%==============================================================================
%% Dialyzer Exceptions
%%==============================================================================
%% The specs for the epp_dodger API are slightly incorrect.
%% A bug has been reported (see https://bugs.erlang.org/browse/ERL-1005)
%% Meanwhile, let's skip checking this module.
-dialyzer(no_contracts).
-dialyzer(no_return).
-dialyzer(no_unused).
-dialyzer(no_fail_call).

%%%=============================================================================
%%% API
%%%=============================================================================
Expand Down Expand Up @@ -90,7 +101,7 @@ do_index(Uri, Text) ->
ok = file:close(IoDevice),
ok.

-spec index_form(erl_syntax:syntax_tree(), uri()) -> erl_syntax:syntax_tree().
-spec index_form(erl_syntax:syntaxTree(), uri()) -> erl_syntax:syntaxTree().
index_form(Form, Uri) ->
Pos = erl_syntax:get_pos(Form),
try erl_syntax_lib:analyze_form(Form) of
Expand Down

0 comments on commit c44f08d

Please sign in to comment.