AI Slop Code RIsk Monitor

PowerDNS/pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist

9.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PowerDNS/pdns, a C++ project with 4,494 GitHub stars. SynthScan examined 224,416 lines of code across 664 source files, recording 938 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 9.8 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

9.8
Adjusted Signal
9.8
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
4.5K
Stars
C++
Language
224.4K
Lines of Code
664
Files
938
Pattern Hits
2026-10-12
Scan Date
0.40
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 9.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 471 finding(s).

Hallucinated Dependency & Supply Chain Risk 20.6/100 · LOW

Are imports declared and package/API names verified? 224 finding(s).

Agent Over-Engineering Ratio 18.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 487 finding(s).

PR Review Velocity Impact 42.4/100 · MEDIUM

Which changes need focused human review? 938 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 13HIGH 254MEDIUM 77LOW 594

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 938 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-Language Confusion144 hits · 860 pts
SeverityFileLineSnippetContext
HIGH⚡tasks.py1216 c.run(f". {repo_home}/.venv/bin/activate && meson compile -C {build_dir} -j{get_build_concurrency(4)} --verbose")CODE
HIGH⚡tasks.py1221 c.run(f". {repo_home}/.venv/bin/activate && meson compile -C {build_dir} -j{get_build_concurrency(4)} --verbose")CODE
HIGH⚡tasks.py1668RUN apt update && apt install -y curl libluajit-5.1-dev adduserCODE
HIGH⚡tasks.py1669RUN install -d /etc/apt/keyrings && curl -L {gpgkey_url} -o /etc/apt/keyrings/{product_name}-pub.ascCODE
HIGH⚡tasks.py1672RUN apt-get update && apt-get install -y {package_name}={package_version}*CODE
HIGHtasks.py279 c.run("make && sudo make install")CODE
HIGHtasks.py905 c.run(f". {repo_home}/.venv/bin/activate && meson setup {dist_dir} && meson dist -C {dist_dir} --no-tests")CODE
HIGHtasks.py1093 c.run(f". {repo_home}/.venv/bin/activate && meson setup {dist_dir} && meson dist -C {dist_dir} --no-tests")CODE
HIGHtasks.py1261 res = c.run(f". {repo_home}/.venv/bin/activate && meson test --verbose -t {suite_timeout_sec}", warn=True)CODE
HIGHtasks.py1282 c.sudo(f"bash -c 'source {repo_home}/.venv/bin/activate && meson install'")CODE
HIGHtasks.py1287 c.sudo(f"bash -c 'source {repo_home}/.venv/bin/activate && meson install'")CODE
HIGHtasks.py1555 c.run("sudo apt-get update && sudo apt-get install -y npm")STRING
HIGHtasks.py1556 c.run("sudo mkdir -p /usr/local/lib/node_modules && sudo chmod 777 /usr/local/lib/node_modules")STRING
HIGHregression-tests.dnsdist/test_RulesActions.py269 Advanced: !A && UDP canaryCODE
HIGHregression-tests.dnsdist/test_RulesActions.py293 Advanced: !A && UDPCODE
HIGHregression-tests.dnsdist/test_RulesActions.py331 Advanced: A || UDP: AAAACODE
HIGHregression-tests.dnsdist/test_RulesActions.py360 Advanced: A || UDP: ACODE
HIGH⚡regression-tests.dnsdist/test_RulesActions.py1530 return falseCODE
HIGH⚡regression-tests.dnsdist/test_RulesActions.py1535 return falseCODE
HIGH⚡regression-tests.dnsdist/test_RulesActions.py1538 return trueCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py34 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py41 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py47 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py53 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py56 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py62 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py69 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py75 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py81 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py88 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py95 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py102 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py111 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py114 return trueCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py219 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py226 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py232 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py238 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py241 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py247 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py253 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py259 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py266 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py273 return falseCODE
HIGH⚡regression-tests.dnsdist/test_LuaFFI.py276 return trueCODE
HIGHregression-tests.dnsdist/test_LuaFFI.py17 return falseCODE
HIGHregression-tests.dnsdist/test_LuaFFI.py23 return falseCODE
HIGHregression-tests.dnsdist/test_LuaFFI.py202 return falseCODE
HIGHregression-tests.dnsdist/test_LuaFFI.py208 return falseCODE
HIGHregression-tests.dnsdist/test_DynBlocksGroup.py496 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py264 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py270 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py274 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py279 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py284 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py290 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py294 return falseCODE
HIGH⚡regression-tests.dnsdist/test_HealthChecks.py296 return trueCODE
HIGHregression-tests.dnsdist/test_Yaml.py123 return trueCODE
HIGHregression-tests.dnsdist/test_Yaml.py125 return falseCODE
84 more matches not shown…
Cross-File Repetition61 hits · 305 pts
SeverityFileLineSnippetContext
HIGHregression-tests.auth-py/test_GSSTSIG.py0module-dir={pdns_module_dir} daemon=no socket-dir={confdir} cache-ttl=0 negquery-cache-ttl=0 query-cache-ttl=0 log-dns-qSTRING
HIGHregression-tests.auth-py/authtests.py0module-dir={pdns_module_dir} daemon=no socket-dir={confdir} cache-ttl=0 negquery-cache-ttl=0 query-cache-ttl=0 log-dns-qSTRING
HIGHregression-tests.auth-py/test_AuthSignal.py0module-dir={pdns_module_dir} daemon=no socket-dir={confdir} cache-ttl=0 negquery-cache-ttl=0 query-cache-ttl=0 log-dns-qSTRING
HIGHregression-tests.auth-py/test_SoaEdit.py0private-key-format: v1.2 algorithm: 13 (ecdsap256sha256) privatekey: lt0v0gol3prufm7fddcy0iwn0o/mnemvpa+vyll8y4u=STRING
HIGHregression-tests.auth-py/authtests.py0private-key-format: v1.2 algorithm: 13 (ecdsap256sha256) privatekey: lt0v0gol3prufm7fddcy0iwn0o/mnemvpa+vyll8y4u=STRING
HIGHregression-tests.recursor-dnssec/recursortests.py0private-key-format: v1.2 algorithm: 13 (ecdsap256sha256) privatekey: lt0v0gol3prufm7fddcy0iwn0o/mnemvpa+vyll8y4u=STRING
HIGHregression-tests.auth-py/cookiesoption.py0create edns packet as defined in draft-ietf-dnsop-cookies-09.STRING
HIGHregression-tests.dnsdist/cookiesoption.py0create edns packet as defined in draft-ietf-dnsop-cookies-09.STRING
HIGHregression-tests.recursor-dnssec/cookiesoption.py0create edns packet as defined in draft-ietf-dnsop-cookies-09.STRING
HIGHregression-tests.auth-py/cookiesoption.py0read edns packet as defined in draft-ietf-dnsop-cookies-09. returns: an instance of cookiesoption based on the edns packSTRING
HIGHregression-tests.dnsdist/cookiesoption.py0read edns packet as defined in draft-ietf-dnsop-cookies-09. returns: an instance of cookiesoption based on the edns packSTRING
HIGHregression-tests.recursor-dnssec/cookiesoption.py0read edns packet as defined in draft-ietf-dnsop-cookies-09. returns: an instance of cookiesoption based on the edns packSTRING
HIGHregression-tests.auth-py/test_Protobuf.py0$origin example. @ 3600 in soa {soa} a 3600 in a 192.0.2.42 aaaa 3600 in aaaa 2001:db8::2 tagged 3600 in a 192.0.2.84 taSTRING
HIGHregression-tests.recursor-dnssec/test_Protobuf.py0$origin example. @ 3600 in soa {soa} a 3600 in a 192.0.2.42 aaaa 3600 in aaaa 2001:db8::2 tagged 3600 in a 192.0.2.84 taSTRING
HIGH…ression-tests.recursor-dnssec/test_ProtobufStrategy.py0$origin example. @ 3600 in soa {soa} a 3600 in a 192.0.2.42 aaaa 3600 in aaaa 2001:db8::2 tagged 3600 in a 192.0.2.84 taSTRING
HIGHregression-tests.recursor-dnssec/test_RecDnstap.py0$origin example. @ 3600 in soa {soa} a 3600 in a 192.0.2.42 aaaa 3600 in aaaa 2001:db8::2 tagged 3600 in a 192.0.2.84 taSTRING
HIGHregression-tests.auth-py/test_Protobuf.py0this test makes sure that we correctly export queries and response over protobuf.STRING
HIGHregression-tests.recursor-dnssec/test_Protobuf.py0this test makes sure that we correctly export queries and response over protobuf.STRING
HIGH…ression-tests.recursor-dnssec/test_ProtobufStrategy.py0this test makes sure that we correctly export queries and response over protobuf.STRING
HIGHregression-tests.auth-py/clientsubnetoption.py0class to implement draft-ietf-dnsop-edns-client-subnet (previously known as draft-vandergaast-edns-client-subnet. the coSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0class to implement draft-ietf-dnsop-edns-client-subnet (previously known as draft-vandergaast-edns-client-subnet. the coSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0class to implement draft-ietf-dnsop-edns-client-subnet (previously known as draft-vandergaast-edns-client-subnet. the coSTRING
HIGHregression-tests.auth-py/clientsubnetoption.py0implementation of draft-vandergaast-edns-client-subnet-01. attributes: family: an integer indicating which address familSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0implementation of draft-vandergaast-edns-client-subnet-01. attributes: family: an integer indicating which address familSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0implementation of draft-vandergaast-edns-client-subnet-01. attributes: family: an integer indicating which address familSTRING
HIGHregression-tests.auth-py/clientsubnetoption.py0calculates the relevant ip address based on the network mask. calculates the relevant bits of the ip address based on neSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0calculates the relevant ip address based on the network mask. calculates the relevant bits of the ip address based on neSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0calculates the relevant ip address based on the network mask. calculates the relevant bits of the ip address based on neSTRING
HIGHregression-tests.auth-py/clientsubnetoption.py0" determines whether this instance is using the draft option codeSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0" determines whether this instance is using the draft option codeSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0" determines whether this instance is using the draft option codeSTRING
HIGHregression-tests.auth-py/clientsubnetoption.py0create edns packet as defined in draft-vandergaast-edns-client-subnet-01.STRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0create edns packet as defined in draft-vandergaast-edns-client-subnet-01.STRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0create edns packet as defined in draft-vandergaast-edns-client-subnet-01.STRING
HIGHregression-tests.auth-py/clientsubnetoption.py0read edns packet as defined in draft-vandergaast-edns-client-subnet-01. returns: an instance of clientsubnetoption basedSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0read edns packet as defined in draft-vandergaast-edns-client-subnet-01. returns: an instance of clientsubnetoption basedSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0read edns packet as defined in draft-vandergaast-edns-client-subnet-01. returns: an instance of clientsubnetoption basedSTRING
HIGHregression-tests.auth-py/clientsubnetoption.py0rich comparison method for equality. two clientsubnetoptions are equal if their relevant ip bits, mask, and family are iSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0rich comparison method for equality. two clientsubnetoptions are equal if their relevant ip bits, mask, and family are iSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0rich comparison method for equality. two clientsubnetoptions are equal if their relevant ip bits, mask, and family are iSTRING
HIGHregression-tests.auth-py/clientsubnetoption.py0rich comparison method for inequality. see notes for __eq__() returns: booleanSTRING
HIGHregression-tests.dnsdist/clientsubnetoption.py0rich comparison method for inequality. see notes for __eq__() returns: booleanSTRING
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py0rich comparison method for inequality. see notes for __eq__() returns: booleanSTRING
HIGHregression-tests.dnsdist/paddingoption.py0read edns packet as defined in rfc7830. returns: an instance of paddingoption based on the edns packetSTRING
HIGHregression-tests.common/paddingoption.py0read edns packet as defined in rfc7830. returns: an instance of paddingoption based on the edns packetSTRING
HIGHregression-tests.recursor-dnssec/paddingoption.py0read edns packet as defined in rfc7830. returns: an instance of paddingoption based on the edns packetSTRING
HIGHpdns/recursordist/docs/depfile.py0depfile is a sphinx extension that writes a dependency file for an external build systemSTRING
HIGHpdns/dnsdistdist/docs/depfile.py0depfile is a sphinx extension that writes a dependency file for an external build systemSTRING
HIGHdocs/depfile.py0depfile is a sphinx extension that writes a dependency file for an external build systemSTRING
HIGHregression-tests.recursor-dnssec/test_Simple.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_SimpleCookies.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_NamedInterface.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_ProxyByTable.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_SimpleYAML.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_AnyBind.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_KeepOpenTCP.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHregression-tests.recursor-dnssec/test_SimpleTCP.py0$origin authzone.example. @ 3600 in soa {soa} @ 3600 in a 192.0.2.88STRING
HIGHmodules/remotebackend/unittest_post.py0finish one request by instantiating requesthandlerclass.STRING
HIGHmodules/remotebackend/unittest_http.py0finish one request by instantiating requesthandlerclass.STRING
HIGHmodules/remotebackend/unittest_json.py0finish one request by instantiating requesthandlerclass.STRING
1 more matches not shown…
Empty Error Handlers49 hits · 245 pts
SeverityFileLineSnippetContext
HIGHregression-tests.auth-py/clientsubnetoption.py86except Exception:CODE
HIGHregression-tests.auth-py/test_ProxyProtocol.py132except Exception:CODE
HIGHregression-tests.auth-py/test_acl.py68except requests.exceptions.ConnectionError:CODE
HIGHregression-tests.auth-py/test_acl.py85except requests.exceptions.ConnectionError:CODE
HIGHregression-tests.dnsdist/test_TCPLimits.py11except NameError:CODE
HIGHregression-tests.dnsdist/test_TCPLimits.py98except Exception:CODE
HIGHregression-tests.dnsdist/test_Async.py19except FileNotFoundError:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py7except NameError:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py68except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py103except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py133except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py157except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py181except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py204except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py240except Exception:CODE
HIGHregression-tests.dnsdist/test_TCPKeepAlive.py299except Exception:CODE
HIGHregression-tests.dnsdist/test_Dnstap.py618except OSError:CODE
HIGHregression-tests.dnsdist/test_Dnstap.py736except OSError:CODE
HIGHregression-tests.dnsdist/test_TLSSessionResumption.py16except NameError:CODE
HIGHregression-tests.dnsdist/test_HealthChecks.py612except queue.Empty:CODE
HIGHregression-tests.dnsdist/test_HealthChecks.py679except queue.Empty:CODE
HIGHregression-tests.dnsdist/test_HealthChecks.py732except queue.Empty:CODE
HIGHregression-tests.dnsdist/test_HealthChecks.py750except queue.Empty:CODE
HIGHregression-tests.dnsdist/test_TCPShort.py10except NameError:CODE
HIGHregression-tests.dnsdist/test_DOH.py417except Exception:CODE
HIGHregression-tests.dnsdist/test_DOH.py556except pycurl.error:CODE
HIGHregression-tests.dnsdist/test_DOH.py586except pycurl.error:CODE
HIGHregression-tests.dnsdist/dnsdisttests.py46except NameError:CODE
HIGHregression-tests.dnsdist/dnsdisttests.py204except OSError:CODE
HIGHregression-tests.dnsdist/test_EBPF.py164except TimeoutError:CODE
HIGHregression-tests.dnsdist/test_EBPF.py166except pycurl.error:CODE
HIGHregression-tests.dnsdist/clientsubnetoption.py86except Exception:CODE
HIGHregression-tests.dnsdist/test_API.py964except requests.exceptions.ConnectionError as exp:CODE
HIGHpdns/keyroller/pdnsapi/api.py103except ValueError:CODE
HIGHpdns/recursordist/make-ext-symlinks.py10except OSError:CODE
HIGHpdns/recursordist/make-ext-symlinks.py15except OSError:CODE
HIGHpdns/recursordist/rec-rust-lib/generate.py867except FileNotFoundError:CODE
HIGHcontrib/xdp.py215except KeyboardInterrupt:CODE
HIGHregression-tests.recursor-dnssec/test_RecDnstap.py206except Exception:CODE
HIGHregression-tests.recursor-dnssec/clientsubnetoption.py86except Exception:CODE
HIGHregression-tests.recursor-dnssec/test_API.py55except requests.exceptions.ConnectionError as exp:CODE
HIGHregression-tests.recursor-dnssec/test_ProxyProtocol.py11except NameError:CODE
HIGHregression-tests.recursor-dnssec/test_RPZ.py692except FileNotFoundError as e:CODE
HIGHmodules/remotebackend/unittest_post.py68except KeyboardInterrupt:CODE
HIGHmodules/remotebackend/unittest_zeromq.py40except KeyboardInterrupt as e:CODE
HIGHmodules/remotebackend/unittest_http.py196except KeyboardInterrupt:CODE
HIGHmodules/remotebackend/unittest_json.py66except KeyboardInterrupt:CODE
HIGH…dules/remotebackend/regression-tests/zeromq-backend.py40except KeyboardInterrupt as e:CODE
HIGHmodules/remotebackend/regression-tests/http-backend.py24except KeyboardInterrupt:CODE
Hyper-Verbose Identifiers231 hits · 181 pts
SeverityFileLineSnippetContext
LOW⚡tasks.py1225def ci_auth_install_remotebackend_test_deps(c):CODE
LOWtasks.py174def install_lld_linker_if_needed(c):CODE
LOWtasks.py274def build_and_install_libfaketime(c):CODE
LOWtasks.py305def install_auth_test_deps_only(c, backend):CODE
LOWtasks.py344def install_rec_bulk_ubicloud_deps(c): # FIXME: rename this, we do way more than apt-getCODE
LOWtasks.py375def install_dnsdist_test_deps(c, skipXDP=False): # FIXME: rename this, we do way more than apt-getCODE
LOWtasks.py417def install_dnsdist_build_deps(c, skipXDP=False):CODE
LOWtasks.py606def get_base_configure_cmd_meson(CODE
LOWtasks.py627def ci_auth_configure_autotools(c):CODE
LOWtasks.py1066def ci_dnsdist_configure_meson(c, features, additional_flags, additional_ld_flags, build_dir, benchmark, skipDist):CODE
LOWtasks.py1125def dev_dnsdist_configure_meson(CODE
LOWtasks.py1258def ci_dnsdist_run_unit_tests(c):CODE
LOWtasks.py1611def ci_build_and_install_quiche(c, repo):STRING
LOWregression-tests.auth-py/test_ResolveAcrossZones.py77 def impl_cname_and_target_test(self, qname, target, target_ip):STRING
LOWregression-tests.dnsdist/test_OTLP.py15class OTLPRequestHandler(http.server.BaseHTTPRequestHandler):CODE
LOWregression-tests.dnsdist/test_Advanced.py300 function answerBasedOnLocalAddress(dq)CODE
LOWregression-tests.dnsdist/test_Async.py548 function passResponseToAsyncFilter(dr)CODE
LOWregression-tests.dnsdist/test_Async.py683 function passResponseToAsyncFilter(dr)CODE
LOWregression-tests.dnsdist/test_Dnstap.py529def fstrm_get_control_frame_type(data):STRING
LOWregression-tests.dnsdist/test_Dnstap.py534def fstrm_make_control_frame_reply(cft, data):STRING
LOWregression-tests.dnsdist/test_Dnstap.py547def fstrm_read_and_dispatch_control_frame(conn):STRING
LOWregression-tests.dnsdist/test_Dnstap.py560def fstrm_handle_bidir_connection(conn, on_data, exit_early=False):STRING
LOW⚡regression-tests.dnsdist/test_HealthChecks.py260 function myHealthCheckValidationFunction(dr)CODE
LOWregression-tests.dnsdist/test_EdnsClientSubnet.py787 function overrideECSPrefixLengthViaLua(dq)CODE
LOWregression-tests.dnsdist/test_EDNSOptions.py68 function testEDNSOptionsInResponses(dr)CODE
LOWregression-tests.dnsdist/test_DOQ.py272 function answerBasedOnLocalAddress(dq)CODE
LOWregression-tests.dnsdist/test_ProxyProtocol.py573 function answerBasedOnForwardedDest(dq)CODE
LOWregression-tests.dnsdist/test_ProxyProtocol.py580 function answerBasedOnForwardedSrc(dq)CODE
LOWregression-tests.dnsdist/test_DOH3.py405 function answerBasedOnLocalAddress(dq)CODE
LOWpdns/keyroller/pdns-keyroller-ctl.py15def display_keyrollerdomain_infos(zone, api):CODE
LOWpdns/recursordist/html/js/moment.js537 function replaceLongDateFormatTokens(input) {CODE
LOWpdns/recursordist/html/js/moment.js2811 function configFromStringAndFormat(config) {CODE
LOWpdns/recursordist/html/js/moment.js3484 function isDaylightSavingTimeShifted() {CODE
LOWpdns/recursordist/html/js/moment.js3610 function positiveMomentsDifference(base, other) {CODE
LOWpdns/recursordist/html/js/moment.js5454 function getSetRelativeTimeRounding(roundingFunction) {CODE
LOWpdns/recursordist/html/js/moment.js5466 function getSetRelativeTimeThreshold(threshold, limit) {CODE
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js27(function webpackUniversalModuleDefinition(root, factory) {CODE
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js362 resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {CODE
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js1939 function registerDefaultDecorators(instance) {CODE
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js2094 function logUnexpecedPropertyAccessOnce(propertyName) {CODE
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js2532 function wrapHelpersToPassLookupProperty(mergedHelpers, container) {CODE
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js4961 lookupPropertyFunctionVarDeclaration: function lookupPropertyFunctionVarDeclaration() {CODE
LOWpdns/recursordist/rec-rust-lib/generate.py305def gen_cxx_defineoldsettings(file, entries):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py328def gen_cxx_oldstylesettingstobridgestruct(file, entries):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py364def gen_cxx_oldkvtobridgestruct(file, entries):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py419def gen_cxx_brigestructtoldstylesettings(file, entries):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py464def gen_rust_vec_default_functions(name, typeName, defvalue):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py490def gen_rust_stringvec_default_functions(entry, name):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py512def gen_rust_default_functions(entry, name, rust_type):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py585def write_rust_default_trait_impl(file, section):CODE
LOWpdns/recursordist/rec-rust-lib/generate.py620def write_rust_merge_trait_impl(file, section, entries):CODE
LOW…nsdistdist/dnsdist-settings-documentation-generator.py31def get_definitions_from_file(def_file):CODE
LOW…nsdistdist/dnsdist-settings-documentation-generator.py154def get_temporary_file_for_generated_content(directory):CODE
LOW…nsdistdist/dnsdist-settings-documentation-generator.py202def process_selectors_or_actions(def_file, entry_type):STRING
LOWpdns/dnsdistdist/dnsdist-rules-generator.py42def get_definitions_from_file(def_file):CODE
LOWpdns/dnsdistdist/dnsdist-rules-generator.py99def get_cpp_parameters_definition(parameters, lua_interface):CODE
LOWpdns/dnsdistdist/dnsdist-rules-generator.py153def get_temporary_file_for_generated_code(dest_dir):CODE
LOWpdns/dnsdistdist/dnsdist-rules-generator.py164def generate_actions_factory_header(definitions, build_dir, response=False):CODE
LOWpdns/dnsdistdist/dnsdist-rules-generator.py212def generate_lua_actions_bindings(definitions, build_dir, response=False):CODE
LOWpdns/dnsdistdist/dnsdist-rules-generator.py239def generate_selectors_factory_header(definitions, build_dir):CODE
171 more matches not shown…
Excessive Try-Catch Wrapping128 hits · 152 pts
SeverityFileLineSnippetContext
MEDIUMregression-tests.auth-py/test_XFRIncomplete.py155 print("Error binding in the IXFR listener: %s" % str(e))CODE
MEDIUMregression-tests.auth-py/test_XFRIncomplete.py168 print("Error in IXFR socket: %s" % str(e))CODE
LOWregression-tests.auth-py/authtests.py272 except Exception as err:CODE
MEDIUMregression-tests.auth-py/authtests.py274 print(f"Error occurred: {try_number} {err}", file=sys.stderr)CODE
MEDIUMregression-tests.auth-py/test_Protobuf.py40 print("Error binding in the protobuf listener: %s" % str(e))CODE
MEDIUMregression-tests.auth-py/test_Protobuf.py52 print("Error in protobuf socket: %s" % str(e))CODE
LOWregression-tests.auth-py/clientsubnetoption.py86 except Exception:CODE
LOWregression-tests.auth-py/test_ProxyProtocol.py132 except Exception:STRING
MEDIUMregression-tests.auth-py/test_ProxyProtocol.py129def generateAuthZone(cls, confdir, zonename, zonecontent):CODE
MEDIUMregression-tests.auth-py/test_Carbon.py44 print("Error binding in the Carbon responder: %s" % str(e))STRING
MEDIUMregression-tests.dnsdist/test_OOOR.py39 print("Error in the thread handling reverse OOOR connections: %s" % (err))CODE
MEDIUMregression-tests.dnsdist/test_OOOR.py52 print("Error binding in the TCP responder: %s" % str(e))CODE
MEDIUMregression-tests.dnsdist/test_OOOR.py111 print("Error in the thread handling reverse OOOR connections: %s" % (err))CODE
MEDIUMregression-tests.dnsdist/test_OOOR.py124 print("Error binding in the TCP responder: %s" % str(e))CODE
LOWregression-tests.dnsdist/test_TCPLimits.py98 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py111 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py139 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py174 except Exception as e:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py227 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py236 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py249 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPLimits.py490 except Exception:STRING
LOWregression-tests.dnsdist/test_OpenSSLErrorQueue.py34 except Exception:STRING
LOWregression-tests.dnsdist/test_OpenSSLErrorQueue.py72 except Exception as e:STRING
MEDIUMregression-tests.dnsdist/test_Async.py26 print("Error binding in the Asynchronous responder: %s" % str(e))CODE
LOWregression-tests.dnsdist/test_TCPKeepAlive.py68 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py103 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py133 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py157 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py181 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py204 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py240 except Exception:STRING
LOWregression-tests.dnsdist/test_TCPKeepAlive.py299 except Exception:STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py370def handle_connection(conn):CODE
MEDIUMregression-tests.dnsdist/test_Dnstap.py747def handle_connection(conn):CODE
MEDIUMregression-tests.dnsdist/test_Dnstap.py1007def handle_connection(conn):CODE
MEDIUM⚡regression-tests.dnsdist/test_Dnstap.py742 print("Error binding in the framestream listener: %s" % str(e))STRING
MEDIUM⚡regression-tests.dnsdist/test_Dnstap.py753 print(f"Error in handle_connection (FrameStream): {e}")STRING
MEDIUM⚡regression-tests.dnsdist/test_Dnstap.py1002 print("Error binding in the framestream listener: %s" % str(e))STRING
MEDIUM⚡regression-tests.dnsdist/test_Dnstap.py1013 print(f"Error in handle_connection (FrameStream): {e}")STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py166 print("Error binding in the protbuf listener: %s" % str(e))STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py365 print("Error binding in the protbuf listener: %s" % str(e))STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py384 print(f"Error in handle_connection (RemoteLogger): {e}")STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py624 print("Error binding in the framestream listener: %s" % str(e))STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py833 print("Error binding in the framestream listener: %s" % str(e))STRING
MEDIUMregression-tests.dnsdist/test_Dnstap.py927 print("Error binding in the framestream listener: %s" % str(e))STRING
LOW⚡regression-tests.dnsdist/test_Dnstap.py752 except Exception as e:STRING
LOW⚡regression-tests.dnsdist/test_Dnstap.py1012 except Exception as e:STRING
LOWregression-tests.dnsdist/test_Dnstap.py383 except Exception as e:STRING
LOWregression-tests.dnsdist/test_BindFatal.py28 except Exception:CODE
MEDIUMregression-tests.dnsdist/proxyprotocolutils.py17 print("Error binding in the Proxy Protocol UDP responder: %s" % str(e))CODE
MEDIUMregression-tests.dnsdist/proxyprotocolutils.py66 print("Error binding in the TCP responder: %s" % str(e))CODE
LOWregression-tests.dnsdist/test_DOH.py417 except Exception:STRING
LOWregression-tests.dnsdist/test_DOH.py1951 except Exception:STRING
LOWregression-tests.dnsdist/test_DOH.py1968 except Exception:STRING
LOWregression-tests.dnsdist/test_DOH.py2161 except Exception:STRING
LOWregression-tests.dnsdist/dnsdisttests.py143 except Exception as err:STRING
MEDIUMregression-tests.dnsdist/dnsdisttests.py145 print(f"Error occurred: {try_number} {err}", file=sys.stderr)STRING
LOWregression-tests.dnsdist/dnsdisttests.py458 except Exception as err:STRING
MEDIUMregression-tests.dnsdist/dnsdisttests.py460 print(f"Error while reading query size in TCP responder thread {err=}, {type(err)=}")STRING
68 more matches not shown…
Over-Commented Block122 hits · 121 pts
SeverityFileLineSnippetContext
LOWregression-tests.auth-py/clientsubnetoption.py1#!/usr/bin/env pythonCOMMENT
LOWregression-tests.dnsdist/clientsubnetoption.py1#!/usr/bin/env pythonCOMMENT
LOWregression-tests.dnsdist/test_ProxyProtocol.py501 # - no more than number_of_queries connections to the backend were openedCOMMENT
LOWext/ipcrypt2/ipcrypt2.c41# include <ws2tcpip.h>COMMENT
LOWext/ipcrypt2/ipcrypt2.c61 defined(__DragonFly__)) || \COMMENT
LOWext/ipcrypt2/ipcrypt2.c201# ifdef __clang__COMMENT
LOWext/ipcrypt2/ipcrypt2.c221# include <smmintrin.h>COMMENT
LOWext/ipcrypt2/ipcrypt2.c1501COMMENT
LOWext/ipcrypt2/include/ipcrypt2.h1#ifndef ipcrypt2_HCOMMENT
LOWext/protozero/include/protozero/pbf_reader.hpp21#include "exception.hpp"COMMENT
LOWext/protozero/include/protozero/config.hpp21#if __has_include(<endian.h>)COMMENT
LOWext/protozero/include/protozero/config.hpp41# if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)COMMENT
LOWext/protozero/include/protozero/config.hpp61// Wrapper for assert() used for testingCOMMENT
LOWext/protozero/include/protozero/version.hpp21COMMENT
LOWext/protozero/include/protozero/basic_pbf_writer.hpp21#include "data_view.hpp"COMMENT
LOWext/protozero/include/protozero/basic_pbf_writer.hpp61 // A pointer to a buffer holding the data already written to the PBFCOMMENT
LOWext/arc4random/bsd-getentropy.c21#ifndef SSH_RANDOM_DEVCOMMENT
LOWext/arc4random/arc4random.c21COMMENT
LOWext/arc4random/arc4random.c61#define minimum(a, b) ((a) < (b) ? (a) : (b))COMMENT
LOWext/arc4random/includes.h1#pragma onceCOMMENT
LOWext/luawrapper/include/LuaContext.hpp21(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;COMMENT
LOWext/luawrapper/include/LuaContext.hpp41#include <random>COMMENT
LOWext/luawrapper/include/LuaContext.hpp61#endif /* C++17 */COMMENT
LOWext/probds/murmur3.h1#pragma onceCOMMENT
LOWext/probds/murmur3.h41COMMENT
LOWext/yahttp/yahttp/yahttp.hpp1#include <map>COMMENT
LOWext/yahttp/yahttp/reqresp.hpp1#if __cplusplus >= 201103LCOMMENT
LOWext/yahttp/yahttp/reqresp.hpp21#include <algorithm>COMMENT
LOWext/yahttp/yahttp/router.hpp1#pragma onceCOMMENT
LOWpdns/ixfrdist.example.yml1# Listen addresses. ixfrdist will listen on both UDP and TCP.COMMENT
LOWpdns/ixfrdist.example.yml21# - '::1'COMMENT
LOWpdns/ixfrdist.example.yml41#COMMENT
LOWpdns/ixfrdist.example.yml61#COMMENT
LOWpdns/ixfrdist.example.yml81#COMMENT
LOWpdns/ixfrdist.example.yml101# You can optionally cap the refresh time of the SOA using 'max-soa-refresh' (seconds)COMMENT
LOWpdns/recursordist/metrics_table.py1# From this table all metrics related files are generated by the metrics.py script:COMMENT
LOWpdns/recursordist/ext/arc4random/bsd-getentropy.c21#ifndef SSH_RANDOM_DEVCOMMENT
LOWpdns/recursordist/ext/arc4random/arc4random.c21COMMENT
LOWpdns/recursordist/ext/arc4random/arc4random.c61#define minimum(a, b) ((a) < (b) ? (a) : (b))COMMENT
LOWpdns/recursordist/ext/arc4random/includes.h1#pragma onceCOMMENT
LOWpdns/recursordist/ext/probds/murmur3.h1#pragma onceCOMMENT
LOWpdns/recursordist/ext/probds/murmur3.h41COMMENT
LOWpdns/recursordist/ext/yahttp/yahttp/yahttp.hpp1#include <map>COMMENT
LOWpdns/recursordist/ext/yahttp/yahttp/reqresp.hpp1#if __cplusplus >= 201103LCOMMENT
LOWpdns/recursordist/ext/yahttp/yahttp/reqresp.hpp21#include <algorithm>COMMENT
LOWpdns/recursordist/ext/yahttp/yahttp/router.hpp1#pragma onceCOMMENT
LOWpdns/recursordist/html/js/moment.js3361 }COMMENT
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js5041 this.pushSource(['else { ', this.appendToBuffer("''", undefined, true), ' }']);COMMENT
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js5061 //COMMENT
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js5161 // If the `value` is a lambda, replace it on the stack byCOMMENT
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js5221 // [pushString]COMMENT
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js5261 // On stack, before: hash, program, params..., ...COMMENT
LOWpdns/recursordist/html/js/handlebars-v4.7.8.js5321 },COMMENT
LOWpdns/recursordist/docs/requirements.txt961 # via -r requirements.inCOMMENT
LOWpdns/recursordist/docs/requirements.txt1041 # pygithubCOMMENT
LOWpdns/recursordist/docs/conf.py1#!/usr/bin/env python3COMMENT
LOWpdns/recursordist/docs/conf.py61# General information about the project.COMMENT
LOWpdns/recursordist/docs/conf.py161# -- Options for HTMLHelp output ------------------------------------------COMMENT
LOWpdns/recursordist/docs/conf.py221COMMENT
LOWpdns/recursordist/rec-rust-lib/generate.py1"""The Python script that takes table.py and generates C++, Rust ahd .rst code."""COMMENT
62 more matches not shown…
Hallucination Indicators13 hits · 115 pts
SeverityFileLineSnippetContext
CRITICALregression-tests.dnsdist/test_OpenTelemetryTracing.py176 traces_data = opentelemetry.proto.trace.v1.trace_pb2.TracesData()CODE
CRITICALregression-tests.dnsdist/test_OpenTelemetryTracing.py655 traces_data = opentelemetry.proto.trace.v1.trace_pb2.TracesData()STRING
CRITICALregression-tests.dnsdist/test_OpenTelemetryTracing.py750 traces_data = opentelemetry.proto.trace.v1.trace_pb2.TracesData()STRING
CRITICALregression-tests.dnsdist/test_OpenTelemetryTracing.py1301 traces_data = opentelemetry.proto.trace.v1.trace_pb2.TracesData()STRING
CRITICALregression-tests.dnsdist/test_OTLP.py39 messages = opentelemetry.proto.collector.trace.v1.trace_service_pb2.ExportTraceServiceRequest()CODE
CRITICALregression-tests.dnsdist/test_OTLP.py43 response = opentelemetry.proto.collector.trace.v1.trace_service_pb2.ExportTraceServiceResponse()CODE
CRITICALpdns/recursordist/html/js/rickshaw.min.js3_styleSeries:function(series){var fill=this.fill?series.color:"none";var stroke=this.stroke?series.color:"none";var stroCODE
CRITICALpdns/recursordist/html/js/rickshaw.js4004 this.graph.stackData.hooks.data.push( {CODE
CRITICALpdns/dnsdistdist/src_js/rickshaw.js4004 this.graph.stackData.hooks.data.push( {CODE
CRITICALpdns/dnsdistdist/src_js/jquery.js7975jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) {CODE
CRITICALpdns/dnsdistdist/html/js/rickshaw.min.js3_styleSeries:function(series){var fill=this.fill?series.color:"none";var stroke=this.stroke?series.color:"none";var stroCODE
CRITICALpdns/dnsdistdist/html/js/jquery.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICALcontrib/ProtobufLogger.py157 otmsg = opentelemetry.proto.trace.v1.trace_pb2.TracesData()CODE
Deep Nesting76 hits · 74 pts
SeverityFileLineSnippetContext
LOWtasks.py481CODE
LOWregression-tests.auth-py/test_XFRIncomplete.py34CODE
LOWregression-tests.auth-py/authtests.py206CODE
LOWregression-tests.auth-py/authtests.py556CODE
LOWregression-tests.auth-py/authtests.py578CODE
LOWregression-tests.auth-py/clientsubnetoption.py70CODE
LOWregression-tests.auth-py/test_ProxyProtocol.py297CODE
LOWregression-tests.auth-py/proxyprotocol.py17CODE
LOWregression-tests.dnsdist/doh3client.py83CODE
LOWregression-tests.dnsdist/test_OOOR.py72CODE
LOWregression-tests.dnsdist/test_Async.py15CODE
LOWregression-tests.dnsdist/test_Async.py302CODE
LOWregression-tests.dnsdist/test_Prometheus.py47CODE
LOWregression-tests.dnsdist/test_Prometheus.py73CODE
LOWregression-tests.dnsdist/dnsdisttests.py172CODE
LOWregression-tests.dnsdist/dnsdisttests.py596CODE
LOWregression-tests.dnsdist/test_Protobuf.py948CODE
LOWregression-tests.dnsdist/clientsubnetoption.py70CODE
LOWregression-tests.dnsdist/test_ProxyProtocol.py47CODE
LOWregression-tests.dnsdist/proxyprotocol.py17CODE
LOWregression-tests.common/proxyprotocol.py17CODE
LOWpdns/keyroller/pdnskeyroller/config.py16CODE
LOWpdns/keyroller/pdnskeyroller/prepublishkeyroll.py86CODE
LOWpdns/keyroller/pdnskeyroller/daemon.py32CODE
LOWpdns/keyroller/pdnskeyroller/daemon.py85CODE
LOWpdns/recursordist/docs/generate-jsonschema.py21CODE
LOWpdns/recursordist/rec-rust-lib/generate.py328CODE
LOWpdns/recursordist/rec-rust-lib/generate.py364CODE
LOWpdns/recursordist/rec-rust-lib/generate.py596CODE
LOWpdns/recursordist/rec-rust-lib/generate.py647CODE
LOWpdns/recursordist/rec-rust-lib/generate.py736CODE
LOWpdns/recursordist/rec-rust-lib/generate.py803CODE
LOW…nsdistdist/dnsdist-settings-documentation-generator.py78CODE
LOWpdns/dnsdistdist/dnsdist-rules-generator.py99CODE
LOW…istdist/dnsdist-rust-lib/dnsdist-settings-generator.py220CODE
LOW…istdist/dnsdist-rust-lib/dnsdist-settings-generator.py541CODE
LOWregression-tests.ixfrdist/ixfrdisttests.py36CODE
LOWregression-tests.ixfrdist/ixfrdisttests.py90CODE
LOWregression-tests.ixfrdist/test_CaseSensitiveTXT.py130CODE
LOWregression-tests.ixfrdist/test_CaseSensitiveTXT.py157CODE
LOWbuilder-support/helpers/update-rust-library-version.py10CODE
LOWdocs/generate-jsonschema.py21CODE
LOWcontrib/ProtobufLogger.py51CODE
LOWcontrib/ProtobufLogger.py182CODE
LOWcontrib/xdp-logging.py17CODE
LOWregression-tests.recursor-dnssec/test_KeepWarm.py31CODE
LOWregression-tests.recursor-dnssec/test_Cookies.py204CODE
LOWregression-tests.recursor-dnssec/test_Lua.py234CODE
LOWregression-tests.recursor-dnssec/recursortests.py538CODE
LOWregression-tests.recursor-dnssec/recursortests.py623CODE
LOWregression-tests.recursor-dnssec/recursortests.py657CODE
LOWregression-tests.recursor-dnssec/recursortests.py914CODE
LOWregression-tests.recursor-dnssec/recursortests.py1292CODE
LOWregression-tests.recursor-dnssec/test_FWCatz.py35CODE
LOWregression-tests.recursor-dnssec/test_FWCatz.py525CODE
LOWregression-tests.recursor-dnssec/test_Prometheus.py8CODE
LOWregression-tests.recursor-dnssec/test_RPZIncomplete.py34CODE
LOWregression-tests.recursor-dnssec/test_Protobuf.py1581CODE
LOWregression-tests.recursor-dnssec/test_Malformed.py119CODE
LOWregression-tests.recursor-dnssec/test_Sortlist.py16CODE
16 more matches not shown…
Unused Imports51 hits · 50 pts
SeverityFileLineSnippetContext
LOWtasks.py1CODE
LOWtasks.py6CODE
LOWregression-tests.auth-py/test_SoaEdit.py6CODE
LOWregression-tests.auth-py/test_ResolveAcrossZones.py3CODE
LOWregression-tests.auth-py/authtests.py3CODE
LOWregression-tests.auth-py/test_Protobuf.py12CODE
LOWregression-tests.auth-py/test_LuaRecords.py8CODE
LOWregression-tests.auth-py/test_ALIAS.py3CODE
LOWregression-tests.auth-py/clientsubnetoption.py36CODE
LOWregression-tests.auth-py/clientsubnetoption.py37CODE
LOWregression-tests.auth-py/test_ProxyProtocol.py7CODE
LOWregression-tests.dnsdist/test_MMDB.py3CODE
LOWregression-tests.dnsdist/test_MMDB.py4CODE
LOWregression-tests.dnsdist/test_SNMP.py5CODE
LOWregression-tests.dnsdist/test_SNMP.py6CODE
LOWregression-tests.dnsdist/clientsubnetoption.py36CODE
LOWregression-tests.dnsdist/clientsubnetoption.py37CODE
LOWregression-tests.nobackend/edns1/test-edns.py3CODE
LOWpdns/keyroller/pdns-keyroller-ctl.py5CODE
LOWpdns/keyroller/pdns-keyroller-ctl.py7CODE
LOWpdns/keyroller/pdns-keyroller-ctl.py10CODE
LOWpdns/keyroller/pdnskeyroller/config.py2CODE
LOWpdns/keyroller/pdnskeyroller/config.py5CODE
LOWpdns/keyroller/pdnskeyroller/config.py6CODE
LOWpdns/keyroller/pdnskeyroller/prepublishkeyroll.py1CODE
LOWpdns/keyroller/pdnskeyroller/prepublishkeyroll.py3CODE
LOW…tests.recursor-dnssec/test_ReadTrustAnchorsFromFile.py1CODE
LOWregression-tests.recursor-dnssec/test_KeepWarm.py1CODE
LOWregression-tests.recursor-dnssec/test_Expired.py5CODE
LOWregression-tests.recursor-dnssec/recursortests.py3CODE
LOWregression-tests.recursor-dnssec/printlogs.py3CODE
LOWregression-tests.recursor-dnssec/test_NotYetValid.py3CODE
LOWregression-tests.recursor-dnssec/test_SimpleCookies.py3CODE
LOWregression-tests.recursor-dnssec/test_ZTC.py2CODE
LOWregression-tests.recursor-dnssec/test_basicNSEC3.py1CODE
LOWregression-tests.recursor-dnssec/test_RecDnstap.py11CODE
LOWregression-tests.recursor-dnssec/test_EDNS.py3CODE
LOWregression-tests.recursor-dnssec/test_SNMP.py4CODE
LOWregression-tests.recursor-dnssec/test_SNMP.py5CODE
LOWregression-tests.recursor-dnssec/test_Malformed.py3CODE
LOWregression-tests.recursor-dnssec/test_ForwardOverDoT.py4CODE
LOWregression-tests.recursor-dnssec/clientsubnetoption.py36CODE
LOWregression-tests.recursor-dnssec/clientsubnetoption.py37CODE
LOW…sion-tests.recursor-dnssec/test_AggressiveNSECCache.py7CODE
LOWregression-tests/bulktest-report.py2CODE
LOWregression-tests/bulktest-to-json.py2CODE
LOW.github/scripts/helpers.py5CODE
LOWregression-tests.api/test_Zones.py1CODE
LOWregression-tests.api/test_helper.py1CODE
LOWregression-tests.api/test_TSIG.py1CODE
LOWregression-tests.api/runtests.py5CODE
Self-Referential Comments15 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMregression-tests.auth-py/authtests.py450 # This function is called before every testsCOMMENT
MEDIUMregression-tests.dnsdist/dnsdisttests.py981 # This function is called before every testSTRING
MEDIUMregression-tests.dnsdist/test_AXFR.py38 # This function is called before every testSTRING
MEDIUMpdns/recursordist/docs/generate-man-pages.py18 # Create the venv.COMMENT
MEDIUMpdns/recursordist/docs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMpdns/recursordist/docs/generate-docs.py19 # Create the venv.COMMENT
MEDIUMpdns/recursordist/rec-rust-lib/table.py1# This file contains the table used to generate old and new-style settings codeCOMMENT
MEDIUMpdns/dnsdistdist/docs/generate-man-pages.py18 # Create the venv.COMMENT
MEDIUMpdns/dnsdistdist/docs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMpdns/dnsdistdist/docs/generate-docs.py19 # Create the venv.COMMENT
MEDIUMregression-tests.ixfrdist/ixfrdisttests.py200 # This function is called before every testsSTRING
MEDIUMdocs/generate-man-pages.py18 # Create the venv.COMMENT
MEDIUMdocs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdocs/generate-docs.py19 # Create the venv.COMMENT
MEDIUMregression-tests.recursor-dnssec/recursortests.py946 # This function is called before every testsCOMMENT
AI Structural Patterns13 hits · 13 pts
SeverityFileLineSnippetContext
LOWregression-tests.dnsdist/doh3client.py218CODE
LOWregression-tests.dnsdist/dnscrypt.py232CODE
LOWregression-tests.dnsdist/doqclient.py25CODE
LOWregression-tests.dnsdist/doqclient.py58CODE
LOWregression-tests.dnsdist/dnsdisttests.py525CODE
LOWregression-tests.dnsdist/dnsdisttests.py724CODE
LOWregression-tests.dnsdist/dnsdisttests.py1300CODE
LOWregression-tests.dnsdist/dnsdisttests.py1367CODE
LOWregression-tests.dnsdist/dnsdisttests.py1492CODE
LOWregression-tests.dnsdist/dnsdisttests.py1542CODE
LOWpdns/keyroller/pdnskeyroller/domainconfig.py69CODE
LOWpdns/recursordist/metrics.py34CODE
LOWregression-tests.recursor-dnssec/recursortests.py1442CODE
Fake / Example Data16 hits · 11 pts
SeverityFileLineSnippetContext
LOWregression-tests.auth-py/test_Protobuf.py306types 3600 IN TXT "Lorem ipsum dolor sit amet"CODE
LOWregression-tests.auth-py/test_Protobuf.py306types 3600 IN TXT "Lorem ipsum dolor sit amet"CODE
LOWregression-tests.recursor-dnssec/test_RecDnstap.py265types 3600 IN TXT "Lorem ipsum dolor sit amet"STRING
LOWregression-tests.recursor-dnssec/test_RecDnstap.py265types 3600 IN TXT "Lorem ipsum dolor sit amet"STRING
LOWregression-tests.recursor-dnssec/test_Protobuf.py331types 3600 IN TXT "Lorem ipsum dolor sit amet"CODE
LOWregression-tests.recursor-dnssec/test_Protobuf.py331types 3600 IN TXT "Lorem ipsum dolor sit amet"CODE
LOWregression-tests.recursor-dnssec/test_Protobuf.py357types 3600 IN TXT "Lorem ipsum dolor sit amet"CODE
LOWregression-tests.recursor-dnssec/test_Protobuf.py357types 3600 IN TXT "Lorem ipsum dolor sit amet"CODE
LOWregression-tests.recursor-dnssec/test_Protobuf.py1589 dns.rrset.from_text(name, 0, dns.rdataclass.IN, "TXT", '"Lorem ipsum dolor sit amet"'),STRING
LOWregression-tests.recursor-dnssec/test_Protobuf.py1589 dns.rrset.from_text(name, 0, dns.rdataclass.IN, "TXT", '"Lorem ipsum dolor sit amet"'),STRING
LOWregression-tests.recursor-dnssec/test_Protobuf.py1628 self.assertEqual(rr.rdata, b'"Lorem ipsum dolor sit amet"')STRING
LOWregression-tests.recursor-dnssec/test_Protobuf.py1628 self.assertEqual(rr.rdata, b'"Lorem ipsum dolor sit amet"')STRING
LOW…ression-tests.recursor-dnssec/test_ProtobufStrategy.py331types 3600 IN TXT "Lorem ipsum dolor sit amet"STRING
LOW…ression-tests.recursor-dnssec/test_ProtobufStrategy.py331types 3600 IN TXT "Lorem ipsum dolor sit amet"STRING
LOW…ression-tests.recursor-dnssec/test_ProtobufStrategy.py357types 3600 IN TXT "Lorem ipsum dolor sit amet"STRING
LOW…ression-tests.recursor-dnssec/test_ProtobufStrategy.py357types 3600 IN TXT "Lorem ipsum dolor sit amet"STRING
Slop Phrases7 hits · 6 pts
SeverityFileLineSnippetContext
LOWregression-tests.auth-py/test_LuaRecords.py533 # the timeout in the LUA health checker is 1 second, so we make sure to wait slightly longer hereSTRING
LOWregression-tests.auth-py/test_LuaRecords.py559 # the timeout in the LUA health checker is 2 second, so we make sure to wait slightly longer hereSTRING
LOWregression-tests.auth-py/test_LuaRecords.py585 # the timeout in the LUA health checker is 1 second, so we make sure to wait slightly longer hereSTRING
LOWregression-tests.dnsdist/test_DNSCrypt.py105 Send a small encrypted query (don't forget to takeCODE
LOWpdns/dnsdistdist/dnsdist-actions-definitions.yml440 description: "Enable or disable OpenTelemetry tracing for this query. Don't forget to also use a RemoteLog action to aCODE
LOWbuilder-support/helpers/install_rust.sh36# 4. Run sha256sum $RUST_TARBALL and set SHA256SUM above, don't forget to update RUST_VERSION as wellCOMMENT
LOWbuilder-support/helpers/install_rust.sh36# 4. Run sha256sum $RUST_TARBALL and set SHA256SUM above, don't forget to update RUST_VERSION as wellCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtasks.py333 # FIXME we may want to start a background recursor here to make ALIAS tests more robustCOMMENT
MEDIUMpdns/dnsdistdist/src_js/jquery.js10665// understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWpdns/keyroller/pdnskeyroller/domainstate.py10logger = logging.getLogger(__name__)CODE
LOWpdns/keyroller/pdnskeyroller/config.py8logger = logging.getLogger(__name__)CODE
LOWpdns/keyroller/pdnskeyroller/keyrollerdomain.py8logger = logging.getLogger(__name__)CODE
LOWpdns/keyroller/pdnskeyroller/daemon.py10logger = logging.getLogger(__name__)CODE
LOWpdns/keyroller/pdnsapi/api.py11logger = logging.getLogger(__name__)CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWregression-tests.ixfrdist/test_CaseSensitiveTXT.py173 # Check if the expected TXT records are in the IXFR responseSTRING
LOWregression-tests.api/test_TSIG.py94 # Check if the old key is removedCOMMENT
LOW⚡regression-tests.api/test_cryptokeys.py103 # Check if the key is actually addedCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbuild-scripts/docker/repo-test/generate-repo-files.py5# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpdns/dnsdistdist/src_js/jquery.js4139function getData( data ) {CODE