From c2e5dfae97e9f4848a1d0dfb7d3c2ff586c623d9 Mon Sep 17 00:00:00 2001 From: k32 <10274441+k32@users.noreply.github.com> Date: Wed, 19 Jan 2022 19:09:25 +0100 Subject: [PATCH] fix(bpapi): Ignore emqx_plugin_libs_rule:cluster_call/3 function --- apps/emqx/test/emqx_bpapi_static_checks.erl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/emqx/test/emqx_bpapi_static_checks.erl b/apps/emqx/test/emqx_bpapi_static_checks.erl index 180e6c9ab..2d514d5e5 100644 --- a/apps/emqx/test/emqx_bpapi_static_checks.erl +++ b/apps/emqx/test/emqx_bpapi_static_checks.erl @@ -49,13 +49,17 @@ %% List of known RPC backend modules: -define(RPC_MODULES, "gen_rpc, erpc, rpc, emqx_rpc"). %% List of known functions also known to do RPC: --define(RPC_FUNCTIONS, "emqx_cluster_rpc:multicall/3, emqx_cluster_rpc:multicall/5"). +-define(RPC_FUNCTIONS, "emqx_cluster_rpc:multicall/3, emqx_cluster_rpc:multicall/5, " + "emqx_plugin_libs_rule:cluster_call/3"). %% List of functions in the RPC backend modules that we can ignore: -define(IGNORED_RPC_CALLS, "gen_rpc:nodes/0, emqx_rpc:unwrap_erpc/1, rpc:pmap/3"). % TODO: handle pmap %% List of business-layer functions that are exempt from the checks: --define(EXEMPTIONS, "emqx_mgmt_api:do_query/6" % Reason: legacy code. A fun and a QC query are +-define(EXEMPTIONS, + "emqx_mgmt_api:do_query/6," % Reason: legacy code. A fun and a QC query are % passed in the args, it's futile to try to statically % check it + "emqx_plugin_libs_rule:cluster_call/3" % Reason: some sort of external plugin API that we + % don't want to break? ). -define(XREF, myxref).