Skip to content

Commit

Permalink
Silence a dilayzer warning because of wrong erlfmt spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gomoripeti committed Jan 16, 2024
1 parent 5f0d2a4 commit d2f9a11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/els_lsp/src/els_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
-dialyzer([{nowarn_function, parse_text/1}]).
-dialyzer([{nowarn_function, fix_erlfmt/1}]).

%% Spec of erlfmt_parse:parse_node/1 is wrong,
%% error location can be returned in various formats
%% see https://github.com/WhatsApp/erlfmt/pull/352

-dialyzer([{nowarn_function, loc_to_pos/1}]).

%%==============================================================================
%% API
%%==============================================================================
Expand Down

0 comments on commit d2f9a11

Please sign in to comment.