From b92a6837d7ce5b9430df7b32e57d8544b95a2de5 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Sat, 5 Jun 2021 21:36:10 +0200 Subject: [PATCH] build(emqx): fix emqx standalone dialyzer --- apps/emqx/rebar.config | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/emqx/rebar.config b/apps/emqx/rebar.config index 317f9af59..2c566d7f8 100644 --- a/apps/emqx/rebar.config +++ b/apps/emqx/rebar.config @@ -24,7 +24,6 @@ {plugins, [rebar3_proper]}. {extra_src_dirs, [{"etc", [recursive]}]}. - {profiles, [ {test, [{deps, @@ -36,3 +35,13 @@ {extra_src_dirs, [{"test",[recursive]}]} ]} ]}. + +{dialyzer, [ + {warnings, [unmatched_returns, error_handling, race_conditions]}, + {plt_location, "."}, + {plt_prefix, "emqx_dialyzer"}, + {plt_apps, all_apps}, + {plt_extra_apps, [hocon]}, + {statistics, true} + ] +}.