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