]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
lua-recursor4: Mark postPrepareContext() with NOLINT(readability-function-cognitive...
authorAki Tuomi <cmouse@cmouse.fi>
Thu, 25 Jul 2024 05:24:02 +0000 (08:24 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Thu, 25 Jul 2024 05:24:15 +0000 (08:24 +0300)
pdns/recursordist/lua-recursor4.cc

index af79b7e1372ca75cb7d5a359bf8cc16a40cce130..e1b9773a4d24ffc8688cd8652bff0a8eb1e986f2 100644 (file)
@@ -158,7 +158,7 @@ struct DynMetric
 
 // clang-format off
 
-void RecursorLua4::postPrepareContext()
+void RecursorLua4::postPrepareContext() // NOLINT(readability-function-cognitive-complexity)
 {
   d_lw->registerMember<const DNSName (DNSQuestion::*)>("qname", [](const DNSQuestion& dnsQuestion) -> const DNSName& { return dnsQuestion.qname; }, [](DNSQuestion& /* dnsQuestion */, const DNSName& newName) { (void) newName; });
   d_lw->registerMember<uint16_t (DNSQuestion::*)>("qtype", [](const DNSQuestion& dnsQuestion) -> uint16_t { return dnsQuestion.qtype; }, [](DNSQuestion& /* dnsQuestion */, uint16_t newType) { (void) newType; });