From cbf61a8c98e712529609fec795d9b0e3a8f16516 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 19 Oct 2023 16:03:24 +0200 Subject: [PATCH] dnsdist: Disable the complexity check for setupLuaInspection() --- pdns/dnsdist-lua-inspection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-lua-inspection.cc b/pdns/dnsdist-lua-inspection.cc index 4185f03a2a..c177fb9913 100644 --- a/pdns/dnsdist-lua-inspection.cc +++ b/pdns/dnsdist-lua-inspection.cc @@ -252,7 +252,7 @@ static counts_t exceedRespByterate(unsigned int rate, int seconds) #endif /* DISABLE_DEPRECATED_DYNBLOCK */ #endif /* DISABLE_DYNBLOCKS */ - +// NOLINTNEXTLINE(readability-function-cognitive-complexity): this function declares Lua bindings, even with a good refactoring it will likely blow up the threshold void setupLuaInspection(LuaContext& luaCtx) { #ifndef DISABLE_TOP_N_BINDINGS -- 2.47.2