Public report of cloudflare/pingora, published 26 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 26 October 2026, 02:29 UTC · Survey ID cd_585fce8a48db43ba90128bb2126916f2
cloudflare/pingora
Measured 26 October 2026, 02:20 UTC, at code version 84f21ee
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
Test reliability is not measured: The suite could not be re-run, but the repository declares tests of its own unreliable.
Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
Up 1 since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A medium codebase: 96,646 lines of product code in 24 projects, tests not counted · Estimated rebuild effort: about 0.9 person-years · Weakest lens: Security and Compliance, 45
Findings by how serious they are
30 critical562 serious55 minor
24 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
26 October 2026, 02:20 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
46of 46 dimensions measured by tools.
631of 647 findings point to an exact file and line, so you can open each one in the code. The other 16 concern the repository as a whole, such as missing documentation.
46dimensions across 6 lenses, read from 96,646 lines of product code in 24 projects.
cloudflare/pingora falls short of our standard for a preview release because it has security checks on connections or logins switched off. It scores 60 out of 100 and is rated Adequate, and 26 of its 30 critical findings are security problems.
Security and Compliance, at 45, is the weakest lens and counts most in the score. The best first step is restoring certificate checks, worth about 13 points. Replacing the five passwords or keys found in the code's history comes next, worth about 5 points. Raising Security and Compliance to 68 would lift the score to about 70.
Nine pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Five passwords or keys in the code and five in the code's history are open to anyone who can read the repository, and three settings leave the servers or containers unsafe. Pinning each tool to an exact version, replacing each exposed password or key and correcting the unsafe settings would close these risks. Switching the validation back on would fix the three security checks on connections or logins switched off, and limiting each secret to its own step would deal with the secret exposed to more of the pipeline than needed. The two parts of the code nobody has worked on for a long time need someone to learn and document them before anyone changes them.
The product code is 96,646 lines, about €130,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 19 findings
These 19 critical or serious findings were in the previous survey, on 12 October 2026, and are gone from this one.
€42,000 to €210,000, for 700 to 2,222 hours of work, about 0.9 person-years for 1 to 2 engineers
Difficulty of the problem
Low, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.8 at a score of 60. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Medium: 96,646 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Stop accepting every TLS certificate: delete `danger_accept_invalid_certs(true)` / `SslVerifyMode::NONE` / the rustls verifier that returns `ServerCertVerified::assertion()` unconditionally, and trust a self-signed or private server by adding its CA as a root (`add_root_certificate`, a rustls `RootCertStore`) — never by switching verification off.
This repository constructs a TLS client that accepts any certificate at 3 sites, not one: `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:206` (`set_verify(SslVerifyMode::NONE`), `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:227` (`set_verify(SslVerifyMode::NONE`), `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:237` (`set_verify_hostname(false)`). Each is a separate decision — fixing only the line this row cites leaves the others in place.
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 3 points · Low effort · ADR Quality
Diagnosis: what the measurements show together
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €130,000 to build again, about 0.9 person-years of work. Its weakest lens is Security and Compliance, at 45 (Weak). Security and Compliance is about how well the product is protected, and how it handles personal data. Because the weakest lens counts most in the score, work on Security and Compliance also moves the score most.
Based on: the rebuild estimate · the Security and Compliance grade · how much each lens counts
What to do: Start with the Security and Compliance actions in Top priorities.
If you do one thing first · First action
Stop accepting every TLS certificate: delete `danger_accept_invalid_certs(true)` / `SslVerifyMode::NONE` / the rustls verifier that returns `ServerCertVerified::assertion()` unconditionally, and trust a self-signed or private server by adding its CA as a root (`add_root_certificate`, a rustls `RootCertStore`) — never by switching verification off. Of all the actions in this report, it raises the score most for the work it takes: about 13 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
175 modules, with 416 dependencies between them. 7 loops run through 26 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 135 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
pingora_core.connectors.tls.rustls uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.connectors.tls.rustls, while a change to pingora_core.connectors.tls.rustls can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.connectors.tls.rustls uses a module listed above it, which is the healthy direction.
8→25 pingora_core.connectors.tls.rustls uses pingora_core.connectorspart of a loop✕
Connections
2 pairs of types, where a type in pingora_core.connectors.tls.rustls uses a type in pingora_core.connectors.
pingora_core.connectors.tls.rustls uses pingora_core.connectors, so a change to pingora_core.connectors can break pingora_core.connectors.tls.rustls, while a change to pingora_core.connectors.tls.rustls can't break pingora_core.connectors.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pingora_core.listeners.tls.boringssl_openssl uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.listeners.tls.boringssl_openssl, while a change to pingora_core.listeners.tls.boringssl_openssl can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.listeners.tls.boringssl_openssl uses a module listed above it, which is the healthy direction.
pingora_core.listeners.tls.boringssl_openssl uses pingora_core.server.configuration, so a change to pingora_core.server.configuration can break pingora_core.listeners.tls.boringssl_openssl, while a change to pingora_core.listeners.tls.boringssl_openssl can't break pingora_core.server.configuration.
Position
Below the diagonal: pingora_core.listeners.tls.boringssl_openssl uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.compression uses pingora_core.protocols.http, so a change to pingora_core.protocols.http can break pingora_core.protocols.http.compression, while a change to pingora_core.protocols.http.compression can't break pingora_core.protocols.http.
Position
Below the diagonal: pingora_core.protocols.http.compression uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.compression uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.compression, while a change to pingora_core.protocols.http.compression can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.compression uses a module listed above it, which is the healthy direction.
pingora_core.protocols.l4.ext uses pingora_error, so a change to pingora_error can break pingora_core.protocols.l4.ext, while a change to pingora_core.protocols.l4.ext can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.l4.ext uses a module listed above it, which is the healthy direction.
11→22 pingora_core.protocols.l4.ext uses pingora_core.protocols.l4.socketpart of a loop✕
Connections
3 pairs of types, where a type in pingora_core.protocols.l4.ext uses a type in pingora_core.protocols.l4.socket.
pingora_core.protocols.l4.ext uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.l4.ext, while a change to pingora_core.protocols.l4.ext can't break pingora_core.protocols.l4.socket.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pingora_http_parser uses pingora_error, so a change to pingora_error can break pingora_http_parser, while a change to pingora_http_parser can't break pingora_error.
Position
Below the diagonal: pingora_http_parser uses a module listed above it, which is the healthy direction.
pingora_cache.meta uses pingora_http, so a change to pingora_http can break pingora_cache.meta, while a change to pingora_cache.meta can't break pingora_http.
Position
Below the diagonal: pingora_cache.meta uses a module listed above it, which is the healthy direction.
pingora_cache.meta uses pingora_http_parser, so a change to pingora_http_parser can break pingora_cache.meta, while a change to pingora_cache.meta can't break pingora_http_parser.
Position
Below the diagonal: pingora_cache.meta uses a module listed above it, which is the healthy direction.
pingora_core.upstreams.peer uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.upstreams.peer, while a change to pingora_core.upstreams.peer can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.upstreams.peer uses a module listed above it, which is the healthy direction.
pingora_core.upstreams.peer uses pingora_core.protocols.l4.ext, so a change to pingora_core.protocols.l4.ext can break pingora_core.upstreams.peer, while a change to pingora_core.upstreams.peer can't break pingora_core.protocols.l4.ext.
Position
Below the diagonal: pingora_core.upstreams.peer uses a module listed above it, which is the healthy direction.
14→22 pingora_core.upstreams.peer uses pingora_core.protocols.l4.socketpart of a loop✕
Connections
3 pairs of types, where a type in pingora_core.upstreams.peer uses a type in pingora_core.protocols.l4.socket.
pingora_core.upstreams.peer uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.upstreams.peer, while a change to pingora_core.upstreams.peer can't break pingora_core.protocols.l4.socket.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pingora_cache.storage uses pingora_cache.key, so a change to pingora_cache.key can break pingora_cache.storage, while a change to pingora_cache.storage can't break pingora_cache.key.
Position
Below the diagonal: pingora_cache.storage uses a module listed above it, which is the healthy direction.
pingora_cache.storage uses pingora_cache.meta, so a change to pingora_cache.meta can break pingora_cache.storage, while a change to pingora_cache.storage can't break pingora_cache.meta.
Position
Below the diagonal: pingora_cache.storage uses a module listed above it, which is the healthy direction.
pingora_core.protocols.l4.stream uses pingora_error, so a change to pingora_error can break pingora_core.protocols.l4.stream, while a change to pingora_core.protocols.l4.stream can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.l4.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.l4.stream uses pingora_core.protocols.l4.ext, so a change to pingora_core.protocols.l4.ext can break pingora_core.protocols.l4.stream, while a change to pingora_core.protocols.l4.stream can't break pingora_core.protocols.l4.ext.
Position
Below the diagonal: pingora_core.protocols.l4.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.l4.stream uses pingora_core.upstreams.peer, so a change to pingora_core.upstreams.peer can break pingora_core.protocols.l4.stream, while a change to pingora_core.protocols.l4.stream can't break pingora_core.upstreams.peer.
Position
Below the diagonal: pingora_core.protocols.l4.stream uses a module listed above it, which is the healthy direction.
16→18 pingora_core.protocols.l4.stream uses pingora_core.protocols.raw_connectpart of a loop✕
Connections
1 pair of types, where a type in pingora_core.protocols.l4.stream uses a type in pingora_core.protocols.raw_connect.
pingora_core.protocols.l4.stream uses pingora_core.protocols.raw_connect, so a change to pingora_core.protocols.raw_connect can break pingora_core.protocols.l4.stream, while a change to pingora_core.protocols.l4.stream can't break pingora_core.protocols.raw_connect.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→20 pingora_core.protocols.l4.stream uses pingora_core.protocols.digestpart of a loop✕
Connections
5 pairs of types, where a type in pingora_core.protocols.l4.stream uses a type in pingora_core.protocols.digest.
pingora_core.protocols.l4.stream uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.l4.stream, while a change to pingora_core.protocols.l4.stream can't break pingora_core.protocols.digest.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→21 pingora_core.protocols.l4.stream uses pingora_core.protocolspart of a loop✕
Connections
4 pairs of types, where a type in pingora_core.protocols.l4.stream uses a type in pingora_core.protocols.
pingora_core.protocols.l4.stream uses pingora_core.protocols, so a change to pingora_core.protocols can break pingora_core.protocols.l4.stream, while a change to pingora_core.protocols.l4.stream can't break pingora_core.protocols.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pingora_cache uses pingora_cache.key, so a change to pingora_cache.key can break pingora_cache, while a change to pingora_cache can't break pingora_cache.key.
Position
Below the diagonal: pingora_cache uses a module listed above it, which is the healthy direction.
pingora_cache uses pingora_cache.meta, so a change to pingora_cache.meta can break pingora_cache, while a change to pingora_cache can't break pingora_cache.meta.
Position
Below the diagonal: pingora_cache uses a module listed above it, which is the healthy direction.
pingora_cache uses pingora_cache.storage, so a change to pingora_cache.storage can break pingora_cache, while a change to pingora_cache can't break pingora_cache.storage.
Position
Below the diagonal: pingora_cache uses a module listed above it, which is the healthy direction.
pingora_core.protocols.raw_connect uses pingora_error, so a change to pingora_error can break pingora_core.protocols.raw_connect, while a change to pingora_core.protocols.raw_connect can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.raw_connect uses a module listed above it, which is the healthy direction.
pingora_core.protocols.raw_connect uses pingora_http, so a change to pingora_http can break pingora_core.protocols.raw_connect, while a change to pingora_core.protocols.raw_connect can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.raw_connect uses a module listed above it, which is the healthy direction.
pingora_core.protocols.raw_connect uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.protocols.raw_connect, while a change to pingora_core.protocols.raw_connect can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.protocols.raw_connect uses a module listed above it, which is the healthy direction.
pingora_cache.put uses pingora_cache.key, so a change to pingora_cache.key can break pingora_cache.put, while a change to pingora_cache.put can't break pingora_cache.key.
Position
Below the diagonal: pingora_cache.put uses a module listed above it, which is the healthy direction.
pingora_cache.put uses pingora_http, so a change to pingora_http can break pingora_cache.put, while a change to pingora_cache.put can't break pingora_http.
Position
Below the diagonal: pingora_cache.put uses a module listed above it, which is the healthy direction.
pingora_cache.put uses pingora_http_parser, so a change to pingora_http_parser can break pingora_cache.put, while a change to pingora_cache.put can't break pingora_http_parser.
Position
Below the diagonal: pingora_cache.put uses a module listed above it, which is the healthy direction.
pingora_cache.put uses pingora_cache.meta, so a change to pingora_cache.meta can break pingora_cache.put, while a change to pingora_cache.put can't break pingora_cache.meta.
Position
Below the diagonal: pingora_cache.put uses a module listed above it, which is the healthy direction.
pingora_cache.put uses pingora_cache, so a change to pingora_cache can break pingora_cache.put, while a change to pingora_cache.put can't break pingora_cache.
Position
Below the diagonal: pingora_cache.put uses a module listed above it, which is the healthy direction.
pingora_core.protocols.digest uses pingora_core.protocols.l4.ext, so a change to pingora_core.protocols.l4.ext can break pingora_core.protocols.digest, while a change to pingora_core.protocols.digest can't break pingora_core.protocols.l4.ext.
Position
Below the diagonal: pingora_core.protocols.digest uses a module listed above it, which is the healthy direction.
pingora_core.protocols.digest uses pingora_core.protocols.raw_connect, so a change to pingora_core.protocols.raw_connect can break pingora_core.protocols.digest, while a change to pingora_core.protocols.digest can't break pingora_core.protocols.raw_connect.
Position
Below the diagonal: pingora_core.protocols.digest uses a module listed above it, which is the healthy direction.
20→22 pingora_core.protocols.digest uses pingora_core.protocols.l4.socketpart of a loop✕
Connections
1 pair of types, where a type in pingora_core.protocols.digest uses a type in pingora_core.protocols.l4.socket.
pingora_core.protocols.digest uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.digest, while a change to pingora_core.protocols.digest can't break pingora_core.protocols.l4.socket.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pingora_core.protocols uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.protocols, while a change to pingora_core.protocols can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.protocols uses a module listed above it, which is the healthy direction.
pingora_core.protocols uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols, while a change to pingora_core.protocols can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols uses a module listed above it, which is the healthy direction.
pingora_core.protocols.l4.socket uses pingora_core.protocols, so a change to pingora_core.protocols can break pingora_core.protocols.l4.socket, while a change to pingora_core.protocols.l4.socket can't break pingora_core.protocols.
Position
Below the diagonal: pingora_core.protocols.l4.socket uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.boringssl_openssl.stream uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.protocols.tls.boringssl_openssl.stream, while a change to pingora_core.protocols.tls.boringssl_openssl.stream can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.protocols.tls.boringssl_openssl.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.boringssl_openssl.stream uses pingora_error, so a change to pingora_error can break pingora_core.protocols.tls.boringssl_openssl.stream, while a change to pingora_core.protocols.tls.boringssl_openssl.stream can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.tls.boringssl_openssl.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.boringssl_openssl.stream uses pingora_core.protocols.raw_connect, so a change to pingora_core.protocols.raw_connect can break pingora_core.protocols.tls.boringssl_openssl.stream, while a change to pingora_core.protocols.tls.boringssl_openssl.stream can't break pingora_core.protocols.raw_connect.
Position
Below the diagonal: pingora_core.protocols.tls.boringssl_openssl.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.boringssl_openssl.stream uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.tls.boringssl_openssl.stream, while a change to pingora_core.protocols.tls.boringssl_openssl.stream can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.tls.boringssl_openssl.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.boringssl_openssl.stream uses pingora_core.protocols, so a change to pingora_core.protocols can break pingora_core.protocols.tls.boringssl_openssl.stream, while a change to pingora_core.protocols.tls.boringssl_openssl.stream can't break pingora_core.protocols.
Position
Below the diagonal: pingora_core.protocols.tls.boringssl_openssl.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_error, so a change to pingora_error can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_core.connectors.tls.rustls, so a change to pingora_core.connectors.tls.rustls can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_core.connectors.tls.rustls.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_core.listeners.tls.boringssl_openssl, so a change to pingora_core.listeners.tls.boringssl_openssl can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_core.listeners.tls.boringssl_openssl.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_core.protocols.raw_connect, so a change to pingora_core.protocols.raw_connect can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_core.protocols.raw_connect.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.rustls.stream uses pingora_core.protocols, so a change to pingora_core.protocols can break pingora_core.protocols.tls.rustls.stream, while a change to pingora_core.protocols.tls.rustls.stream can't break pingora_core.protocols.
Position
Below the diagonal: pingora_core.protocols.tls.rustls.stream uses a module listed above it, which is the healthy direction.
pingora_core.connectors uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.connectors, while a change to pingora_core.connectors can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.connectors uses a module listed above it, which is the healthy direction.
pingora_core.connectors uses pingora_core.server.configuration, so a change to pingora_core.server.configuration can break pingora_core.connectors, while a change to pingora_core.connectors can't break pingora_core.server.configuration.
Position
Below the diagonal: pingora_core.connectors uses a module listed above it, which is the healthy direction.
pingora_core.connectors uses pingora_core.connectors.tls.rustls, so a change to pingora_core.connectors.tls.rustls can break pingora_core.connectors, while a change to pingora_core.connectors can't break pingora_core.connectors.tls.rustls.
Position
Below the diagonal: pingora_core.connectors uses a module listed above it, which is the healthy direction.
pingora_core.connectors uses pingora_http_parser, so a change to pingora_http_parser can break pingora_core.connectors, while a change to pingora_core.connectors can't break pingora_http_parser.
Position
Below the diagonal: pingora_core.connectors uses a module listed above it, which is the healthy direction.
pingora_core.connectors uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.connectors, while a change to pingora_core.connectors can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.connectors uses a module listed above it, which is the healthy direction.
pingora_core.connectors uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.connectors, while a change to pingora_core.connectors can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.connectors uses a module listed above it, which is the healthy direction.
pingora_core.listeners uses pingora_core.listeners.tls.boringssl_openssl, so a change to pingora_core.listeners.tls.boringssl_openssl can break pingora_core.listeners, while a change to pingora_core.listeners can't break pingora_core.listeners.tls.boringssl_openssl.
Position
Below the diagonal: pingora_core.listeners uses a module listed above it, which is the healthy direction.
pingora_core.listeners uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.listeners, while a change to pingora_core.listeners can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.listeners uses a module listed above it, which is the healthy direction.
pingora_core.listeners uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.listeners, while a change to pingora_core.listeners can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.listeners uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.custom.client uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.custom.client, while a change to pingora_core.protocols.http.custom.client can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.custom.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.custom.client uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.custom.client, while a change to pingora_core.protocols.http.custom.client can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.custom.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.custom.client uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.custom.client, while a change to pingora_core.protocols.http.custom.client can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.custom.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.subrequest.server uses pingora_core.protocols.http, so a change to pingora_core.protocols.http can break pingora_core.protocols.http.subrequest.server, while a change to pingora_core.protocols.http.subrequest.server can't break pingora_core.protocols.http.
Position
Below the diagonal: pingora_core.protocols.http.subrequest.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.subrequest.server uses pingora_core.protocols.http.subrequest.body, so a change to pingora_core.protocols.http.subrequest.body can break pingora_core.protocols.http.subrequest.server, while a change to pingora_core.protocols.http.subrequest.server can't break pingora_core.protocols.http.subrequest.body.
Position
Below the diagonal: pingora_core.protocols.http.subrequest.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.subrequest.server uses pingora_error, so a change to pingora_error can break pingora_core.protocols.http.subrequest.server, while a change to pingora_core.protocols.http.subrequest.server can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.http.subrequest.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.subrequest.server uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.subrequest.server, while a change to pingora_core.protocols.http.subrequest.server can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.subrequest.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.subrequest.server uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.subrequest.server, while a change to pingora_core.protocols.http.subrequest.server can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.subrequest.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.subrequest.server uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.subrequest.server, while a change to pingora_core.protocols.http.subrequest.server can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.subrequest.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_core.protocols.http.subrequest.body, so a change to pingora_core.protocols.http.subrequest.body can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_core.protocols.http.subrequest.body.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_http_parser, so a change to pingora_http_parser can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_http_parser.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_core.protocols, so a change to pingora_core.protocols can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_core.protocols.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.client uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.v1.client, while a change to pingora_core.protocols.http.v1.client can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.v1.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.client uses pingora_error, so a change to pingora_error can break pingora_core.protocols.http.v2.client, while a change to pingora_core.protocols.http.v2.client can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.http.v2.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.client uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.v2.client, while a change to pingora_core.protocols.http.v2.client can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.v2.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.client uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.v2.client, while a change to pingora_core.protocols.http.v2.client can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.v2.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.client uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.v2.client, while a change to pingora_core.protocols.http.v2.client can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.v2.client uses a module listed above it, which is the healthy direction.
30→33 pingora_core.protocols.http.v2.client uses pingora_core.connectors.http.v2part of a loop✕
Connections
1 pair of types, where a type in pingora_core.protocols.http.v2.client uses a type in pingora_core.connectors.http.v2.
pingora_core.protocols.http.v2.client uses pingora_core.connectors.http.v2, so a change to pingora_core.connectors.http.v2 can break pingora_core.protocols.http.v2.client, while a change to pingora_core.protocols.http.v2.client can't break pingora_core.connectors.http.v2.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pingora_core.protocols.tls.s2n.stream uses pingora_core.protocols.tls, so a change to pingora_core.protocols.tls can break pingora_core.protocols.tls.s2n.stream, while a change to pingora_core.protocols.tls.s2n.stream can't break pingora_core.protocols.tls.
Position
Below the diagonal: pingora_core.protocols.tls.s2n.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.s2n.stream uses pingora_error, so a change to pingora_error can break pingora_core.protocols.tls.s2n.stream, while a change to pingora_core.protocols.tls.s2n.stream can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.tls.s2n.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.s2n.stream uses pingora_core.protocols.raw_connect, so a change to pingora_core.protocols.raw_connect can break pingora_core.protocols.tls.s2n.stream, while a change to pingora_core.protocols.tls.s2n.stream can't break pingora_core.protocols.raw_connect.
Position
Below the diagonal: pingora_core.protocols.tls.s2n.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.s2n.stream uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.tls.s2n.stream, while a change to pingora_core.protocols.tls.s2n.stream can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.tls.s2n.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.s2n.stream uses pingora_core.protocols, so a change to pingora_core.protocols can break pingora_core.protocols.tls.s2n.stream, while a change to pingora_core.protocols.tls.s2n.stream can't break pingora_core.protocols.
Position
Below the diagonal: pingora_core.protocols.tls.s2n.stream uses a module listed above it, which is the healthy direction.
pingora_core.protocols.tls.s2n.stream uses pingora_core.protocols.tls.rustls.stream, so a change to pingora_core.protocols.tls.rustls.stream can break pingora_core.protocols.tls.s2n.stream, while a change to pingora_core.protocols.tls.s2n.stream can't break pingora_core.protocols.tls.rustls.stream.
Position
Below the diagonal: pingora_core.protocols.tls.s2n.stream uses a module listed above it, which is the healthy direction.
pingora_load_balancing uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_load_balancing, while a change to pingora_load_balancing can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_load_balancing uses a module listed above it, which is the healthy direction.
pingora_core.connectors.http.v2 uses pingora_http_parser, so a change to pingora_http_parser can break pingora_core.connectors.http.v2, while a change to pingora_core.connectors.http.v2 can't break pingora_http_parser.
Position
Below the diagonal: pingora_core.connectors.http.v2 uses a module listed above it, which is the healthy direction.
pingora_core.connectors.http.v2 uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.connectors.http.v2, while a change to pingora_core.connectors.http.v2 can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.connectors.http.v2 uses a module listed above it, which is the healthy direction.
pingora_core.connectors.http.v2 uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.connectors.http.v2, while a change to pingora_core.connectors.http.v2 can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.connectors.http.v2 uses a module listed above it, which is the healthy direction.
pingora_core.connectors.http.v2 uses pingora_core.connectors, so a change to pingora_core.connectors can break pingora_core.connectors.http.v2, while a change to pingora_core.connectors.http.v2 can't break pingora_core.connectors.
Position
Below the diagonal: pingora_core.connectors.http.v2 uses a module listed above it, which is the healthy direction.
pingora_core.connectors.http.v2 uses pingora_core.protocols.http.v2.client, so a change to pingora_core.protocols.http.v2.client can break pingora_core.connectors.http.v2, while a change to pingora_core.connectors.http.v2 can't break pingora_core.protocols.http.v2.client.
Position
Below the diagonal: pingora_core.connectors.http.v2 uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.client uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.client, while a change to pingora_core.protocols.http.client can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.client uses pingora_http_parser, so a change to pingora_http_parser can break pingora_core.protocols.http.client, while a change to pingora_core.protocols.http.client can't break pingora_http_parser.
Position
Below the diagonal: pingora_core.protocols.http.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.client uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.protocols.http.client, while a change to pingora_core.protocols.http.client can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.protocols.http.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.client uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.client, while a change to pingora_core.protocols.http.client can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.client uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.client, while a change to pingora_core.protocols.http.client can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.client uses pingora_core.protocols.http.v2.client, so a change to pingora_core.protocols.http.v2.client can break pingora_core.protocols.http.client, while a change to pingora_core.protocols.http.client can't break pingora_core.protocols.http.v2.client.
Position
Below the diagonal: pingora_core.protocols.http.client uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_core.protocols.http, so a change to pingora_core.protocols.http can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_core.protocols.http.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_core.protocols.http.subrequest.body, so a change to pingora_core.protocols.http.subrequest.body can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_core.protocols.http.subrequest.body.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_http_parser, so a change to pingora_http_parser can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_http_parser.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v1.server uses pingora_core.protocols.http.subrequest.server, so a change to pingora_core.protocols.http.subrequest.server can break pingora_core.protocols.http.v1.server, while a change to pingora_core.protocols.http.v1.server can't break pingora_core.protocols.http.subrequest.server.
Position
Below the diagonal: pingora_core.protocols.http.v1.server uses a module listed above it, which is the healthy direction.
pingora_core.services.listening uses pingora_core.listeners.tls.boringssl_openssl, so a change to pingora_core.listeners.tls.boringssl_openssl can break pingora_core.services.listening, while a change to pingora_core.services.listening can't break pingora_core.listeners.tls.boringssl_openssl.
Position
Below the diagonal: pingora_core.services.listening uses a module listed above it, which is the healthy direction.
pingora_core.services.listening uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.services.listening, while a change to pingora_core.services.listening can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.services.listening uses a module listed above it, which is the healthy direction.
pingora_core.services.listening uses pingora_core.listeners, so a change to pingora_core.listeners can break pingora_core.services.listening, while a change to pingora_core.services.listening can't break pingora_core.listeners.
Position
Below the diagonal: pingora_core.services.listening uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_error, so a change to pingora_error can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_error.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_http, so a change to pingora_http can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_http.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_cache.meta, so a change to pingora_cache.meta can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_cache.meta.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_core.upstreams.peer, so a change to pingora_core.upstreams.peer can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_core.upstreams.peer.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_cache.storage, so a change to pingora_cache.storage can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_cache.storage.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_proxy.proxy_trait uses pingora_core.protocols.http.custom.client, so a change to pingora_core.protocols.http.custom.client can break pingora_proxy.proxy_trait, while a change to pingora_proxy.proxy_trait can't break pingora_core.protocols.http.custom.client.
Position
Below the diagonal: pingora_proxy.proxy_trait uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_core.protocols.http, so a change to pingora_core.protocols.http can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_core.protocols.http.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_error, so a change to pingora_error can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.v2.server uses pingora_core.protocols.http.client, so a change to pingora_core.protocols.http.client can break pingora_core.protocols.http.v2.server, while a change to pingora_core.protocols.http.v2.server can't break pingora_core.protocols.http.client.
Position
Below the diagonal: pingora_core.protocols.http.v2.server uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.protocols.http, so a change to pingora_core.protocols.http can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.protocols.http.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.server.configuration, so a change to pingora_core.server.configuration can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.server.configuration.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.protocols.http.compression, so a change to pingora_core.protocols.http.compression can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.protocols.http.compression.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.upstreams.peer, so a change to pingora_core.upstreams.peer can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.upstreams.peer.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.connectors, so a change to pingora_core.connectors can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.connectors.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.protocols.http.custom.client, so a change to pingora_core.protocols.http.custom.client can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.protocols.http.custom.client.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.protocols.http.v2.client, so a change to pingora_core.protocols.http.v2.client can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.protocols.http.v2.client.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.protocols.http.client, so a change to pingora_core.protocols.http.client can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.protocols.http.client.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_proxy uses pingora_core.services.listening, so a change to pingora_core.services.listening can break pingora_proxy, while a change to pingora_proxy can't break pingora_core.services.listening.
Position
Below the diagonal: pingora_proxy uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_core.protocols.http, so a change to pingora_core.protocols.http can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_core.protocols.http.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_error, so a change to pingora_error can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_error.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_http, so a change to pingora_http can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_http.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_http_parser, so a change to pingora_http_parser can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_http_parser.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_core.protocols.l4.stream, so a change to pingora_core.protocols.l4.stream can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_core.protocols.l4.stream.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_core.protocols.digest, so a change to pingora_core.protocols.digest can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_core.protocols.digest.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_core.protocols.l4.socket, so a change to pingora_core.protocols.l4.socket can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_core.protocols.l4.socket.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
pingora_core.protocols.http.server uses pingora_core.protocols.http.v2.server, so a change to pingora_core.protocols.http.v2.server can break pingora_core.protocols.http.server, while a change to pingora_core.protocols.http.server can't break pingora_core.protocols.http.v2.server.
Position
Below the diagonal: pingora_core.protocols.http.server uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A07:2025 — Authentication Failures
11
High / Critical
A05:2025 — Injection
10
High / Critical
A02:2025 — Security Misconfiguration
6
High / Critical
A01:2025 — Broken Access Control
1
Medium
Roadmap
First, eliminate the critical TLS verification bypasses by replacing unconditional certificate acceptance with proper CA root trust across all affected connectors. Next, immediately remediate the five leaked secrets in history and scanning, prioritizing the identified key files. Finally, establish architectural governance by documenting significant design decisions as formal ADRs in a dedicated folder.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Stop accepting every TLS certificate: delete `danger_accept_invalid_certs(true)` / `SslVerifyMode::NONE` / the rustls verifier that returns `ServerCertVerified::assertion()` unconditionally, and trust a self-signed or private server by adding its CA as a root (`add_root_certificate`, a rustls `RootCertStore`) — never by switching verification off. This repository constructs a TLS client that accepts any certificate at 3 sites, not one: `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:206` (`set_verify(SslVerifyMode::NONE`), `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:227` (`set_verify(SslVerifyMode::NONE`), `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:237` (`set_verify_hostname(false)`). Each is a separate decision — fixing only the line this row cites leaves the others in place.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 30
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 562
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 55
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 24
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 46 of 46 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 46 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 631 of 647 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.rs) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This repository declares 2 of its own test(s) unreliable. The built-in reliability runner does not support this repository's ecosystem (.rs), so the suite was not re-run and no reliability score is given — these are the repository's own declarations, not our measurement.
D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 100 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, and no committed Cargo.lock resolves them to versions, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D19 Documentation Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
D19 Documentation Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This kind did not reach the 95 % precision gate in three adjudicated runs (docs/plans/deterministic-engine/adjudication/D19-sample3-v3.md), so by the pre-registered fallback it publishes no row until a re-measurement shows it does. The candidates are counted here, not reported as findings, and the score does not include them.
D21 Naming Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
D24 Comment Value — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
D44 Platform End-of-Life — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a REDACTED) is simply not read here yet.
AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via REDACTED (REDACTED). docker build failed (exit 1) — REDACTED:1 -------------------- 1 | >>> FROM debian:latest as builder 2 | 3 | ARG BUILDARCH -------------------- ERROR: failed to solve: debian:latest: failed to resolve source metadata for docker.io/library/debian:latest: failed to do request: Head "https://registry-1.docker.io/v2/library/debian/manifests/latest": Forbidden; runtime evidence skipped.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
M4 Documentation accuracy — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9). Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, TypeScript/JavaScript, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart and Ruby source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart or Ruby was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and PHP, Java, Kotlin, Python, Ruby, Scala, Dart, Swift, Erlang, Go and JavaScript/TypeScript source only, and no C# was loaded and no PHP, Java, Kotlin, Python, Ruby, Scala, Dart, Swift, Erlang, Go, JavaScript or TypeScript was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Rust is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
D32 Data Compliance (PII/GDPR): PII/GDPR signals are heuristic pattern matches in code — they flag likely handling concerns, not legal compliance, and cannot trace where data actually flows at runtime.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
31 function(s) exceeded the cyclomatic complexity threshold of 15; the worst was HttpProxy::custom_bidirection_down_to_up at 76. A further 1 function(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ErrorType::as_str at 32 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: pingora-error/src/lib.rs (ErrorType::as_str at 32). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 4 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 31 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with HttpProxy::custom_bidirection_down_to_up (cyclomatic 76), HttpProxy::bidirection_down_to_up (cyclomatic 64), HttpProxy::proxy_handle_downstream (cyclomatic 63). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 31 together lifts Cyclomatic Complexity from 6.3 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 23 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 3 bodies over 120 down to 120 or less in Cognitive Complexity — start with HttpProxy::custom_bidirection_down_to_up (cognitive 186), HttpProxy::bidirection_down_to_up (cognitive 171), HttpProxy::proxy_handle_downstream (cognitive 157). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 3 together lifts Cognitive Complexity from 5.4 to about 5.8/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.7 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
+ 1 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 19 FileTooLong finding(s) in God Classes — start with lib.rs (5), server.rs (3), proxy_cache.rs. — One of this dimension's main actionable groups (19 warning-level).
Resolve the 17 MethodTooLong finding(s) in God Classes — start with proxy_custom.rs (3), proxy_h2.rs (3), proxy_cache.rs (3). — One of this dimension's main actionable groups (17 warning-level).
Resolve the 12 TooManyMethods finding(s) in God Classes — start with lib.rs (5), server.rs (4), client.rs. — One of this dimension's main actionable groups (12 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
86 duplicated block group(s) detected. A further 3 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
+ 39 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 10 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with stream.rs (6), server.rs, ext.rs. — One of this dimension's main actionable groups (10 warning-level).
Resolve the 6 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with body.rs (2), client.rs, server.rs. — One of this dimension's main actionable groups (6 warning-level).
Resolve the 5 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with lib.rs, l4.rs, mod.rs. — One of this dimension's main actionable groups (5 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling7.2 / 10Strong✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
24 production modules (Cargo), 0 dependency cycle(s), 1 unstable depended-on module(s). Read from the build's own module declarations; 7 module(s) off the main sequence, with abstractness counted on 21 of the 24 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
Off the main sequence: TinyUFO · ×7
Unstable project pingora-load-balancing
What to do
Resolve the 7 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (7 warning-level).
Resolve the 1 Unstable project pingora-load-balancing finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 2 Low cohesion finding(s) in Cohesion (LCOM4) — start with stream.rs, health_check.rs. — One of this dimension's main actionable groups (2 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
1687 test methods: 1379 unit, 308 integration, 0 BDD, 0 e2e. The Rust suite contributes 1687 `#[test]` function(s) across 163 file(s) declaring at least one; its unit/integration split is Cargo's own — 37 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
Resolve the 5 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (5 issue-level).
Enforce REDACTED Scanning in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 584 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository commits no Cargo.lock, so its graph was resolved here: its manifests' `[dependencies]` and `[build-dependencies]` closed over the crates.io index, each crate at the newest release its requirement admits (what a fresh `cargo generate-lockfile` picks, not a graph the repository has pinned). Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Resolve the 12 Hotspot finding(s) in Churn × Complexity Hotspots — start with lib.rs (2), proxy_custom.rs, proxy_h1.rs. — One of this dimension's main actionable groups (12 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor9.3 / 10Exemplary✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
10 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is pingora-runtime/src/lib.rs. Counted over 155 of the 182 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
277 deducted task-comment markers across 96646 LoC (0.3/KLoC) → score 9.4. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
Resolve the 254 TodoComment finding(s) in Explicit Debt — start with mod.rs (39), lib.rs (36), server.rs (33). — One of this dimension's main actionable groups (254 warning-level).
Resolve the 12 XxxComment finding(s) in Explicit Debt — start with conditional_filter.rs (3), server.rs (3), proxy_h2.rs. — One of this dimension's main actionable groups (12 warning-level).
Resolve the 11 FixmeComment finding(s) in Explicit Debt — start with memory.rs (3), server.rs (2), server_utils.rs. — One of this dimension's main actionable groups (11 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 1 documentation facets pass in full. 25 document(s) read across 1 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
5 finding(s): 0 critical, 5 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 5 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (5 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
10 finding(s): 0 critical, 10 high, 0 medium, 0 low. 9 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 2 file(s) — `pingora-foundations/src/lib.rs` (line 170, lines 171–172, lines 173–174), `pingora-runtime/src/lib.rs` (lines 623–626, line 627, line 632, …) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
No action in Static Analysis (SAST) — all 9 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (9 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 3 High IaC finding(s) in IaC & Container Security — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
Resolve the 2 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 Low IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D32 · Data Compliance (PII/GDPR)9.0 / 10Stronggated by 1 serious finding✓ Tool-verified
What it measures: Likely personal-data (PII / GDPR) handling concerns — logging or storing data without safeguards.
Method: Heuristic PII/GDPR LEAK scan via semgrep across the repo, using Watchdog's own ruleset: personal data crossing a boundary it should not — reaching a log/console sink, a URL or query string, or unprotected browser storage. Matches map to severity and a 0-10 wide normalizer. A clean sweep is unscored rather than an unearned 10, and is a statement about the leak paths checked only — this dimension does not inventory the personal data a repository holds (the personal-data map and the C1-C5 compliance cards do that), so it never reports that a repository has no personal-data surface. Reported LOUDLY as a measurement gap if the ruleset is missing from the analyzer image. Exhaustive over the leak paths, advisory-leaning; degrades on parse failure.
Resolve the 1 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d32_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
27 of 155 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is pingora-memory-cache/src/read_through.rs. Counted over 155 of the 182 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Resolve the 2 Orphaned knowledge finding(s) in Knowledge Freshness — start with read_through.rs, lib.rs. — One of this dimension's main actionable groups (2 issue-level).
Resolve the 25 Orphaned file finding(s) in Knowledge Freshness — start with mod.rs (8), lib.rs, zstd.rs. — One of this dimension's main actionable groups (25 recommendation-level).
Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 23 of 24 project(s) that lack one — worth up to 1.9 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Only 10/12 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `pingora-header-serde`, `pingora-test-utils`.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
What to do
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Other · Security — Read from this repository's Rust source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS (certificate validation, protocol version) — facts about code that hold whether or not it serves anything itself. This repository commits the configuration that serves its own HTTP surface, so that configuration was read in full for the security response headers it sets. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are read from a Rust server this repository starts itself, and its production Rust starts none. What serves its HTTP is outside the Rust source, and only what this card names about it was assessed.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
`set_verify(SslVerifyMode::NONE` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the override so the TLS stack verifies the peer — reqwest, native-tls, rustls and openssl's `SslConnector` all check the chain and hostname when nothing is set. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: `reqwest::ClientBuilder::add_root_certificate(Certificate::from_pem(…))`, a rustls `RootCertStore` holding its CA, or `SslConnectorBuilder::set_ca_file`, which keeps the chain and hostname checks on. (×3) — pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:206, pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:227, pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:237
`set_min_proto_version(SslVersion::TLS1)` explicitly admits a protocol version that is broken (SSL 3.0) or withdrawn (TLS 1.0/1.1, RFC 8996). Offering an obsolete version does not merely permit it — it is what a downgrade attack negotiates, so the weakest version on the list is the one that decides the connection's strength. Remove the pin: reqwest, native-tls and openssl negotiate the highest version both sides support, and rustls implements only TLS 1.2 and 1.3 — so naming no older version is the strongest setting. Where a floor must be named, use `min_tls_version(tls::Version::TLS_1_2)` / `set_min_proto_version(Some(SslVersion::TLS1_2))`. — pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:107
None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `nginx.conf` is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.) — pingora-ketama/test-data/nginx.conf:19
What to do
Stop accepting every TLS certificate: delete `danger_accept_invalid_certs(true)` / `SslVerifyMode::NONE` / the rustls verifier that returns `ServerCertVerified::assertion()` unconditionally, and trust a self-signed or private server by adding its CA as a root (`add_root_certificate`, a rustls `RootCertStore`) — never by switching verification off. This repository constructs a TLS client that accepts any certificate at 3 sites, not one: `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:206` (`set_verify(SslVerifyMode::NONE`), `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:227` (`set_verify(SslVerifyMode::NONE`), `pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:237` (`set_verify_hostname(false)`). Each is a separate decision — fixing only the line this row cites leaves the others in place.
Drop SSL 3.0 and TLS 1.0/1.1: remove the `min_tls_version`/`set_min_proto_version` pin naming them, or set TLS 1.2 explicitly — or move the client to rustls, which offers nothing older.
Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for` loop leaves the `RefCell` it is walking alone — safe Rust rejects a body that changes the collection its loop borrows at compile time, except through interior mutability: a `RefCell` borrowed in the loop's header stays borrowed until the loop ends, so a `borrow_mut()` of it inside the body panics with `already borrowed: BorrowMutError` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 3 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
D11 Test Reliability — 2 observation(s) recorded · This repository declares 2 of its own test(s) unreliable. The built-in reliability runner does not support this repository's ecosystem (.rs), so the suite was not re-run and no reliability score is given — these are the repository's own declarations, not our measurement.
D36 Supply-chain Provenance & Signing — 2 observation(s) recorded · The CI pipeline builds and tests but publishes no released artifact — no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
X10 Duplicated predicate — 20 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 70 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: Rust with no dependency-injection crate has no container to hand one lifetime's instance to another — every value is owned by the code that builds it, and the borrow checker rejects a longer-lived value keeping a borrow of a shorter-lived one.
AX2 Stateful singletons — Not applicable: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written.
AX4 Dependency direction — not applicable to a transaction-script/CRUD architecture (the inward-dependency rule is for layered/clean styles)
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility — docker build failed (exit 1) — REDACTED:1 -------------------- 1 | >>> FROM debian:latest as builder 2 | 3 | ARG BUILDARCH -------------------- ERROR: failed to solve: debian:latest: failed to resolve source metadata for docker.io/library/debian:latest: failed to do request: Head "https://registry-1.docker.io/v2/library/debian/manifests/latest": Forbidden; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no data at rest for these controls to protect.
C2 Access Controls — No access-control surface detected in the analyzed source — this repository starts no server another machine can reach (no actix-web HttpServer, axum::serve, Rocket launch, warp::serve, poem or salvo Server, tonic Server::builder, hyper or tiny_http server outside examples and tests, none bound beyond loopback). Access control is therefore N/A here — a crate is authorized by the application that serves it, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D10 Test Quality — ~34215 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D12 Dependency Hygiene — Not scored — 100 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, and no committed Cargo.lock resolves them to versions, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D21 Naming Consistency — Naming consistency is measured on C# only; Rust not measured.
D22 Internal API Consistency — API consistency is measured on C# only; the exposed Rust surface was not measured.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C# and Visual Basic comments only — this repository's production source is .rs, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D25 ADR Conformance — no ADRs to check
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.rs), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (39 value object(s))
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Rust source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF2 Allocation hygiene — Not applicable: Rust spells out every heap allocation and makes borrowed slices (&[T], &str) its ordinary parameter types, so the allocation-aware style this card rewards elsewhere is the language's baseline rather than a rung to climb.
X12 Unreachable branch — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X13 Undrained process stream — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X16 Unfloored truncation loop — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X17 Uncapped recursion over a caller-supplied document — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X18 Disposal-pattern correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X19 Unrestored process-global state — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X2 Cancellation propagation — no C# was loaded; this repository's Rust was read, and no request in it can be cancelled by a caller — a Rust request takes no token: a future is cancelled by dropping it, from outside the call (select!, a timeout, an aborted task), and reqwest, hyper and tonic take none
X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X22 Contradicted release guard — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X23 Unguarded diagnostic materialisation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X25 Inert configuration knob — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. Rust's compiler refuses the unsynchronised version: a collection shared between a callback's thread and the waiting body must be `Sync`, which a `Vec`, `VecDeque` or `HashMap` is only behind a `Mutex`/`RwLock`, so the race this check looks for cannot be written in safe Rust. Not a gap in the analyzer and not a finding about your code.
X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Rust was read, and it logs through none: the `log` crate's macros take one finished message (as log4net does in C#; its `kv` values are an opt-in its backends mostly drop), `println!`/`eprintln!` are not loggers, or it makes no log call outside its tests and examples at all. Calls through `tracing` (`tracing::info!`, or `info!` imported from it) would be judged.
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
TLS certificate validation disabled pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:206— `set_verify(SslVerifyMode::NONE` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the override so the TLS stack verifies the peer — reqwest, native-tls, rustls and openssl's `SslConnector` all check the chain and hostname when nothing is set. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: `reqwest::ClientBuilder::add_root_certificate(Certificate::from_pem(…))`, a rustls `RootCertStore` holding its CA, or `SslConnectorBuilder::set_ca_file`, which keeps the chain and hostname checks on.
TLS certificate validation disabled pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:227— `set_verify(SslVerifyMode::NONE` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the override so the TLS stack verifies the peer — reqwest, native-tls, rustls and openssl's `SslConnector` all check the chain and hostname when nothing is set. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: `reqwest::ClientBuilder::add_root_certificate(Certificate::from_pem(…))`, a rustls `RootCertStore` holding its CA, or `SslConnectorBuilder::set_ca_file`, which keeps the chain and hostname checks on.
TLS certificate validation disabled pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:237— `set_verify(SslVerifyMode::NONE` is set on a TLS client, so every peer certificate is accepted — including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic — the connection is encrypted to the attacker, not to the intended host. Remove the override so the TLS stack verifies the peer — reqwest, native-tls, rustls and openssl's `SslConnector` all check the chain and hostname when nothing is set. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: `reqwest::ClientBuilder::add_root_certificate(Certificate::from_pem(…))`, a rustls `RootCertStore` holding its CA, or `SslConnectorBuilder::set_ca_file`, which keeps the chain and hostname checks on.
D11 · Test Reliability· Test declared unreliable · ×2
Test declared unreliable: test_caching_when_downstream_stalls pingora-proxy/tests/test_upstream.rs:4916— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "flaky in CI due to timing/resource contention". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Test declared unreliable: test_caching_h2_upstream_when_downstream_stalls pingora-proxy/tests/test_upstream.rs:5000— This test is disabled or skipped with a reason naming unreliability — the repository's own words: "flaky in CI due to timing/resource contention". A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository's own test source — the suite itself was not re-run, since the reliability runner does not support this ecosystem.)
Orphaned knowledge pingora-memory-cache/src/read_through.rs:1— No living knowledge remains for this large file — its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here.
Orphaned knowledge tinyufo/src/lib.rs:1— No living knowledge remains for this large file — its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here.
TodoComment tinyufo/src/lib.rs:190— // TODO: figure out the right way to compare frequencies of different weights across — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tinyufo/src/lib.rs:224— // TODO: compare old.weight and update accordingly — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tinyufo/src/lib.rs:406— // TODO: with_capacity() — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-timeout/src/timer.rs:110— // TODO: make sure this value is larger than RESOLUTION_DURATION — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-timeout/src/timer.rs:200— // TODO: buffer these register calls instead (without a lock) — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-runtime/src/lib.rs:738— // TODO: use a mutex to avoid creating a lot threads only to drop them — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-runtime/src/lib.rs:773— // TODO: runtime metrics — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/tests/test_upstream.rs:5481— // TODO: this can currently break with 500 when body arrives alongside header — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/tests/utils/mock_origin.rs:65— // TODO: figure out a way to kill openresty when exiting — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/tests/utils/server_utils.rs:1848— // TODO: only allow GET & HEAD — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/tests/utils/server_utils.rs:2155— // TODO to simulate an actual http1.0 origin — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:194— // TODO: name it better than inner — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:387— // TODO: check n==0 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:391— // TODO: close connection? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:611— // TODO: log error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:1437— // TODO: log error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:669— /// TODO: move this into an upstream session digest for future fields. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:1765— // TODO: allow configuring the subrequest session before use — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:1792— // TODO: allow configuring the subrequest session before use — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:1836— // TODO: keepalive pool, use stack — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/lib.rs:1892— // TODO implement h2_options — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/proxy_cache.rs:89— // TODO: handle this error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/proxy_cache.rs:103— // TODO: handle this error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/proxy_cache.rs:164— // TODO: maybe round and/or cache now() — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment pingora-proxy/src/proxy_cache.rs:329— // TODO: check error types — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
HttpProxy::custom_bidirection_down_to_up (cognitive 186) pingora-proxy/src/proxy_custom.rs:528— HttpProxy::custom_bidirection_down_to_up has cognitive complexity 186 (threshold 15). Drivers by points: if/else 49 (142 pts), boolean chains 22, match/switch 7 (21 pts), loops 1 (nesting depth added 107). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HttpProxy::bidirection_down_to_up (cognitive 171) pingora-proxy/src/proxy_h2.rs:513— HttpProxy::bidirection_down_to_up has cognitive complexity 171 (threshold 15). Drivers by points: if/else 41 (128 pts), match/switch 9 (27 pts), boolean chains 15, loops 1 (nesting depth added 105). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::proxy_handle_downstream (cognitive 157) pingora-proxy/src/proxy_h1.rs:457— HttpProxy::proxy_handle_downstream has cognitive complexity 157 (threshold 15). Drivers by points: if/else 37 (114 pts), match/switch 8 (24 pts), boolean chains 18, loops 1 (nesting depth added 93). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::proxy_cache (cognitive 120) pingora-proxy/src/proxy_cache.rs:77— HttpProxy::proxy_cache has cognitive complexity 120 (threshold 15). Drivers by points: if/else 34 (107 pts), match/switch 3 (8 pts), boolean chains 4, loops 1 (nesting depth added 78). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HttpProxy::proxy_cache_hit (cognitive 112) pingora-proxy/src/proxy_cache.rs:342— HttpProxy::proxy_cache_hit has cognitive complexity 112 (threshold 15). Drivers by points: if/else 24 (64 pts), match/switch 10 (33 pts), boolean chains 9, loops 2 (6 pts) (nesting depth added 67). Of this number, 110 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HttpProxy::cache_http_task (cognitive 88) pingora-proxy/src/proxy_cache.rs:723— HttpProxy::cache_http_task has cognitive complexity 88 (threshold 15). Drivers by points: if/else 21 (74 pts), match/switch 4 (9 pts), boolean chains 5 (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HttpProxy::process_request (cognitive 53) pingora-proxy/src/lib.rs:1389— HttpProxy::process_request has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (41 pts), match/switch 4 (8 pts), boolean chains 3, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::custom_response_filter (cognitive 48) pingora-proxy/src/proxy_custom.rs:1022— HttpProxy::custom_response_filter has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (38 pts), match/switch 3 (6 pts), boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::proxy_down_to_up (cognitive 47) pingora-proxy/src/proxy_h2.rs:139— HttpProxy::proxy_down_to_up has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (28 pts), match/switch 7 (12 pts), boolean chains 7 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::h1_response_filter (cognitive 42) pingora-proxy/src/proxy_h1.rs:905— HttpProxy::h1_response_filter has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 4, match/switch 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HttpProxy::h2_response_filter (cognitive 42) pingora-proxy/src/proxy_h2.rs:959— HttpProxy::h2_response_filter has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 3 (6 pts), boolean chains 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::proxy_handle_upstream (cognitive 41) pingora-proxy/src/proxy_h1.rs:249— HttpProxy::proxy_handle_upstream has cognitive complexity 41 (threshold 15). Drivers by points: if/else 6 (28 pts), match/switch 3 (8 pts), boolean chains 4, loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::revalidate_or_stale (cognitive 36) pingora-proxy/src/proxy_cache.rs:915— HttpProxy::revalidate_or_stale has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (30 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::proxy_1to1 (cognitive 34) pingora-proxy/src/proxy_h1.rs:33— HttpProxy::proxy_1to1 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 7 (12 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::proxy_to_upstream (cognitive 25) pingora-proxy/src/lib.rs:446— HttpProxy::proxy_to_upstream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (19 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 14). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
HttpProxy::process_upstream_tasks (cognitive 25) pingora-proxy/src/proxy_h1.rs:364— HttpProxy::process_upstream_tasks has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::process_upstream_tasks_h2 (cognitive 23) pingora-proxy/src/proxy_h2.rs:421— HttpProxy::process_upstream_tasks_h2 has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::custom_proxy_down_to_up (cognitive 21) pingora-proxy/src/proxy_custom.rs:209— HttpProxy::custom_proxy_down_to_up has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpProxy::process_upstream_tasks_custom (cognitive 20) pingora-proxy/src/proxy_custom.rs:438— HttpProxy::process_upstream_tasks_custom has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileTooLong: src/lib.rs pingora-proxy/src/lib.rs— FileTooLong — 1225 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 725 over it, 2.45× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/proxy_cache.rs pingora-proxy/src/proxy_cache.rs— FileTooLong — 1188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 688 over it, 2.38× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: v1/body.rs pingora-core/src/protocols/http/v1/body.rs— FileTooLong — 1125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 625 over it, 2.25× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/lib.rs pingora-cache/src/lib.rs— FileTooLong — 1064 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 83% of them inside a single declaration: HttpCache (2 blocks, 71-2017). The bar is 500 significant lines; this is 564 over it, 2.13× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/proxy_custom.rs pingora-proxy/src/proxy_custom.rs— FileTooLong — 966 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 75% of them inside a single declaration: HttpProxy (164-1294). The bar is 500 significant lines; this is 466 over it, 1.93× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: v1/server.rs pingora-core/src/protocols/http/v1/server.rs— FileTooLong — 919 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 91% of them inside a single declaration: HttpSession (2 blocks, 80-1782). The bar is 500 significant lines; this is 419 over it, 1.84× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/lib.rs pingora-load-balancing/src/lib.rs— FileTooLong — 904 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 404 over it, 1.81× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/proxy_h2.rs pingora-proxy/src/proxy_h2.rs— FileTooLong — 825 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 80% of them inside a single declaration: HttpProxy (134-1202). The bar is 500 significant lines; this is 325 over it, 1.65× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: subrequest/server.rs pingora-core/src/protocols/http/subrequest/server.rs— FileTooLong — 726 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 82% of them inside a single declaration: HttpSession (2 blocks, 100-1208). The bar is 500 significant lines; this is 226 over it, 1.45× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/proxy_h1.rs pingora-proxy/src/proxy_h1.rs— FileTooLong — 718 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 92% of them inside a single declaration: HttpProxy (28-1136). The bar is 500 significant lines; this is 218 over it, 1.44× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: l4/stream.rs pingora-core/src/protocols/l4/stream.rs— FileTooLong — 579 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 79 over it, 1.16× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/lib.rs pingora-lru/src/lib.rs— FileTooLong — 567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 66% of them inside a single declaration: Lru (2 blocks, 59-823). The bar is 500 significant lines; this is 67 over it, 1.13× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: server/mod.rs pingora-core/src/server/mod.rs— FileTooLong — 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 80% of them inside a single declaration: Server (2 blocks, 212-973). The bar is 500 significant lines; this is 23 over it, 1.05× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/async_lru.rs pingora-lru/src/async_lru.rs— FileTooLong — 522 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 22 over it, 1.04× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: http/server.rs pingora-core/src/protocols/http/server.rs— FileTooLong — 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 95% of them inside a single declaration: Session (3 blocks, 56-1072). The bar is 500 significant lines; this is 21 over it, 1.04× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: v1/client.rs pingora-core/src/protocols/http/v1/client.rs— FileTooLong — 515 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 91% of them inside a single declaration: HttpSession (3 blocks, 39-954). The bar is 500 significant lines; this is 15 over it, 1.03× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: l4/ext.rs pingora-core/src/protocols/l4/ext.rs— FileTooLong — 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 44 free functions. The bar is 500 significant lines; this is 8 over it, 1.02× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: src/lib.rs pingora-http/src/lib.rs— FileTooLong — 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 4 over it, 1.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: upstreams/peer.rs pingora-core/src/upstreams/peer.rs— FileTooLong — 503 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 3 over it, 1.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
MethodTooLong: HttpProxy.custom_bidirection_down_to_up pingora-proxy/src/proxy_custom.rs:528— MethodTooLong — custom_bidirection_down_to_up runs 315 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 215 over it, 3.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.bidirection_down_to_up pingora-proxy/src/proxy_h2.rs:513— MethodTooLong — bidirection_down_to_up runs 286 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 186 over it, 2.86× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.proxy_handle_downstream pingora-proxy/src/proxy_h1.rs:457— MethodTooLong — proxy_handle_downstream runs 272 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 172 over it, 2.72× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.proxy_cache_hit pingora-proxy/src/proxy_cache.rs:342— MethodTooLong — proxy_cache_hit runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Server.run pingora-core/src/server/mod.rs:688— MethodTooLong — run runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.proxy_cache pingora-proxy/src/proxy_cache.rs:77— MethodTooLong — proxy_cache runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.process_request pingora-proxy/src/lib.rs:1389— MethodTooLong — process_request runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.45× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.custom_proxy_down_to_up pingora-proxy/src/proxy_custom.rs:209— MethodTooLong — custom_proxy_down_to_up runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.45× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpSession.write_proxy_tasks pingora-core/src/protocols/http/subrequest/server.rs:920— MethodTooLong — write_proxy_tasks runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.proxy_down_to_up pingora-proxy/src/proxy_h2.rs:139— MethodTooLong — proxy_down_to_up runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.32× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.custom_response_filter pingora-proxy/src/proxy_custom.rs:1022— MethodTooLong — custom_response_filter runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: BodyReader.do_read_chunked_body pingora-core/src/protocols/http/v1/body.rs:487— MethodTooLong — do_read_chunked_body runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpSession.read_response pingora-core/src/protocols/http/v1/client.rs:254— MethodTooLong — read_response runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.h1_response_filter pingora-proxy/src/proxy_h1.rs:905— MethodTooLong — h1_response_filter runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpSession.read_request pingora-core/src/protocols/http/v1/server.rs:284— MethodTooLong — read_request runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.h2_response_filter pingora-proxy/src/proxy_h2.rs:959— MethodTooLong — h2_response_filter runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HttpProxy.cache_http_task pingora-proxy/src/proxy_cache.rs:723— MethodTooLong — cache_http_task runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
HttpProxy::custom_bidirection_down_to_up (cyclomatic 76) pingora-proxy/src/proxy_custom.rs:528— HttpProxy::custom_bidirection_down_to_up has cyclomatic complexity 76 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::bidirection_down_to_up (cyclomatic 64) pingora-proxy/src/proxy_h2.rs:513— HttpProxy::bidirection_down_to_up has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::proxy_handle_downstream (cyclomatic 63) pingora-proxy/src/proxy_h1.rs:457— HttpProxy::proxy_handle_downstream has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::proxy_cache_hit (cyclomatic 46) pingora-proxy/src/proxy_cache.rs:342— HttpProxy::proxy_cache_hit has cyclomatic complexity 46 (threshold 15). Of this number, 44 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::proxy_cache (cyclomatic 40) pingora-proxy/src/proxy_cache.rs:77— HttpProxy::proxy_cache has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::cache_http_task (cyclomatic 33) pingora-proxy/src/proxy_cache.rs:723— HttpProxy::cache_http_task has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::proxy_down_to_up (cyclomatic 33) pingora-proxy/src/proxy_h2.rs:139— HttpProxy::proxy_down_to_up has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::custom_response_filter (cyclomatic 29) pingora-proxy/src/proxy_custom.rs:1022— HttpProxy::custom_response_filter has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::process_request (cyclomatic 28) pingora-proxy/src/lib.rs:1389— HttpProxy::process_request has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::h1_response_filter (cyclomatic 27) pingora-proxy/src/proxy_h1.rs:905— HttpProxy::h1_response_filter has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::h2_response_filter (cyclomatic 26) pingora-proxy/src/proxy_h2.rs:959— HttpProxy::h2_response_filter has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::proxy_1to1 (cyclomatic 22) pingora-proxy/src/proxy_h1.rs:33— HttpProxy::proxy_1to1 has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::custom_proxy_down_to_up (cyclomatic 16) pingora-proxy/src/proxy_custom.rs:209— HttpProxy::custom_proxy_down_to_up has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpProxy::proxy_handle_upstream (cyclomatic 16) pingora-proxy/src/proxy_h1.rs:249— HttpProxy::proxy_handle_upstream has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Hotspot: pingora-proxy/src/proxy_custom.rs pingora-proxy/src/proxy_custom.rs:528— pingora-proxy/src/proxy_custom.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in HttpProxy::custom_bidirection_down_to_up at line 528. 1 of those changes was a fix/bug commit, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-proxy/src/proxy_custom.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-proxy/src/proxy_h1.rs pingora-proxy/src/proxy_h1.rs:457— pingora-proxy/src/proxy_h1.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in HttpProxy::proxy_handle_downstream at line 457. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-proxy/src/proxy_h1.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-proxy/src/proxy_h2.rs pingora-proxy/src/proxy_h2.rs:513— pingora-proxy/src/proxy_h2.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in HttpProxy::bidirection_down_to_up at line 513. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-proxy/src/proxy_h2.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-proxy/src/proxy_cache.rs pingora-proxy/src/proxy_cache.rs:342— pingora-proxy/src/proxy_cache.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in HttpProxy::proxy_cache_hit at line 342. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-proxy/src/proxy_cache.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-proxy/src/lib.rs pingora-proxy/src/lib.rs:1389— pingora-proxy/src/lib.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in HttpProxy::process_request at line 1389. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-proxy/src/lib.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-core/src/protocols/http/v1/client.rs pingora-core/src/protocols/http/v1/client.rs:254— pingora-core/src/protocols/http/v1/client.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in HttpSession::read_response at line 254. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-core/src/protocols/http/v1/client.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-core/src/protocols/http/v1/server.rs pingora-core/src/protocols/http/v1/server.rs:284— pingora-core/src/protocols/http/v1/server.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in HttpSession::read_request at line 284. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-core/src/protocols/http/v1/server.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-proxy/src/subrequest/pipe.rs pingora-proxy/src/subrequest/pipe.rs:202— pingora-proxy/src/subrequest/pipe.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in pingora_proxy::subrequest::pipe::pipe_subrequest at line 202. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-proxy/src/subrequest/pipe.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-core/src/server/mod.rs pingora-core/src/server/mod.rs:688— pingora-core/src/server/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Server::run at line 688. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-core/src/server/mod.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-core/src/protocols/http/v1/body.rs pingora-core/src/protocols/http/v1/body.rs:487— pingora-core/src/protocols/http/v1/body.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in BodyReader::do_read_chunked_body at line 487. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-core/src/protocols/http/v1/body.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-load-balancing/src/background.rs pingora-load-balancing/src/background.rs:388— pingora-load-balancing/src/background.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in HealthCheckService::run at line 388. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-load-balancing/src/background.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: pingora-load-balancing/src/lib.rs pingora-load-balancing/src/lib.rs:1489— pingora-load-balancing/src/lib.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in pingora_load_balancing::run_selector_rebuilds at line 1489. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-26 13:24:47 -07:00' --until='2026-10-24 13:24:47 -07:00' --full-history --no-merges -- pingora-load-balancing/src/lib.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
XxxComment pingora-proxy/src/proxy_h2.rs:1219— // XXX: the h2 crate won't check for content-length underflow — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/server/daemon.rs:80— // XXX: this operation should have been done when the old service is exiting. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/protocols/http/conditional_filter.rs:43— // XXX: In nginx, IMS is actually checked first, which may cause compatibility issues — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/protocols/http/conditional_filter.rs:100— // XXX: This nginx algorithm will handle matching against ETags with commas correctly, but only — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/protocols/http/v1/server.rs:1271— // XXX: account for upgraded body reader change, if the read half split from the write half — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/protocols/http/subrequest/server.rs:374— // XXX: don't add additional downstream headers, unlike h1, subreq is mostly treated as a pipe — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/protocols/http/subrequest/server.rs:456— // XXX: this should only be valid if subrequest is standing in for — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/connectors/l4.rs:439— // XXX: some system will allow the socket to bind and connect without error, only to timeout — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:201— // XXX: verify on empty string cause null string seg fault — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-cache/src/lib.rs:520— // XXX: compile type enforce? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment pingora-cache/src/meta.rs:728— // XXX: return Error if `fresh_until` is much earlier than expected? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TooManyMethods: HttpSession pingora-core/src/protocols/http/v1/server.rs:80— TooManyMethods — 96 methods. The bar is 30 methods; this is 66 over it, 3.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Session pingora-core/src/protocols/http/server.rs:56— TooManyMethods — 87 methods. The bar is 30 methods; this is 57 over it, 2.90× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: HttpCache pingora-cache/src/lib.rs:71— TooManyMethods — 78 methods. The bar is 30 methods; this is 48 over it, 2.60× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: HttpSession pingora-core/src/protocols/http/subrequest/server.rs:100— TooManyMethods — 68 methods. The bar is 30 methods; this is 38 over it, 2.27× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: HttpSession pingora-core/src/protocols/http/v1/client.rs:39— TooManyMethods — 51 methods. The bar is 30 methods; this is 21 over it, 1.70× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: HttpProxy pingora-proxy/src/lib.rs:189— TooManyMethods — 44 methods, declared across 6 files: src/lib.rs (14), src/proxy_cache.rs (9), src/proxy_custom.rs (7), src/proxy_h1.rs (7), +2 more file(s). The bar is 30 methods; this is 14 over it, 1.47× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Lru pingora-lru/src/lib.rs:59— TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Session pingora-proxy/src/lib.rs:642— TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: HttpSession pingora-core/src/protocols/http/v2/server.rs:270— TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: CacheMeta pingora-cache/src/meta.rs:618— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Error pingora-error/src/lib.rs:33— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: BodyReader pingora-core/src/protocols/http/v1/body.rs:147— TooManyMethods — 31 methods. The bar is 30 methods; this is 1 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
FixmeComment pingora-proxy/tests/utils/server_utils.rs:2743— // FIXME: this still allows multiple servers to spawn across integration tests — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-proxy/src/subrequest/pipe.rs:314— // FIXME: if one of these tasks is Failed(e), the session will return that — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-load-balancing/src/selection/consistent.rs:45— // FIXME: ketama only supports Inet addr, UDS addrs are ignored here — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-core/src/protocols/http/v1/client.rs:2935— // FIXME: the order is not guaranteed — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-core/src/protocols/http/v1/server.rs:3380— // FIXME: the order is not guaranteed — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-core/src/protocols/http/v1/server.rs:234— // FIXME: this should only apply to reads between requests — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-cache/src/lock.rs:550— // FIXME: for now it is the awkward responsibility of the ReadLock to set the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-cache/src/memory.rs:193— // FIXME: sender could drop because of an error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-cache/src/memory.rs:244— // FIXME: just body size, also track meta size — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-cache/src/memory.rs:304— // FIXME: this just body size, also track meta size — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment pingora-cache/src/put.rs:54— // FIXME: cache put doesn't have cache lock but some storage cannot handle concurrent put — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
pingora_core::connectors::l4::connect (cognitive 46) pingora-core/src/connectors/l4.rs:108— pingora_core::connectors::l4::connect has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 9 (28 pts), if/else 10 (18 pts) (nesting depth added 27). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
pingora_core::connectors::tls::boringssl_openssl::connect (cognitive 35) pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:148— pingora_core::connectors::tls::boringssl_openssl::connect has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_core::connectors::tls::rustls::connect (cognitive 34) pingora-core/src/connectors/tls/rustls/mod.rs:129— pingora_core::connectors::tls::rustls::connect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (26 pts), match/switch 3 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_core::server::transfer_fd::send_fds_to (cognitive 29) pingora-core/src/server/transfer_fd/mod.rs:276— pingora_core::server::transfer_fd::send_fds_to has cognitive complexity 29 (threshold 15). Drivers by points: if/else 3 (13 pts), match/switch 5 (13 pts), loops 2 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_core::protocols::http::compression::parse_accept_encoding (cognitive 24) pingora-core/src/protocols/http/compression/mod.rs:583— pingora_core::protocols::http::compression::parse_accept_encoding has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
pingora_core::server::runtime_group::resolve_group (cognitive 22) pingora-core/src/server/runtime_group.rs:214— pingora_core::server::runtime_group::resolve_group has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (7 pts), match/switch 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_core::protocols::http::conditional_filter::not_modified_filter (cognitive 21) pingora-core/src/protocols/http/conditional_filter.rs:25— pingora_core::protocols::http::conditional_filter::not_modified_filter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (3 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
pingora_core::protocols::http::authority::validate_connect_authority (cognitive 20) REDACTED:122— pingora_core::protocols::http::authority::validate_connect_authority has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_core::protocols::http::v1::common::parse_connection_header (cognitive 18) pingora-core/src/protocols/http/v1/common.rs:74— pingora_core::protocols::http::v1::common::parse_connection_header has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_core::protocols::tls::boringssl_openssl::client::handshake (cognitive 18) pingora-core/src/protocols/tls/boringssl_openssl/client.rs:30— pingora_core::protocols::tls::boringssl_openssl::client::handshake has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 4 (9 pts) (nesting depth added 11). Of this number, 15 points are the body's own statements and 3 belong to one function item inside it that branches. The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Duplicated block (6 lines × 2) pingora-core/src/protocols/http/subrequest/server.rs:328— pingora-core/src/protocols/http/subrequest/server.rs:328-335 | pingora-core/src/protocols/http/v1/server.rs:632-637 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (6 lines × 2) pingora-core/src/protocols/l4/stream.rs:66— pingora-core/src/protocols/l4/stream.rs:66-71 | pingora-core/src/protocols/l4/stream.rs:204-209 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) pingora-core/src/protocols/l4/stream.rs:80— pingora-core/src/protocols/l4/stream.rs:80-85 | pingora-core/src/protocols/l4/stream.rs:292-297 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) pingora-core/src/protocols/l4/stream.rs:92— pingora-core/src/protocols/l4/stream.rs:92-97 | pingora-core/src/protocols/l4/stream.rs:304-309 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) pingora-core/src/protocols/l4/stream.rs:104— pingora-core/src/protocols/l4/stream.rs:104-109 | pingora-core/src/protocols/l4/stream.rs:316-321 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) pingora-core/src/protocols/l4/stream.rs:120— pingora-core/src/protocols/l4/stream.rs:120-125 | pingora-core/src/protocols/l4/stream.rs:332-337 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) pingora-core/src/protocols/tls/rustls/stream.rs:170— pingora-core/src/protocols/tls/rustls/stream.rs:170-175 | pingora-core/src/protocols/tls/rustls/stream.rs:181-186 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) pingora-boringssl/src/ext.rs:225— pingora-boringssl/src/ext.rs:225-230 | pingora-openssl/src/ext.rs:49-54 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) pingora-core/src/utils/tls/rustls.rs:60— pingora-core/src/utils/tls/rustls.rs:60-65 | pingora-core/src/utils/tls/s2n.rs:55-60 — before extracting anything, compare `pingora-core/src/utils/tls/rustls.rs` and `pingora-core/src/utils/tls/s2n.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) pingora-core/src/protocols/http/compression/brotli.rs:66— pingora-core/src/protocols/http/compression/brotli.rs:66-71 | pingora-core/src/protocols/http/compression/gzip.rs:63-68 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
HttpSession::write_proxy_tasks (cognitive 81) pingora-core/src/protocols/http/subrequest/server.rs:920— HttpSession::write_proxy_tasks has cognitive complexity 81 (threshold 15). Drivers by points: if/else 24 (60 pts), match/switch 7 (17 pts), boolean chains 3, loops 1 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::read_request (cognitive 61) pingora-core/src/protocols/http/v1/server.rs:284— HttpSession::read_request has cognitive complexity 61 (threshold 15). Drivers by points: if/else 14 (42 pts), match/switch 3 (11 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::read_response (cognitive 54) pingora-core/src/protocols/http/v1/client.rs:254— HttpSession::read_response has cognitive complexity 54 (threshold 15). Drivers by points: if/else 11 (30 pts), match/switch 6 (18 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::write_proxy_tasks (cognitive 45) pingora-core/src/protocols/http/v1/server.rs:1646— HttpSession::write_proxy_tasks has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (34 pts), match/switch 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::prepare_response_header (cognitive 30) pingora-core/src/protocols/http/v1/server.rs:842— HttpSession::prepare_response_header has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 7 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::read_body_or_idle (cognitive 29) pingora-core/src/protocols/http/v1/server.rs:1244— HttpSession::read_body_or_idle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::read_request_buf (cognitive 19) pingora-core/src/protocols/http/v1/server.rs:218— HttpSession::read_request_buf has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 5 (9 pts) (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
HttpSession::init_body_reader (cognitive 17) pingora-core/src/protocols/http/v1/client.rs:697— HttpSession::init_body_reader has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpSession::respect_keepalive (cognitive 16) pingora-core/src/protocols/http/v1/client.rs:574— HttpSession::respect_keepalive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ClassTooLong: HttpCache pingora-cache/src/lib.rs:71— ClassTooLong — 882 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 78 methods, 2 blocks, lines 71-2017. The bar is 400 significant lines; this is 482 over it, 2.21× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: HttpSession pingora-core/src/protocols/http/v1/server.rs:80— ClassTooLong — 840 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 96 methods, 2 blocks, lines 80-1782. The bar is 400 significant lines; this is 440 over it, 2.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: HttpSession pingora-core/src/protocols/http/subrequest/server.rs:100— ClassTooLong — 598 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 68 methods, 2 blocks, lines 100-1208. The bar is 400 significant lines; this is 198 over it, 1.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: BodyReader pingora-core/src/protocols/http/v1/body.rs:147— ClassTooLong — 544 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 31 methods, 2 blocks, lines 147-1075. The bar is 400 significant lines; this is 144 over it, 1.36× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: HttpProxy pingora-proxy/src/lib.rs:189— ClassTooLong — 529 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 44 methods, 6 blocks, lines 189-1893. The bar is 400 significant lines; this is 129 over it, 1.32× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Session pingora-core/src/protocols/http/server.rs:56— ClassTooLong — 495 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 87 methods, 3 blocks, lines 56-1072. The bar is 400 significant lines; this is 95 over it, 1.24× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: HttpSession pingora-core/src/protocols/http/v1/client.rs:39— ClassTooLong — 471 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 51 methods, 3 blocks, lines 39-954. The bar is 400 significant lines; this is 71 over it, 1.18× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: Server pingora-core/src/server/mod.rs:212— ClassTooLong — 418 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 18 methods, 2 blocks, lines 212-973. The bar is 400 significant lines; this is 18 over it, 1.05× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: BodyWriter pingora-core/src/protocols/http/v1/body.rs:1269— ClassTooLong — 410 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 27 methods, 3 blocks, lines 1269-2045. The bar is 400 significant lines; this is 10 over it, 1.03× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Off the main sequence: TinyUFO — TinyUFO: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: pingora-boringssl — pingora-boringssl: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: pingora-http-parser — pingora-http-parser: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
Off the main sequence: pingora-ketama — pingora-ketama: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: pingora-runtime — pingora-runtime: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
Off the main sequence: pingora-lru — pingora-lru: abstractness 0.05, instability 0.00, distance 0.95 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: pingora-timeout — pingora-timeout: abstractness 0.10, instability 0.00, distance 0.90 — zone of pain — concrete and depended on by 5 project(s), so it's rigid to change.
Duplicated block (11 lines × 2) pingora-core/src/protocols/http/v1/body.rs:462— pingora-core/src/protocols/http/v1/body.rs:462-472 | pingora-core/src/protocols/http/v1/body.rs:500-510 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) pingora-core/src/protocols/http/v1/client.rs:605— pingora-core/src/protocols/http/v1/client.rs:605-615 | pingora-core/src/protocols/http/v1/server.rs:821-831 — before extracting anything, compare `pingora-core/src/protocols/http/v1/client.rs` and `pingora-core/src/protocols/http/v1/server.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) pingora-core/src/protocols/http/v1/server.rs:1733— pingora-core/src/protocols/http/v1/server.rs:1733-1743 | pingora-core/src/protocols/http/v1/server.rs:1748-1758 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) pingora-lru/src/persistence.rs:161— pingora-lru/src/persistence.rs:161-171 | pingora-lru/src/persistence.rs:243-253 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) pingora-proxy/src/proxy_custom.rs:1399— pingora-proxy/src/proxy_custom.rs:1399-1409 | pingora-proxy/src/proxy_h2.rs:1303-1313 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) pingora-core/src/protocols/http/subrequest/body.rs:270— pingora-core/src/protocols/http/subrequest/body.rs:270-280 | pingora-core/src/protocols/http/v1/body.rs:1352-1362 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
HttpSession::write_proxy_tasks (cyclomatic 40) pingora-core/src/protocols/http/subrequest/server.rs:920— HttpSession::write_proxy_tasks has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpSession::read_response (cyclomatic 23) pingora-core/src/protocols/http/v1/client.rs:254— HttpSession::read_response has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpSession::write_proxy_tasks (cyclomatic 23) pingora-core/src/protocols/http/v1/server.rs:1646— HttpSession::write_proxy_tasks has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpSession::read_request (cyclomatic 21) pingora-core/src/protocols/http/v1/server.rs:284— HttpSession::read_request has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HttpSession::prepare_response_header (cyclomatic 20) pingora-core/src/protocols/http/v1/server.rs:842— HttpSession::prepare_response_header has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_proxy::subrequest::pipe::pipe_subrequest (cognitive 71) pingora-proxy/src/subrequest/pipe.rs:202— pingora_proxy::subrequest::pipe::pipe_subrequest has cognitive complexity 71 (threshold 15). Drivers by points: if/else 19 (51 pts), boolean chains 12, loops 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_proxy::proxy_cache::range_filter::parse_range_header (cognitive 36) pingora-proxy/src/proxy_cache.rs:1220— pingora_proxy::proxy_cache::range_filter::parse_range_header has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (31 pts), match/switch 2 (3 pts), loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_proxy::proxy_h2::pipe_up_to_down_response (cognitive 35) pingora-proxy/src/proxy_h2.rs:1205— pingora_proxy::proxy_h2::pipe_up_to_down_response has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 6 (10 pts), boolean chains 5, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_proxy::proxy_custom::read_custom_response (cognitive 32) pingora-proxy/src/proxy_custom.rs:1322— pingora_proxy::proxy_custom::read_custom_response has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 4 (7 pts), boolean chains 4, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_proxy::proxy_h1::send_body_to1 (cognitive 28) pingora-proxy/src/proxy_h1.rs:1138— pingora_proxy::proxy_h1::send_body_to1 has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 6 (18 pts), if/else 6 (10 pts) (nesting depth added 16). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Duplicated block (12 lines × 2) pingora-cache/src/lib.rs:613— pingora-cache/src/lib.rs:613-624 | pingora-cache/src/lib.rs:672-683 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) pingora-core/src/connectors/l4.rs:178— pingora-core/src/connectors/l4.rs:178-189 | pingora-core/src/connectors/l4.rs:206-217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) pingora-core/src/listeners/tls/boringssl_openssl/mod.rs:187— pingora-core/src/listeners/tls/boringssl_openssl/mod.rs:187-198 | pingora-core/src/listeners/tls/rustls/mod.rs:253-264 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (12 lines × 2) pingora-proxy/src/proxy_custom.rs:1419— pingora-proxy/src/proxy_custom.rs:1419-1430 | pingora-proxy/src/proxy_h2.rs:1349-1360 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 2) pingora-core/src/protocols/http/v1/client.rs:165— pingora-core/src/protocols/http/v1/client.rs:165-176 | pingora-core/src/protocols/http/v1/server.rs:979-990 — before extracting anything, compare `pingora-core/src/protocols/http/v1/client.rs` and `pingora-core/src/protocols/http/v1/server.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) pingora-core/src/protocols/http/subrequest/server.rs:1024— pingora-core/src/protocols/http/subrequest/server.rs:1024-1033 | pingora-core/src/protocols/http/subrequest/server.rs:1169-1178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) pingora-core/src/utils/tls/rustls.rs:198— pingora-core/src/utils/tls/rustls.rs:198-207 | pingora-core/src/utils/tls/s2n.rs:201-210 — before extracting anything, compare `pingora-core/src/utils/tls/rustls.rs` and `pingora-core/src/utils/tls/s2n.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) pingora-proxy/src/proxy_h1.rs:669— pingora-proxy/src/proxy_h1.rs:669-678 | pingora-proxy/src/proxy_h2.rs:733-742 — before extracting anything, compare `pingora-proxy/src/proxy_h1.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 387 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) pingora-core/src/protocols/http/subrequest/server.rs:776— pingora-core/src/protocols/http/subrequest/server.rs:776-785 | pingora-core/src/protocols/http/v1/server.rs:1502-1511 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (10 lines × 2) pingora-core/src/protocols/tls/s2n/client.rs:38— pingora-core/src/protocols/tls/s2n/client.rs:38-47 | pingora-core/src/protocols/tls/s2n/server.rs:34-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) pingora-proxy/src/lib.rs:1771— pingora-proxy/src/lib.rs:1771-1779 | pingora-proxy/src/lib.rs:1798-1806 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) pingora-cache/src/eviction/lru.rs:138— pingora-cache/src/eviction/lru.rs:138-147 | pingora-cache/src/eviction/simple_lru.rs:175-183 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) pingora-core/src/utils/tls/rustls.rs:69— pingora-core/src/utils/tls/rustls.rs:69-77 | pingora-core/src/utils/tls/s2n.rs:64-72 — before extracting anything, compare `pingora-core/src/utils/tls/rustls.rs` and `pingora-core/src/utils/tls/s2n.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) pingora-core/src/utils/tls/rustls.rs:81— pingora-core/src/utils/tls/rustls.rs:81-89 | pingora-core/src/utils/tls/s2n.rs:76-84 — before extracting anything, compare `pingora-core/src/utils/tls/rustls.rs` and `pingora-core/src/utils/tls/s2n.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) pingora-proxy/src/proxy_custom.rs:1346— pingora-proxy/src/proxy_custom.rs:1346-1354 | pingora-proxy/src/proxy_h2.rs:1244-1252 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
pingora_proxy::subrequest::pipe::pipe_subrequest (cyclomatic 36) pingora-proxy/src/subrequest/pipe.rs:202— pingora_proxy::subrequest::pipe::pipe_subrequest has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_proxy::proxy_h2::pipe_up_to_down_response (cyclomatic 23) pingora-proxy/src/proxy_h2.rs:1205— pingora_proxy::proxy_h2::pipe_up_to_down_response has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_proxy::proxy_custom::read_custom_response (cyclomatic 19) pingora-proxy/src/proxy_custom.rs:1322— pingora_proxy::proxy_custom::read_custom_response has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_proxy::proxy_cache::range_filter::parse_range_header (cyclomatic 18) pingora-proxy/src/proxy_cache.rs:1220— pingora_proxy::proxy_cache::range_filter::parse_range_header has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BodyReader::do_read_chunked_body (cognitive 50) pingora-core/src/protocols/http/v1/body.rs:487— BodyReader::do_read_chunked_body has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (49 pts), match/switch 1 (nesting depth added 33). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
BodyReader::parse_chunked_buf (cognitive 41) pingora-core/src/protocols/http/v1/body.rs:663— BodyReader::parse_chunked_buf has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (34 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 25). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
BodyReader::do_read_chunked_body_final (cognitive 31) pingora-core/src/protocols/http/v1/body.rs:810— BodyReader::do_read_chunked_body_final has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 3 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 18). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
BodyReader::validate_crlf (cognitive 21) pingora-core/src/protocols/http/v1/body.rs:1009— BodyReader::validate_crlf has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpCache::cache_lookup (cognitive 21) pingora-cache/src/lib.rs:1540— HttpCache::cache_lookup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
HttpCache::update_variance (cognitive 20) pingora-cache/src/lib.rs:1371— HttpCache::update_variance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpCache::cache_lock_wait (cognitive 20) pingora-cache/src/lib.rs:1747— HttpCache::cache_lock_wait has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 2 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HttpCache::set_miss_handler (cognitive 16) pingora-cache/src/lib.rs:1028— HttpCache::set_miss_handler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FunctionTooLong: pingora_proxy::subrequest::pipe::pipe_subrequest pingora-proxy/src/subrequest/pipe.rs:202— FunctionTooLong — pingora_proxy::subrequest::pipe::pipe_subrequest runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: pingora_core::connectors::l4::connect pingora-core/src/connectors/l4.rs:108— FunctionTooLong — pingora_core::connectors::l4::connect runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: pingora_load_balancing::run_selector_rebuilds pingora-load-balancing/src/lib.rs:1489— FunctionTooLong — pingora_load_balancing::run_selector_rebuilds runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: pingora_core::connectors::tls::rustls::connect pingora-core/src/connectors/tls/rustls/mod.rs:129— FunctionTooLong — pingora_core::connectors::tls::rustls::connect runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
Duplicated block (14 lines × 2) pingora-cache/src/cache_control.rs:131— pingora-cache/src/cache_control.rs:131-144 | pingora-cache/src/cache_control.rs:157-170 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) pingora-proxy/src/proxy_custom.rs:184— pingora-proxy/src/proxy_custom.rs:184-197 | pingora-proxy/src/proxy_h2.rs:394-407 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) pingora-proxy/src/proxy_h1.rs:1112— pingora-proxy/src/proxy_h1.rs:1112-1125 | pingora-proxy/src/subrequest/pipe.rs:467-480 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) pingora-core/src/protocols/http/v1/client.rs:556— pingora-core/src/protocols/http/v1/client.rs:556-569 | pingora-core/src/protocols/http/v1/server.rs:726-739 — before extracting anything, compare `pingora-core/src/protocols/http/v1/client.rs` and `pingora-core/src/protocols/http/v1/server.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) pingora-load-balancing/src/health_check.rs:209— pingora-load-balancing/src/health_check.rs:209-215 | pingora-load-balancing/src/health_check.rs:243-249 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) pingora-core/src/protocols/http/subrequest/body.rs:256— pingora-core/src/protocols/http/subrequest/body.rs:256-262 | pingora-core/src/protocols/http/v1/body.rs:1335-1341 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) pingora-core/src/protocols/http/subrequest/server.rs:437— pingora-core/src/protocols/http/subrequest/server.rs:437-443 | pingora-core/src/protocols/http/v1/server.rs:699-705 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) pingora-core/src/utils/tls/boringssl_openssl.rs:107— pingora-core/src/utils/tls/boringssl_openssl.rs:107-113 | pingora-core/src/utils/tls/rustls.rs:211-217 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
pingora_core::connectors::tls::rustls::connect (cyclomatic 21) pingora-core/src/connectors/tls/rustls/mod.rs:129— pingora_core::connectors::tls::rustls::connect has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_core::connectors::l4::connect (cyclomatic 19) pingora-core/src/connectors/l4.rs:108— pingora_core::connectors::l4::connect has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_core::connectors::tls::boringssl_openssl::connect (cyclomatic 18) pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:148— pingora_core::connectors::tls::boringssl_openssl::connect has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
TooManyFields: ServerConf pingora-core/src/server/configuration/mod.rs:48— TooManyFields — 36 stored fields beside 11 methods. The bar is 30 stored fields; this is 6 over it, 1.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: PeerOptions pingora-core/src/upstreams/peer.rs:499— TooManyFields — 33 stored fields beside 2 methods. The bar is 30 stored fields; this is 3 over it, 1.10× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: HttpSession pingora-core/src/protocols/http/v1/server.rs:80— TooManyFields — 32 stored fields beside 96 methods. The bar is 30 stored fields; this is 2 over it, 1.07× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
Duplicated block (17 lines × 2) pingora-core/src/server/mod.rs:265— pingora-core/src/server/mod.rs:265-281 | pingora-core/src/server/mod.rs:348-364 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) pingora-proxy/src/proxy_custom.rs:1087— pingora-proxy/src/proxy_custom.rs:1087-1103 | pingora-proxy/src/proxy_h2.rs:1029-1045 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) pingora-proxy/src/proxy_h1.rs:703— pingora-proxy/src/proxy_h1.rs:703-719 | pingora-proxy/src/proxy_h2.rs:761-777 — before extracting anything, compare `pingora-proxy/src/proxy_h1.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 387 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) pingora-core/src/protocols/http/subrequest/body.rs:118— pingora-core/src/protocols/http/subrequest/body.rs:118-132 | pingora-core/src/protocols/http/subrequest/body.rs:178-192 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) pingora-proxy/src/lib.rs:612— pingora-proxy/src/lib.rs:612-626 | pingora-proxy/src/lib.rs:1642-1656 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) pingora-proxy/src/proxy_custom.rs:592— pingora-proxy/src/proxy_custom.rs:592-606 | pingora-proxy/src/proxy_h2.rs:573-587 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) pingora-proxy/src/proxy_custom.rs:793— pingora-proxy/src/proxy_custom.rs:793-801 | pingora-proxy/src/proxy_h1.rs:711-719 | pingora-proxy/src/proxy_h2.rs:769-777 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) pingora-core/src/protocols/http/subrequest/server.rs:316— pingora-core/src/protocols/http/subrequest/server.rs:316-324 | pingora-core/src/protocols/http/v1/server.rs:620-628 | pingora-core/src/protocols/http/v2/server.rs:562-570 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 3) pingora-core/src/protocols/http/subrequest/server.rs:614— pingora-core/src/protocols/http/subrequest/server.rs:614-622 | pingora-core/src/protocols/http/v1/server.rs:1194-1202 | pingora-core/src/protocols/http/v2/server.rs:902-910 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (5 lines × 2) pingora-core/src/protocols/http/v1/body.rs:1586— pingora-core/src/protocols/http/v1/body.rs:1586-1590 | pingora-core/src/protocols/http/v1/header.rs:214-218 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) pingora-core/src/protocols/tls/boringssl_openssl/stream.rs:68— pingora-core/src/protocols/tls/boringssl_openssl/stream.rs:68-72 | pingora-core/src/protocols/tls/boringssl_openssl/stream.rs:79-83 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) pingora-core/src/protocols/tls/mod.rs:181— pingora-core/src/protocols/tls/mod.rs:181-185 | pingora-core/src/protocols/tls/mod.rs:191-195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) pingora-core/src/protocols/tls/boringssl_openssl/server.rs:86— pingora-core/src/protocols/tls/boringssl_openssl/server.rs:86-93 | pingora-core/src/protocols/tls/rustls/server.rs:100-107 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) pingora-core/src/utils/tls/rustls.rs:49— pingora-core/src/utils/tls/rustls.rs:49-56 | pingora-core/src/utils/tls/s2n.rs:44-51 — before extracting anything, compare `pingora-core/src/utils/tls/rustls.rs` and `pingora-core/src/utils/tls/s2n.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) pingora-core/src/protocols/http/compression/zstd.rs:65— pingora-core/src/protocols/http/compression/zstd.rs:65-72 | pingora-core/src/protocols/http/compression/zstd.rs:138-145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–16 lines × 2) pingora-core/src/protocols/http/subrequest/server.rs:838— pingora-core/src/protocols/http/subrequest/server.rs:838-852 | pingora-core/src/protocols/http/v1/server.rs:1581-1596 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (15–16 lines × 2) pingora-proxy/src/proxy_custom.rs:736— pingora-proxy/src/proxy_custom.rs:736-750 | pingora-proxy/src/proxy_h1.rs:658-673 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 3) pingora-core/src/protocols/http/subrequest/server.rs:807— pingora-core/src/protocols/http/subrequest/server.rs:807-820 | pingora-core/src/protocols/http/subrequest/server.rs:845-859 | pingora-core/src/protocols/http/v1/server.rs:1537-1550 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (14–15 lines × 3) pingora-proxy/src/proxy_custom.rs:1191— pingora-proxy/src/proxy_custom.rs:1191-1204 | pingora-proxy/src/proxy_h1.rs:1066-1080 | pingora-proxy/src/proxy_h2.rs:1115-1129 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) pingora-core/src/utils/tls/boringssl_openssl.rs:127— pingora-core/src/utils/tls/boringssl_openssl.rs:127-134 | pingora-core/src/utils/tls/rustls.rs:197-204 | pingora-core/src/utils/tls/s2n.rs:200-207 — before extracting anything, compare `pingora-core/src/utils/tls/rustls.rs` and `pingora-core/src/utils/tls/s2n.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) pingora-core/src/listeners/tls/boringssl_openssl/mod.rs:121— pingora-core/src/listeners/tls/boringssl_openssl/mod.rs:121-128 | pingora-core/src/listeners/tls/rustls/mod.rs:170-177 | pingora-core/src/listeners/tls/s2n/mod.rs:171-178 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Low cohesion: RawStreamWrapper (LCOM4 6) pingora-core/src/protocols/l4/stream.rs:160— RawStreamWrapper's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: HttpHealthCheck (LCOM4 4) pingora-load-balancing/src/health_check.rs:157— HttpHealthCheck's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Server::run (cyclomatic 20) pingora-core/src/server/mod.rs:688— Server::run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HealthCheckService::run (cyclomatic 19) pingora-load-balancing/src/background.rs:388— HealthCheckService::run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ServeFromCache::next_http_task (cyclomatic 19) pingora-proxy/src/proxy_cache.rs:2629— ServeFromCache::next_http_task has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pingora_http::authority::raw_target_authority (cyclomatic 18) pingora-http/src/authority.rs:58— pingora_http::authority::raw_target_authority has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RTCache::get (cyclomatic 16) pingora-memory-cache/src/read_through.rs:150— RTCache::get has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
RTCache::get (cognitive 38) pingora-memory-cache/src/read_through.rs:150— RTCache::get has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (23 pts), match/switch 6 (15 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HealthCheckService::run (cognitive 34) pingora-load-balancing/src/background.rs:388— HealthCheckService::run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 4 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_load_balancing::run_selector_rebuilds (cognitive 34) pingora-load-balancing/src/lib.rs:1489— pingora_load_balancing::run_selector_rebuilds has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (25 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Service::run_endpoint (cognitive 32) pingora-core/src/services/listening.rs:244— Service::run_endpoint has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (17 pts), match/switch 5 (14 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
LoadBalancerGroup::run (cognitive 29) pingora-load-balancing/src/background.rs:282— LoadBalancerGroup::run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 4 (10 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ServeFromCache::next_http_task (cognitive 28) pingora-proxy/src/proxy_cache.rs:2629— ServeFromCache::next_http_task has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 13). Of this number, 26 points are the body's own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CustomMessageForwarder::proxy (cognitive 28) pingora-proxy/src/proxy_custom.rs:1462— CustomMessageForwarder::proxy has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 5 (11 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_http::authority::raw_target_authority (cognitive 26) pingora-http/src/authority.rs:58— pingora_http::authority::raw_target_authority has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Server::run (cognitive 25) pingora-core/src/server/mod.rs:688— Server::run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 5 (7 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CachePutCtx::do_cache_put (cognitive 24) pingora-cache/src/put.rs:181— CachePutCtx::do_cache_put has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (18 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ResponseCompressionCtx::response_header_filter (cognitive 22) pingora-core/src/protocols/http/compression/mod.rs:312— ResponseCompressionCtx::response_header_filter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
HealthRegistry::run_health_check (cognitive 22) pingora-load-balancing/src/lib.rs:459— HealthRegistry::run_health_check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (6 pts) (nesting depth added 10). Of this number, 18 points are the body's own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RangeBodyFilter::filter_multi_range_body (cognitive 22) pingora-proxy/src/proxy_cache.rs:2176— RangeBodyFilter::filter_multi_range_body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
BodyWriter::poll_write_content_length_body_task (cognitive 21) pingora-core/src/protocols/http/v1/body.rs:1778— BodyWriter::poll_write_content_length_body_task has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Lru::evict_to_limit_with_rng (cognitive 21) pingora-lru/src/lib.rs:542— Lru::evict_to_limit_with_rng has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Session::downstream_response_task_filter (cognitive 20) pingora-proxy/src/lib.rs:962— Session::downstream_response_task_filter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
LoadBalancer::run (cognitive 19) pingora-load-balancing/src/background.rs:199— LoadBalancer::run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TimerManager::clock_thread (cognitive 18) pingora-timeout/src/timer.rs:130— TimerManager::clock_thread has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Connector::get_http_session (cognitive 17) pingora-core/src/connectors/http/mod.rs:65— Connector::get_http_session has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
pingora_lru::async_lru::eviction_worker (cognitive 17) pingora-lru/src/async_lru.rs:1020— pingora_lru::async_lru::eviction_worker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PeerOptions::fmt (cognitive 16) pingora-core/src/upstreams/peer.rs:624— PeerOptions::fmt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
FiFoQueues::admit (cognitive 16) tinyufo/src/lib.rs:149— FiFoQueues::admit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). Of this number, 13 points are the body's own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication· Near-duplicate member family (3 members, 151 shared lines) · ×1
Near-duplicate member family (3 members, 151 shared lines) pingora-proxy/src/proxy_custom.rs:544— pingora-proxy/src/proxy_custom.rs:544-1020 | pingora-proxy/src/proxy_h1.rs:472-903 | pingora-proxy/src/proxy_h2.rs:529-957 — These 3 members are variants of one another: a block of 151 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication· Near-duplicate member family (3 members, 67 shared lines) · ×1
Near-duplicate member family (3 members, 67 shared lines) pingora-proxy/src/proxy_custom.rs:1034— pingora-proxy/src/proxy_custom.rs:1034-1204 | pingora-proxy/src/proxy_h1.rs:917-1080 | pingora-proxy/src/proxy_h2.rs:971-1129 — These 3 members are variants of one another: a block of 67 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (4 members, 50+ identical tokens) pingora-core/src/protocols/http/subrequest/server.rs:805— pingora-core/src/protocols/http/subrequest/server.rs:805-833 | pingora-core/src/protocols/http/subrequest/server.rs:836-881 | pingora-core/src/protocols/http/v1/server.rs:1535-1560 | pingora-core/src/protocols/http/v1/server.rs:1580-1623 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Duplicated block (110–117 lines × 3) pingora-proxy/src/proxy_custom.rs:807— pingora-proxy/src/proxy_custom.rs:807-916 | pingora-proxy/src/proxy_h1.rs:726-842 | pingora-proxy/src/proxy_h2.rs:784-896 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (43 lines × 2) pingora-lru/src/persistence.rs:183— pingora-lru/src/persistence.rs:183-225 | pingora-lru/src/persistence.rs:265-307 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (38–41 lines × 3) pingora-proxy/src/proxy_custom.rs:1045— pingora-proxy/src/proxy_custom.rs:1045-1082 | pingora-proxy/src/proxy_h1.rs:937-977 | pingora-proxy/src/proxy_h2.rs:985-1025 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (38–39 lines × 2) pingora-proxy/src/proxy_custom.rs:1160— pingora-proxy/src/proxy_custom.rs:1160-1197 | pingora-proxy/src/proxy_h2.rs:1084-1122 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (38 lines × 3) pingora-core/src/protocols/http/v1/body.rs:1838— pingora-core/src/protocols/http/v1/body.rs:1838-1875 | pingora-core/src/protocols/http/v1/body.rs:1932-1969 | pingora-core/src/protocols/http/v1/body.rs:2007-2044 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (18–32 lines × 2) pingora-proxy/src/proxy_h1.rs:519— pingora-proxy/src/proxy_h1.rs:519-550 | pingora-proxy/src/proxy_h2.rs:578-595 — before extracting anything, compare `pingora-proxy/src/proxy_h1.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 387 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (28 lines × 3) pingora-proxy/src/proxy_custom.rs:647— pingora-proxy/src/proxy_custom.rs:647-674 | pingora-proxy/src/proxy_h1.rs:580-607 | pingora-proxy/src/proxy_h2.rs:617-644 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24–27 lines × 2) pingora-proxy/src/proxy_custom.rs:764— pingora-proxy/src/proxy_custom.rs:764-787 | pingora-proxy/src/proxy_h1.rs:684-710 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (27 lines × 2) pingora-proxy/src/proxy_h1.rs:474— pingora-proxy/src/proxy_h1.rs:474-500 | pingora-proxy/src/proxy_h2.rs:531-557 — before extracting anything, compare `pingora-proxy/src/proxy_h1.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 387 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23–24 lines × 4) pingora-proxy/src/proxy_custom.rs:655— pingora-proxy/src/proxy_custom.rs:655-678 | pingora-proxy/src/proxy_h1.rs:588-611 | pingora-proxy/src/proxy_h2.rs:625-648 | pingora-proxy/src/proxy_h2.rs:676-698 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) pingora-proxy/src/proxy_custom.rs:502— pingora-proxy/src/proxy_custom.rs:502-524 | pingora-proxy/src/proxy_h2.rs:487-509 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) pingora-http/src/lib.rs:289— pingora-http/src/lib.rs:289-310 | pingora-http/src/lib.rs:643-664 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–21 lines × 2) pingora-proxy/src/proxy_h2.rs:716— pingora-proxy/src/proxy_h2.rs:716-734 | pingora-proxy/src/proxy_h2.rs:742-762 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) pingora-proxy/src/proxy_custom.rs:1111— pingora-proxy/src/proxy_custom.rs:1111-1129 | pingora-proxy/src/proxy_h2.rs:1048-1066 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17–19 lines × 2) pingora-proxy/src/proxy_h1.rs:558— pingora-proxy/src/proxy_h1.rs:558-576 | pingora-proxy/src/proxy_h2.rs:597-613 — before extracting anything, compare `pingora-proxy/src/proxy_h1.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 387 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) pingora-proxy/src/proxy_custom.rs:226— pingora-proxy/src/proxy_custom.rs:226-243 | pingora-proxy/src/proxy_h2.rs:184-201 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h2.rs` as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 459 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17–18 lines × 2) pingora-proxy/src/proxy_custom.rs:1138— pingora-proxy/src/proxy_custom.rs:1138-1154 | pingora-proxy/src/proxy_h1.rs:1041-1058 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) pingora-proxy/src/proxy_custom.rs:474— pingora-proxy/src/proxy_custom.rs:474-490 | pingora-proxy/src/proxy_h1.rs:402-418 | pingora-proxy/src/proxy_h2.rs:459-475 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–16 lines × 3) pingora-core/src/protocols/http/v1/body.rs:1812— pingora-core/src/protocols/http/v1/body.rs:1812-1825 | pingora-core/src/protocols/http/v1/body.rs:1909-1924 | pingora-core/src/protocols/http/v1/body.rs:1986-1999 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15–16 lines × 3) pingora-proxy/src/proxy_custom.rs:1122— pingora-proxy/src/proxy_custom.rs:1122-1136 | pingora-proxy/src/proxy_h1.rs:1024-1039 | pingora-proxy/src/proxy_h2.rs:1059-1073 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) pingora-proxy/src/proxy_custom.rs:226— pingora-proxy/src/proxy_custom.rs:226-240 | pingora-proxy/src/proxy_h1.rs:74-88 | pingora-proxy/src/proxy_h2.rs:184-198 — before extracting anything, compare `pingora-proxy/src/proxy_custom.rs` and `pingora-proxy/src/proxy_h1.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 343 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 2) pingora-core/src/protocols/http/compression/brotli.rs:45— pingora-core/src/protocols/http/compression/brotli.rs:45-59 | pingora-core/src/protocols/http/compression/gzip.rs:43-56 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14 lines × 3) pingora-core/src/protocols/l4/stream.rs:651— pingora-core/src/protocols/l4/stream.rs:651-664 | pingora-core/src/protocols/l4/stream.rs:674-687 | pingora-core/src/protocols/l4/stream.rs:698-711 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:250— pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:250-260 | pingora-core/src/connectors/tls/rustls/mod.rs:284-294 | pingora-core/src/connectors/tls/s2n/mod.rs:161-171 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (7 lines × 3) pingora-core/src/protocols/http/subrequest/server.rs:495— pingora-core/src/protocols/http/subrequest/server.rs:495-501 | pingora-core/src/protocols/http/v1/client.rs:183-189 | pingora-core/src/protocols/http/v1/server.rs:997-1003 — `pingora-core/src/protocols/http/subrequest/server.rs` and `pingora-core/src/protocols/http/v1/server.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (5–6 lines × 2) pingora-core/src/protocols/http/v1/client.rs:491— pingora-core/src/protocols/http/v1/client.rs:491-495 | pingora-core/src/protocols/http/v1/server.rs:612-617 — before extracting anything, compare `pingora-core/src/protocols/http/v1/client.rs` and `pingora-core/src/protocols/http/v1/server.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Obsolete TLS/SSL protocol version enabled pingora-core/src/connectors/tls/boringssl_openssl/mod.rs:107— `set_min_proto_version(SslVersion::TLS1)` explicitly admits a protocol version that is broken (SSL 3.0) or withdrawn (TLS 1.0/1.1, RFC 8996). Offering an obsolete version does not merely permit it — it is what a downgrade attack negotiates, so the weakest version on the list is the one that decides the connection's strength. Remove the pin: reqwest, native-tls and openssl negotiate the highest version both sides support, and rustls implements only TLS 1.2 and 1.3 — so naming no older version is the strongest setting. Where a floor must be named, use `min_tls_version(tls::Version::TLS_1_2)` / `set_min_proto_version(Some(SslVersion::TLS1_2))`.
Orphaned file pingora-core/src/connectors/tls/s2n/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-memory-cache/src/lib.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/modules/http/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/http/compression/zstd.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-timeout/src/timer.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-load-balancing/src/selection/weighted.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/tls/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/utils/tls/s2n.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-load-balancing/src/selection/consistent.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/http/compression/brotli.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/tls/noop_tls/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file tinyufo/src/buckets.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/listeners/connection_filter.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/l4/virt.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/windows.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/l4/listener.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-header-serde/src/dict.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-limits/src/inflight.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/utils/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/modules/http/compression.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/connectors/tls/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/tls/s2n/mod.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/http/date.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Orphaned file pingora-core/src/protocols/tls/digest.rs:1— No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:861— `!downstream_state.is_errored() && session.has_pending_downstream_tasks() && next_upstream_task.is_none()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_cache.rs:1197— `!no_body && !header.status.is_informational() && header.headers.get(http::header::CONTENT_LENGTH).is_none()` appears character-identically in 3 files — pingora-proxy/src/proxy_cache.rs, pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-core/src/protocols/http/subrequest/server.rs:368— `!resp.status.is_informational() || self.upgraded` appears character-identically in 2 files — pingora-core/src/protocols/http/subrequest/server.rs, pingora-core/src/protocols/http/v1/server.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:798— `!response_state.cached_done() && !downstream_state.is_errored() && serve_from_cache.is_on() && !session.has_pending_downstream_tasks()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:907— `!response_state.upstream_delivery_done() && serve_from_cache.is_on() && next_upstream_task.is_none()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:772— `!upgraded && session.was_upgraded() && downstream_state.can_poll()` appears character-identically in 2 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:650— `(!serve_from_cache.is_on() && support_cache_partial_read) || serve_from_cache.is_miss()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:686— `body.is_none() && session.was_upgraded()` appears character-identically in 2 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-core/src/protocols/http/v1/client.rs:342— `contains_content_length && contains_transfer_encoding` appears character-identically in 2 files — pingora-core/src/protocols/http/v1/client.rs, pingora-core/src/protocols/http/v1/server.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_h1.rs:844— `downstream_custom_read && !downstream_state.is_errored()` appears character-identically in 2 files — pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_h1.rs:865— `downstream_custom_write && !session.downstream_abandoned_during_cache_fill()` appears character-identically in 2 files — pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_h1.rs:639— `downstream_state.is_reading() && send_permit.is_err()` appears character-identically in 2 files — pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/subrequest/pipe.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-core/src/protocols/http/subrequest/server.rs:832— `end_stream || self.body_writer.finished()` appears character-identically in 2 files — pingora-core/src/protocols/http/subrequest/server.rs, pingora-core/src/protocols/http/v1/server.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-core/src/protocols/http/subrequest/server.rs:377— `header.status == 101 || !header.status.is_informational()` appears character-identically in 2 files — pingora-core/src/protocols/http/subrequest/server.rs, pingora-core/src/protocols/http/v1/server.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-core/src/protocols/http/subrequest/server.rs:1216— `header.status.is_informational() && header.status != StatusCode::SWITCHING_PROTOCOLS` appears character-identically in 3 files — pingora-core/src/protocols/http/subrequest/server.rs, pingora-core/src/protocols/http/v1/server.rs, pingora-proxy/src/proxy_cache.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:842— `response_state.cached_done() && session.cache.enabled()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-core/src/protocols/http/subrequest/server.rs:504— `self.upgraded && !self.body_reader.body_done()` appears character-identically in 2 files — pingora-core/src/protocols/http/subrequest/server.rs, pingora-core/src/protocols/http/v1/server.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:1396— `send_result.is_err() && PipeState::is_downstream_complete(pipe_state.load(Ordering::Acquire))` appears character-identically in 2 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:1045— `session.cache.enabled() || session.cache.bypassing()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate pingora-proxy/src/proxy_custom.rs:1195— `track_max_cache_size && task.is_end() && !matches!(task, HttpTask::Failed(_)) && !session.cache.exceeded_max_file_size()` appears character-identically in 3 files — pingora-proxy/src/proxy_custom.rs, pingora-proxy/src/proxy_h1.rs, pingora-proxy/src/proxy_h2.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: pingora-runtime/src/lib.rs, pingora-foundations/src/lib.rs, pingora-core/src/protocols/http/v1/mod.rs, pingora-test-utils/src/http_origin.rs, pingora-cache/src/admission.rs. Pair on, review, or document these before any departure.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (10 single-owned of 155 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 155 of the 182 production source files in this repository met that bar). They are anonymized user #2 (3 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: pingora-pool/src/lru.rs, pingora-load-balancing/src/discovery.rs, pingora-core/src/protocols/http/body_buffer.rs, pingora-limits/src/estimator.rs, pingora-core/src/utils/tls/boringssl_openssl.rs.
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 1 of 23 project(s) overshoot their size bounds, lowering Project Cohesion to 9.1/10. The most over is `pingora-core` (44270 LoC, 216 module-visible types across 34 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 25 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: pingora-core/src/connectors/tls/s2n/mod.rs, pingora-memory-cache/src/lib.rs, pingora-core/src/protocols/mod.rs, pingora-timeout/src/timer.rs, pingora-load-balancing/src/selection/weighted.rs, pingora-core/src/protocols/tls/mod.rs, pingora-core/src/utils/tls/s2n.rs, pingora-core/src/modules/http/mod.rs (and 17 more) (27 orphaned of 155 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 155 of the 182 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
Logging is not universal — Only 10/12 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `pingora-header-serde`, `pingora-test-utils`.
No security response headers detected pingora-ketama/test-data/nginx.conf:19— None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `nginx.conf` is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.)
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
none (dependency manifest found, not scanned for vulnerabilities here)
—
none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Cargo manifest — not scanned yet).
0
—
Run 01a17602-8674-770c-8554-c47f040a6ffc · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 30 · Warnings: 562 · Recommendations: 55 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 26-10-2026 @ 02:20 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.