]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Disable the complexity check for setupLuaInspection() 13601/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2023 14:03:24 +0000 (16:03 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 12 Dec 2023 10:41:03 +0000 (11:41 +0100)
(cherry picked from commit cbf61a8c98e712529609fec795d9b0e3a8f16516)

pdns/dnsdist-lua-inspection.cc

index ec7790851c291528c7bbdee210be91e43dfd5d74..4fac0e3b99a2ca4beb3e6db1bb0e9b607bfee094 100644 (file)
@@ -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