Repository Analysis

libnyanpasu/clash-nyanpasu

Clash Nyanpasu~(∠・ω< )⌒☆​

1.9 Likely human-written View on GitHub
1.9
Adjusted Score
1.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
13,007
Stars
Rust
Language
96,567
Lines of Code
564
Files
129
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 30LOW 99

Pattern Findings

129 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block79 hits · 70 pts
SeverityFileLineSnippet
LOWfrontend/interface/src/openapi/geoip/ipsb.ts21// config,
LOWfrontend/nyanpasu/src/components/ui/text-marquee.tsx141 // isHoveredRef.current = true
LOWfrontend/nyanpasu/src/components/ui/text-marquee.tsx161 // )
LOW…)/main/settings/nyanpasu/_modules/tray-icon-config.tsx181 // {/* <SettingsCardContent className="gap-4">
LOW.serena/project.yml1# the name by which the project can be referenced within Serena
LOW.serena/project.yml21# - For C, use cpp
LOW.serena/project.yml41# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
LOW.serena/project.yml61# Paths can be absolute or relative to the project root.
LOW.serena/project.yml81# list of tool names to exclude.
LOW.serena/project.yml101# for this project.
LOW.serena/project.yml121# list of regex patterns which, when matched, mark a memory entry as read‑only.
LOWbackend/Cross.toml1[target.aarch64-unknown-linux-gnu]
LOWbackend/tauri-plugin-deep-link/cliff.toml61tag_pattern = "v[0-9]*"
LOWbackend/tauri-plugin-deep-link/src/lib.rs41/// - **macOS**: This function can only be called once on macOS.
LOWbackend/nyanpasu-core/src/state/ack.rs121 /// Any required ACK returned a failure status (rejected, failed, or timed out).
LOW…pasu-core/src/state/tests/cascading_state_migration.rs1//! Integration tests proving multi-level cascading state with ACK model.
LOWbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs1//! Tests for MVCC snapshot mechanism (ArcSwap-based lock-free reads).
LOWbackend/tauri/tests/sample_clash_config.yaml101
LOWbackend/tauri/tests/sample_clash_config.yaml161 # - "8000::/1"
LOWbackend/tauri/tests/sample_clash_config.yaml181 # - 10
LOWbackend/tauri/tests/sample_clash_config.yaml201 TLS:
LOWbackend/tauri/tests/sample_clash_config.yaml261 # 配置不使用 fake-ip 的域名
LOWbackend/tauri/tests/sample_clash_config.yaml301 # fallback:
LOWbackend/tauri/tests/sample_clash_config.yaml321 # - gfw
LOWbackend/tauri/tests/sample_clash_config.yaml361 # username: username
LOWbackend/tauri/tests/sample_clash_config.yaml381 # Shadowsocks
LOWbackend/tauri/tests/sample_clash_config.yaml541 # ech-opts:
LOWbackend/tauri/tests/sample_clash_config.yaml701 # v2ray-http-upgrade: false
LOWbackend/tauri/tests/sample_clash_config.yaml781 down: '200 Mbps' # 若不写单位,默认为 Mbps
LOWbackend/tauri/tests/sample_clash_config.yaml801 # ports: 1000,2000-3000,5000 # port 不可省略
LOWbackend/tauri/tests/sample_clash_config.yaml841 # dialer-proxy: "ss1"
LOWbackend/tauri/tests/sample_clash_config.yaml861 # h2: 67543
LOWbackend/tauri/tests/sample_clash_config.yaml881 token: TOKEN
LOWbackend/tauri/tests/sample_clash_config.yaml901 # # 如果config为空则通过dns解析,不为空则通过该值指定,格式为经过base64编码的ech参数(dig +short TYPE65 tls-ech.dev)
LOWbackend/tauri/tests/sample_clash_config.yaml961 # idle-session-check-interval: 30 # seconds
LOWbackend/tauri/tests/sample_clash_config.yaml1061 health-check:
LOWbackend/tauri/tests/sample_clash_config.yaml1181listeners:
LOWbackend/tauri/tests/sample_clash_config.yaml1201 # -----END ECH KEYS-----
LOWbackend/tauri/tests/sample_clash_config.yaml1221 # -----END ECH KEYS-----
LOWbackend/tauri/tests/sample_clash_config.yaml1261 port: 10813 # 支持使用ports格式,例如200,302 or 200,204,401-429,501-503
LOWbackend/tauri/tests/sample_clash_config.yaml1281 # rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
LOWbackend/tauri/tests/sample_clash_config.yaml1301 # dest: test.com:443
LOWbackend/tauri/tests/sample_clash_config.yaml1321 listen: 0.0.0.0
LOWbackend/tauri/tests/sample_clash_config.yaml1361 - username: 1
LOWbackend/tauri/tests/sample_clash_config.yaml1421 - name: trojan-in-1
LOWbackend/tauri/tests/sample_clash_config.yaml1441 # -----END ECH KEYS-----
LOWbackend/tauri/tests/sample_clash_config.yaml1461 # enabled: false
LOWbackend/tauri/tests/sample_clash_config.yaml1481 # madSJjYQIf9o1N5GXjkW4DEEeb17qMxHdwMdNnwADAABAAEAAQACAAEAAwAIdGVz
LOWbackend/tauri/tests/sample_clash_config.yaml1501 # rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
LOWbackend/tauri/tests/sample_clash_config.yaml1521 # include-uid: # UID 规则仅在 Linux 下被支持,并且需要 auto-route
LOWbackend/tauri/tests/sample_clash_config.yaml1541# shadowsocks,vmess 入口配置(传入流量将和 socks,mixed 等入口一样按照 mode 所指定的方式进行匹配处理)
LOWbackend/tauri/src/core/tasks/executor.rs1use std::fmt::{self, Formatter};
LOWbackend/tauri/src/core/tray/mod.rs61 #[cfg(target_os = "linux")]
LOWbackend/tauri/src/core/tray/mod.rs81// );
LOWbackend/tauri/src/core/tray/mod.rs101// item.id(),
LOWbackend/tauri/src/core/tray/mod.rs121// tracing::debug!(
LOWbackend/tauri/src/core/tray/mod.rs141// }
LOWbackend/tauri/src/core/tray/proxies.rs361 // tracing::debug!("update selected proxies: {:?}", action);
LOWbackend/tauri/src/core/tray/proxies.rs381 // Some(item) => match item.kind() {
LOWbackend/tauri/src/core/tray/proxies.rs401 // if item.is_checked().is_ok_and(|x| !x) {
19 more matches not shown…
Decorative Section Separators23 hits · 69 pts
SeverityFileLineSnippet
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs26// ─── State types ───────────────────────────────────────────────
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs143// ═══════════════════════════════════════════════════════════════
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs145// ═══════════════════════════════════════════════════════════════
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs163// ═══════════════════════════════════════════════════════════════
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs165// ═══════════════════════════════════════════════════════════════
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs191// ═══════════════════════════════════════════════════════════════
MEDIUM…pasu-core/src/state/tests/cascading_state_migration.rs193// ═══════════════════════════════════════════════════════════════
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs23// ─── Helpers ──────────────────────────────────────────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs70// ─── 5.1 Snapshot basic behavior ──────────────────────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs103// ─── 5.3 Effect failure does not update snapshot ──────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs120// ─── 5.4 Effect success updates snapshot ──────────────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs133// ─── 5.5 Multiple handles see the same snapshot ───────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs146// ─── 5.6 Concurrent fan-in: no deadlock ──────────────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs223// ─── 5.7 Concurrent fan-in eventual convergence ──────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs263// ─── 5.8 Three-source concurrent fan-in ──────────────────────
MEDIUMbackend/nyanpasu-core/src/state/tests/mvcc_snapshot.rs414// ─── 5.10 Manager snapshot_handle works ──────────────────────
MEDIUMbackend/tauri/tests/sample_clash_config.yaml641 # -------------------------
MEDIUMbackend/tauri/tests/sample_clash_config.yaml645 # -------------------------
MEDIUMbackend/tauri/tests/sample_clash_config.yaml1366 # -------------------------
MEDIUMbackend/tauri/tests/sample_clash_config.yaml1370 # -------------------------
MEDIUM.github/workflows/deps-build-linux.yaml142 # ===========================
MEDIUM.github/workflows/deps-build-linux.yaml144 # ===========================
MEDIUM.github/workflows/deps-build-linux.yaml186 # ===========================
Hyper-Verbose Identifiers16 hits · 16 pts
SeverityFileLineSnippet
LOWfrontend/nyanpasu/src/utils/monaco-css.ts20export function registerCssDataSlotCompletion(monacoInstance: Monaco): void {
LOWfrontend/nyanpasu/src/utils/custom-css-compiler.ts240function transformSelectorCandidate(
LOW…d/nyanpasu/src/components/providers/theme-provider.tsx136export function useExperimentalThemeContext() {
LOW…d/nyanpasu/src/components/providers/theme-provider.tsx148export function ExperimentalThemeProvider({ children }: PropsWithChildren) {
LOW…asu/src/components/providers/context-menu-provider.tsx137export function RegisterContextMenuTrigger({
LOW…asu/src/components/providers/context-menu-provider.tsx176export function RegisterContextMenuContent({ children }: PropsWithChildren) {
LOW…nyanpasu/src/components/primitives/animate/tooltip.tsx469function shallowEqualWithoutChildren(
LOW…s/nyanpasu/_modules/enable-builtin-enhanced-switch.tsx16export default function EnableBuiltinEnhancedSwitch() {
LOW…gs/nyanpasu/_modules/break-when-mode-change-switch.tsx16export default function BreakWhenModeChangeSwitch() {
LOW…s/nyanpasu/_modules/break-when-proxy-change-switch.tsx16export default function BreakWhenProxyChangeSwitch() {
LOW…nyanpasu/_modules/break-when-profile-change-switch.tsx16export default function BreakWhenProfileChangeSwitch() {
LOW…ettings/nyanpasu/_modules/tray-menu-close-behavior.tsx21export default function TrayMenuCloseBehaviorSelector() {
LOW…yanpasu/_modules/network-statistic-widget-selector.tsx24export default function NetworkStatisticWidgetSelector() {
LOW…anpasu/src/pages/(main)/main/proxies/_modules/hooks.ts7export function useCurrentGroupConnection(
LOWscripts/manifest.ts62function extractVersionFromAssetList(
LOWscripts/check.ts178function extractVersionFromAssetList(
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippet
MEDIUMfrontend/nyanpasu/src/components/ui/sparkline.tsx36 // the same left guard value, making the curve at x=0 seamless across transitions.
MEDIUMfrontend/nyanpasu/src/components/ui/sparkline.tsx173 // path at t=0, making the left edge transition seamless.
MEDIUMfrontend/nyanpasu/src/components/ui/sparkline.tsx227 // occupy identical visual coordinates, so the swap is seamless.
MEDIUM…/nyanpasu/src/pages/(editor)/editor/_modules/utils.tsx62 // More robust URL regex pattern
MEDIUMbackend/tauri/src/lib.rs93 // 单例检测 with robust logging
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippet
LOW…c/pages/(main)/main/dashboard/_modules/layout-adapt.ts140 // Step 1: try at clamped position (no overlap).
LOW…c/pages/(main)/main/dashboard/_modules/layout-adapt.ts146 // Step 2: find a free slot at current (w, h).
LOW…c/pages/(main)/main/dashboard/_modules/layout-adapt.ts153 // Step 3: shrink (w, h) toward (minW, minH) and retry.
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippet
MEDIUM.serena/project.yml72# Same syntax as gitignore, so you can use * and **.
LOWbackend/tauri/src/enhance/script/js.rs147 // Don't forget to insert the parsed module into the loader itself, since the root module
Self-Referential Comments1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMbackend/tauri/src/core/migration/db.rs64 "# This file is generated by the migration system, do not edit it manually.\n"