{
DNSPacketWriter pw(packet, DNSName(q), DNSRecordContent::TypeToNumber(t), qclass, opcode);
- if (dnssec || ednsnm || getenv("SDIGBUFSIZE") || cookie) {
- char* sbuf = getenv("SDIGBUFSIZE");
+ if (dnssec || ednsnm || getenv("SDIGBUFSIZE") != nullptr || cookie) { // NOLINT(concurrency-mt-unsafe) we'resingle threaded
+ char* sbuf = getenv("SDIGBUFSIZE"); // NOLINT(concurrency-mt-unsafe) we'resingle threaded
int bufsize;
if (sbuf)
bufsize = atoi(sbuf);
}
}
-int main(int argc, char** argv)
+int main(int argc, char** argv) // NOLINT(readability-function-cognitive-complexity) XXX FIXME
try {
/* default timeout of 10s */
struct timeval timeout{10,0};
bool dumpluaraw = false;
std::optional<string> cookie;
+ // NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic, concurrency-mt-unsafe) it's the argv API and w're single-threaded
for (int i = 1; i < argc; i++) {
if ((string)argv[i] == "--help") {
usage();
}
}
}
+ // NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic, concurrency-mt-unsafe)
if (dot) {
tcp = true;