From: Aki Tuomi Date: Thu, 25 Jul 2024 05:24:02 +0000 (+0300) Subject: lua-recursor4: Mark postPrepareContext() with NOLINT(readability-function-cognitive... X-Git-Tag: rec-5.2.0-alpha1~149^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52e1fcb60d0ba39507c691d2ffbeeaa25163a6e;p=thirdparty%2Fpdns.git lua-recursor4: Mark postPrepareContext() with NOLINT(readability-function-cognitive-complexity) --- diff --git a/pdns/recursordist/lua-recursor4.cc b/pdns/recursordist/lua-recursor4.cc index af79b7e137..e1b9773a4d 100644 --- a/pdns/recursordist/lua-recursor4.cc +++ b/pdns/recursordist/lua-recursor4.cc @@ -158,7 +158,7 @@ struct DynMetric // clang-format off -void RecursorLua4::postPrepareContext() +void RecursorLua4::postPrepareContext() // NOLINT(readability-function-cognitive-complexity) { d_lw->registerMember("qname", [](const DNSQuestion& dnsQuestion) -> const DNSName& { return dnsQuestion.qname; }, [](DNSQuestion& /* dnsQuestion */, const DNSName& newName) { (void) newName; }); d_lw->registerMember("qtype", [](const DNSQuestion& dnsQuestion) -> uint16_t { return dnsQuestion.qtype; }, [](DNSQuestion& /* dnsQuestion */, uint16_t newType) { (void) newType; });