]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Disable the complexity check for setupLuaInspection() 13342/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2023 14:03:24 +0000 (16:03 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2023 14:03:24 +0000 (16:03 +0200)
pdns/dnsdist-lua-inspection.cc

index 4185f03a2a7126a7316ba4aab7cad1c5011373c2..c177fb991339bbc7461244df393004ceef25a8b0 100644 (file)
@@ -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