This report summarizes scanner evidence for shadowsocks/ShadowsocksX-NG. SynthScan examined 79,265 lines of code across 655 source files, recording 75 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 61 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 32 finding(s).
Which changes need focused human review? 75 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 75 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …olWorkflowIntegrationTests+SystemProxyInspection.swift | 47 | composition.control.snapshot.systemProxyInspection.differences.map(\.kind), | CODE |
| CRITICAL | …olWorkflowIntegrationTests+SystemProxyInspection.swift | 50 | composition.control.snapshot.systemProxyInspection.differences.map(\.name), | CODE |
| CRITICAL | …olWorkflowIntegrationTests+SystemProxyInspection.swift | 94 | composition.control.snapshot.systemProxyInspection.differences.map(\.kind), [.remaining]) | CODE |
| CRITICAL | …olWorkflowIntegrationTests+SystemProxyInspection.swift | 110 | composition.control.snapshot.systemProxyInspection.differences.map(\.name), ["Wi-Fi"]) | CODE |
| CRITICAL | …olWorkflowIntegrationTests+SystemProxyInspection.swift | 271 | composition.control.snapshot.systemProxyInspection.differences.map(\.kind), [.notApplied]) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ShadowsocksX-NG2/Scripts/test-external-binary-fetch.py | 41 | def test_binary_asset_is_verified_cached_and_refetched(self): | CODE |
| LOW⚡ | ShadowsocksX-NG2/Scripts/test-external-binary-fetch.py | 56 | def test_hash_mismatch_never_installs(self): | CODE |
| LOW⚡ | ShadowsocksX-NG2/Scripts/test-external-binary-fetch.py | 63 | def test_matching_hash_does_not_accept_non_macho(self): | CODE |
| LOW⚡ | ShadowsocksX-NG2/Scripts/test-external-binary-fetch.py | 72 | def test_existing_tar_manifest_still_extracts_pinned_member(self): | CODE |
| LOW | ShadowsocksX-NG2/Scripts/test-external-binary-fetch.py | 86 | def test_unknown_format_is_rejected_even_with_cached_binary(self): | CODE |
| LOW | ShadowsocksX-NG2/Scripts/test-dependency-metadata.py | 32 | def test_offline_generation_and_packaging(self): | CODE |
| LOW | ShadowsocksX-NG2/Scripts/test-dependency-metadata.py | 59 | def test_one_authoritative_fact_changes_output_and_stale_output_is_rejected(self): | CODE |
| LOW | ShadowsocksX-NG2/Scripts/test-dependency-metadata.py | 71 | def test_invalid_inputs_are_named(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-snapshot-converters.py | 32 | def test_cn_absorption_drops_narrow_entries_and_reports_only_totals(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-snapshot-converters.py | 50 | def test_gfw_shadowed_exception_counts_once_and_keeps_raw_evidence_on_stdout(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-snapshot-converters.py | 64 | def test_china_ip_build_retains_metadata_normalization_and_duplicate_counts(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-snapshot-converters.py | 75 | def test_shipped_artifacts_use_compact_schema_and_preserve_pinned_rule_counts(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 87 | def test_generated_fixtures_are_current_and_reproducible(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 99 | def test_geosite_reads_published_typed_protobuf_and_selects_category(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 108 | def test_geosite_invalid_varint_and_missing_category_fail(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 117 | def test_geo_dedup_absorption_and_invalid_domains(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 125 | def test_gfw_classifies_all_unsupported_forms_without_expanding(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 137 | def test_gfw_normalizes_deduplicates_and_keeps_broader_exception(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 144 | def test_gfw_url_prefix_without_path_converts_to_exact_domain(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 157 | def test_gfw_url_prefix_with_conditions_or_invalid_host_stays_skipped(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 177 | def test_gfw_url_prefix_root_path_converts_and_deduplicates(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 188 | def test_gfw_exact_proxy_only_shadows_same_exact_exception(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 197 | def test_gfw_suffix_proxy_shadows_exact_exception_and_reports_original(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 206 | def test_gfw_equal_and_broader_proxy_shadow_exception_in_any_order(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 214 | def test_gfw_empty_unknown_and_corrupt_payload_fail(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 226 | def test_china_normalizes_addresses_and_rejects_invalid_entries(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 231 | def test_china_empty_invalid_and_rejection_rate_guards(self): | CODE |
| LOW⚡ | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 240 | def test_count_and_scale_guards_on_actual_generators(self): | CODE |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 253 | def test_failed_cli_keeps_previous_snapshot(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ShadowsocksX-NG2/.swiftlint.yml | 1 | # 默认规则起步:只声明排除项,遇到实际痛点再调规则(见本目录 AGENTS.md)。 | COMMENT |
| LOW | ShadowsocksX-NG2/project.yml | 41 | # 目录即分层:Composition(组合根)/ Application(工作流与运行时适配)/ | COMMENT |
| LOW | …socksX-NG2/App/UI/Servers/PasswordAutofillOptOut.swift | 1 | import AppKit | COMMENT |
| LOW | …p/Application/Connectivity/ConnectivityHTTPTransport.c | 1 | #include "ConnectivityHTTPTransport.h" | COMMENT |
| LOW | …/ProxyRuntime/ProxyRuntimeController+Convergence.swift | 1 | import Foundation | COMMENT |
| LOW | …/Application/ProxyRuntime/ProxyRuntimeController.swift | 1 | import Foundation | COMMENT |
| LOW | …/App/Application/CatalogWorkflow/CatalogWorkflow.swift | 1 | import Combine | COMMENT |
| LOW | …tion/CatalogWorkflow/CatalogWorkflowDependencies.swift | 1 | import Foundation | COMMENT |
| LOW | …tion/ProxyControlWorkflow/TerminalCommandAddress.swift | 41 | struct TerminalCommandAddressPicker: Equatable, Sendable { | COMMENT |
| LOW | …cation/ProxyControlWorkflow/ProxyControlWorkflow.swift | 41 | } | COMMENT |
| LOW | …cation/ProxyControlWorkflow/ProxyControlWorkflow.swift | 161 | COMMENT | |
| LOW | ShadowsocksX-NG2/App/Presentation/StatusMenuModel.swift | 1 | import Foundation | COMMENT |
| LOW | …-NG2/Tests/SystemProxy/SystemProxyHelperLogTests.swift | 81 | let event = SystemProxyHelperLogEvent.requestFailed(.preferencesBusy) | COMMENT |
| LOW | …ests/Catalog/Workflow/CatalogWorkflowImportTests.swift | 21 | #expect(outcome.selectionCandidate == groupID) | COMMENT |
| LOW | ShadowsocksX-NG2/Tests/Runtime/LogLineTests.swift | 61 | #expect(event.rendered == event.text, "旧格式行保留原文(raw capture 不改写)") | COMMENT |
| LOW | ShadowsocksX-NG2/Tests/Runtime/LogLineTests.swift | 81 | LogLineLevel.detect(in: "[Warning] [107248047] app/dispatcher: default route") == .warning) | COMMENT |
| LOW | …X-NG2/Tests/Servers/ServerFormPluginOptionsTests.swift | 221 | // 只输入参数名:提升为正式行并补上新的空行。 | COMMENT |
| LOW | …X-NG2/Tests/Servers/ServerFormPluginOptionsTests.swift | 341 | ] | COMMENT |
| LOW | …wsocksX-NG2/Tests/Servers/ServerFormLoadingTests.swift | 301 | #expect(fields.remark == "未保存名称") | COMMENT |
| LOW | ShadowsocksX-NG2/Scripts/fetch-external-binaries.sh | 1 | #!/bin/sh | COMMENT |
| LOW | ShadowsocksX-NG2/Scripts/sign-embedded-helpers.sh | 1 | #!/bin/sh | COMMENT |
| LOW | ShadowsocksX-NG2/Scripts/packaging-gate.sh | 1 | #!/bin/sh | COMMENT |
| LOW | ShadowsocksX-NG2/Scripts/lib-manifests.sh | 1 | # Shared manifest reading for the Vendor supply chain scripts | COMMENT |
| LOW | …cksX-NG2/Domain/SystemProxy/SystemProxyHelperLog.swift | 1 | import Foundation | COMMENT |
| LOW | ShadowsocksX-NG2/Domain/Catalog/CatalogError.swift | 1 | /// 目录操作失败原因,逐项对应 GLOSSARY.md 的结构不变量(单父、显子序、 | COMMENT |
| LOW | ShadowsocksX-NG2/Domain/Runtime/RuntimeLog.swift | 1 | import Foundation | COMMENT |
| LOW | ShadowsocksX-NG2/Domain/Runtime/RuntimeLog.swift | 41 | /// 本机代理端点启动后未就绪(点名端点与端口)。 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ShadowsocksX-NG2/Scripts/convert-gfwlist.py | 12 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/convert-gfwlist.py | 22 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/convert-geolocation-cn.py | 10 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/convert-geolocation-cn.py | 16 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/convert-china-ipv4.py | 9 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/convert-china-ipv4.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ShadowsocksX-NG2/Scripts/convert-gfwlist.py | 189 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/convert-geolocation-cn.py | 73 | CODE | |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 87 | CODE | |
| LOW | …dowsocksX-NG2/Scripts/test-rule-conversion-behavior.py | 240 | CODE | |
| LOW | ShadowsocksX-NG2/Scripts/dependency-metadata.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ShadowsocksX-NG2/Scripts/convert-gfwlist.py | 47 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ShadowsocksX-NG2/Scripts/verify-rule-snapshots.sh | 38 | except Exception as exc: # noqa: BLE001 | CODE |
| LOW | ShadowsocksX-NG2/Scripts/verify-rule-snapshots.sh | 63 | except Exception as exc: # noqa: BLE001 | CODE |