From 9a975b724e51c0142f06ba9ca0cdb3490ab7aab4 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() (cherry picked from commit cbf61a8c98e712529609fec795d9b0e3a8f16516) --- 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 ec7790851c..4fac0e3b99 100644 --- a/pdns/dnsdist-lua-inspection.cc +++ b/pdns/dnsdist-lua-inspection.cc @@ -250,7 +250,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