From d52e1fcb60d0ba39507c691d2ffbeeaa25163a6e Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 25 Jul 2024 08:24:02 +0300 Subject: [PATCH] lua-recursor4: Mark postPrepareContext() with NOLINT(readability-function-cognitive-complexity) --- pdns/recursordist/lua-recursor4.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }); -- 2.47.2