From: Remi Gacogne Date: Thu, 19 Oct 2023 14:03:24 +0000 (+0200) Subject: dnsdist: Disable the complexity check for setupLuaInspection() X-Git-Tag: dnsdist-1.8.3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a975b724e51c0142f06ba9ca0cdb3490ab7aab4;p=thirdparty%2Fpdns.git dnsdist: Disable the complexity check for setupLuaInspection() (cherry picked from commit cbf61a8c98e712529609fec795d9b0e3a8f16516) --- 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