Skip to content

Commit fa2251b

Browse files
robertoaloifacebook-github-bot
authored andcommitted
Add no_dialyzer_attribute linter
Summary: [Dialyzer](https://www.erlang.org/doc/apps/dialyzer/dialyzer_chapter.html#introduction) is a static analysis tool that identifies software discrepancies, such as definite type errors, code that is unreachable because of programming error, and unnecessary tests in single Erlang modules or an entire codebase. The tool provides [a mechanism](https://www.erlang.org/doc/apps/dialyzer/dialyzer.html#module-requesting-or-suppressing-warnings-in-source-files) for turning off warnings in a module via the `-dialyzer` attribute. This approach is not recommended, as it can lead to errors being missed. Instead, it is recommended to fix the errors instead of suppressing them. Reviewed By: alanz Differential Revision: D74791045 fbshipit-source-id: d7113f456222dfb6e5be281826defef2976c3293
1 parent 84f602d commit fa2251b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wa_raft_snapshot_catchup.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
-include_lib("kernel/include/logger.hrl").
1414
-include("wa_raft.hrl").
1515

16-
% erlint-ignore dialyzer_override: improper list expected by gen interface
16+
% elp:ignore W0048 (no_dialyzer_attribute): improper list expected by gen interface
1717
-dialyzer({no_improper_lists, [handle_cast/2]}).
1818

1919
%% Supervisor callbacks

0 commit comments

Comments
 (0)