Repository Analysis

cloudflare/pingora

A library for building fast, reliable and evolvable network services.

4.3 Likely human-written View on GitHub
4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
26,744
Stars
Rust
Language
87,198
Lines of Code
284
Files
365
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 2LOW 363

Pattern Findings

365 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block356 hits · 356 pts
SeverityFileLineSnippet
LOWcliff.toml1# git-cliff ~ default configuration file
LOWpingora-lru/benches/bench_lru.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-lru/benches/bench_lru.rs21//!
LOWpingora-lru/benches/bench_lru.rs41//!
LOWpingora-lru/benches/bench_lru.rs201 );
LOWpingora-lru/benches/bench_linked_list.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-lru/src/linked_list.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-lru/src/lib.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-lru/src/lib.rs161 ///
LOWpingora-lru/src/lib.rs201 }
LOWpingora-lru/src/lib.rs221 /// O(1) per iteration in the common case. If the chosen shard is
LOWpingora-core/tests/bootstrap_as_a_service.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/tests/test_basic.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/tests/server_phase_fastshutdown.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/tests/server_phase_gracefulshutdown.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/tests/utils/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/examples/service_dependencies.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/examples/service_dependencies.rs21//! # Running the example
LOWpingora-core/examples/bootstrap_as_a_service.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/examples/bootstrap_as_a_service.rs21//! This means the calling thread blocks during socket FD acquisition and Sentry initialization.
LOWpingora-core/examples/client_cert.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/examples/client_cert.rs161 _ => None,
LOWpingora-core/src/lib.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/lib.rs21
LOWpingora-core/src/lib.rs41//! - `boringssl`: Use BoringSSL as the TLS library (FIPS compatible)
LOWpingora-core/src/lib.rs61//!
LOWpingora-core/src/lib.rs81//! // Apply the filter to a service
LOWpingora-core/src/connectors/offload.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/l4.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/mod.rs41use std::sync::Arc;
LOWpingora-core/src/connectors/mod.rs61 ///
LOWpingora-core/src/connectors/tls/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/tls/mod.rs21#[cfg(feature = "s2n")]
LOWpingora-core/src/connectors/tls/s2n/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/tls/rustls/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOW…ngora-core/src/connectors/tls/boringssl_openssl/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/http/v1.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/http/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/http/v2.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/connectors/http/v2.rs361 }
LOWpingora-core/src/connectors/http/v2.rs481 }
LOWpingora-core/src/connectors/http/v2.rs501///
LOWpingora-core/src/connectors/http/custom/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/server/bootstrap_services.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/server/bootstrap_services.rs81 #[cfg(feature = "sentry")]
LOWpingora-core/src/server/bootstrap_services.rs141 pub fn set_notify_parent_pid(&mut self, pid: u32) {
LOWpingora-core/src/server/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/server/mod.rs121
LOWpingora-core/src/server/mod.rs501 execution_phase_watch,
LOWpingora-core/src/server/mod.rs521 /// ```
LOWpingora-core/src/server/mod.rs601 /// before this function will be lost to any service logic once this function is called.
LOWpingora-core/src/server/daemon.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/server/daemon.rs101/// # Safety
LOWpingora-core/src/server/daemon.rs121/// the parent must be running as the same UID as the child by the time that signal arrives —
LOWpingora-core/src/server/daemon.rs181
LOWpingora-core/src/server/daemon.rs321/// [`ServerConf::daemon_wait_for_ready`] is `true`. `parent_pid` is the PID of the original
LOWpingora-core/src/server/configuration/mod.rs1// Copyright 2026 Cloudflare, Inc.
LOWpingora-core/src/server/configuration/mod.rs41/// Then, users can parse these key-values to pass to their code to use.
LOWpingora-core/src/server/configuration/mod.rs61 pub user: Option<String>,
296 more matches not shown…
Verbosity Indicators6 hits · 11 pts
SeverityFileLineSnippet
LOWpingora-core/src/connectors/http/mod.rs77 // Step 1: Look for reused Custom Session
LOWpingora-core/src/connectors/http/mod.rs81 // Step 2: Check reuse pool for reused H1 session
LOWpingora-core/src/connectors/http/mod.rs85 // Step 3: Try and create a new Custom session
LOWpingora-proxy/tests/test_upstream.rs3721 // Step 1: Connection 1 - Open h2 connection to h2c cache proxy (port 6154) and STALL
LOWpingora-proxy/tests/test_upstream.rs3807 // Step 1: Populate cache from H2 origin (cache miss)
LOWpingora-proxy/tests/test_upstream.rs3829 // Step 2: Request again and verify cache hit
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMpingora-core/src/lib.rs25//! It is to build robust, scalable and secure network infrastructures and services at Internet scale.
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMpingora-ketama/src/lib.rs25//! Here's a simple example of how one might use it:
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWpingora-proxy/src/lib.rs28//! # How to use