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).