This report summarizes scanner evidence for Renhuai123/ziwei-doushu. SynthScan examined 22,732 lines of code across 113 source files, recording 107 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 13.9 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
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? 10 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 101 finding(s).
Which changes need focused human review? 107 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 107 distinct pattern matches across 3 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 |
|---|---|---|---|---|
| MEDIUM | app/page.tsx | 9 | // ─── 滚动入场 wrapper ──────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 38 | // ─── 主题切换按钮 ──────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 82 | // ─── 主星数据 ──────────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 90 | // ─── 功能模块 ──────────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 137 | // ─── 4 大学习板块(hero 后时间轴)────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 181 | // ─── 倪海厦核心教义 ────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 201 | // ─── 主题色彩 helper ───────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 251 | // ─── 四化简介数据 ───────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 259 | // ─── 主星简介数据 ───────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 277 | // ─── 功能视觉装饰 ──────────────────────────────────────── | COMMENT |
| MEDIUM | app/page.tsx | 443 | // ─── 主页 ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | app/heming/page.tsx | 10 | // ─── AiContent 渲染器(与 InsightPanel 一致)──────────────── | COMMENT |
| MEDIUM⚡ | app/heming/page.tsx | 55 | // ─── 双方命盘状态 ───────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | app/heming/page.tsx | 62 | // ─── AI 合盘分析状态 ───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | app/heming/page.tsx | 72 | // ─── 起盘(单次调用,返回 chart 给统一流程使用)────────── | COMMENT |
| MEDIUM | app/heming/page.tsx | 86 | // ─── 统一入口:起盘 + 合盘分析 ───────────────────────────── | COMMENT |
| MEDIUM | components/BirthForm.tsx | 94 | // ─── 校验逻辑 ─────────────────────────────────────────── | COMMENT |
| MEDIUM | components/BirthForm.tsx | 110 | // ─── 完成度(用于进度条) ──────────────────────────────── | COMMENT |
| MEDIUM | components/BirthForm.tsx | 119 | // ─── Summary chip:全部必填完成后显示 ─────────────────── | COMMENT |
| MEDIUM | components/BirthForm.tsx | 151 | // ─── 样式变量 ──────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/tianji.ts | 17 | // ─── 天纪模块 ──────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/tianji.ts | 358 | // ─── 易经六十四卦数据库 ────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/tianji.ts | 426 | // ─── 堪舆学条目 ────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/tianji.ts | 500 | // ─── 倪师天纪核心语录库 ────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/tianji.ts | 533 | // ─── 统计 ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/diji.ts | 14 | // ─── 地纪模块 ──────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/diji.ts | 177 | // ─── 统计 ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/renji.ts | 15 | // ─── 人纪模块 ──────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/renji.ts | 349 | // ─── 215条针灸经验穴位(倪师临床精华) ──────────────────── | COMMENT |
| MEDIUM | lib/nihai/renji.ts | 483 | // ─── 31条透针透穴法 ──────────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/renji.ts | 518 | // ─── 汉唐100方完整列表 ──────────────────────────────────── | COMMENT |
| MEDIUM | lib/nihai/renji.ts | 619 | // ─── 核心经方精选(伤寒论+金匮要略) ────────────────────── | COMMENT |
| MEDIUM | lib/nihai/renji.ts | 648 | // ─── 统计 ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 18 | // ─── 星 ID → 星名 映射(数据表内用纯整数 ID,本表是我们整理的常识对应)───────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 48 | // ─── 命主表(按命宫地支 1-12 = 寅卯辰巳午未申酉戌亥子丑)────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 67 | // ─── 身主表(按生年地支 1-12 = 子丑寅卯辰巳午未申酉戌亥)───────────────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 84 | // ─── 五行局表(命宫天干组 × 命宫地支组 → 五行局数)───────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 98 | // ─── 十天干四化表(含 5 种主流派变体)──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | lib/ziwei/school-data.ts | 116 | // ─── 五种庚年四化变体(主流排盘软件设置中可选)───────────────────────────────────── | COMMENT |
| MEDIUM⚡ | lib/ziwei/school-data.ts | 125 | // ─── 紫府对宫表(已知紫微宫位查天府宫位)──────────────────────────────────── | COMMENT |
| MEDIUM⚡ | lib/ziwei/school-data.ts | 132 | // ─── 14 主星亮度表(4 套主流派系,可切换)──────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 272 | // ─── 星曜亮度(全星:主星 + 辅星 + 煞星 + 空劫,凡 SCHOOL_STAR_ID_TO_NAME 收录的)────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 308 | // ─── 小星位置表(24 种辅助星,按生月或生时定位)───────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/school-data.ts | 367 | // ─── 流年小星表 ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 17 | // ─── 直辖市 ─────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 138 | // ─── 华北 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 189 | // ─── 东北 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 243 | // ─── 华东 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 351 | // ─── 华中 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 418 | // ─── 华南 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 490 | // ─── 西南 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 565 | // ─── 西北 ───────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/cities.ts | 659 | // ─── 特别行政区 / 台湾 ────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 16 | // ─── 1) 由天干索引取四化四星 ─────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 31 | // ─── 2) 公历年 → 年柱天干索引 ────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 42 | // ─── 3) 大限四化:取大限宫的宫干(非本命年干)─────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 70 | // ─── 4) 流年四化 ────────────────────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 84 | // ─── 5) 流月四化(月柱天干,由年干 + 月序推) ─────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 138 | // ─── 5b) 流日四化(农历日柱天干)────────────────────────────── | COMMENT |
| MEDIUM | lib/ziwei/sihua.ts | 165 | // ─── 5c) 流时四化(五鼠遁:日干起子时天干)─────────────────── | COMMENT |
| 37 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | lib/ziwei/algorithm.ts | 21 | // 原配置 yearDivide:'exact'(立春换年)→ 改为 'normal'(正月初一换年) | COMMENT |
| LOW | lib/ziwei/algorithm.ts | 41 | '太阳': ['旺','庙','旺','旺','庙','得','得','陷','不','陷','陷','不'], | COMMENT |
| LOW | lib/ziwei/algorithm.ts | 61 | '天相': ['庙','平','得','得','庙','得','庙','平','得','得','庙','庙'], | COMMENT |
| LOW | lib/ziwei/algorithm.ts | 101 | // 注意:astro.config 是全局副作用,每次调用影响所有后续 generateChart | COMMENT |
| LOW | lib/ziwei/algorithm.ts | 321 | function parseWuxingJu(name: string): number { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lib/ziwei/school-data.ts | 254 | export function schoolBrightnessTableToIztroFormat( | CODE |
| LOW | lib/ziwei/patterns.ts | 933 | function detectJiYueTongLiangPartial(chart: ZiweiChart, ming: Palace, patterns: Pattern[]) { | CODE |
| LOW | lib/ziwei/yunxian-context.ts | 102 | export function resolveEffectiveDaXianIndex( | CODE |
| LOW | lib/ziwei/algorithm.ts | 137 | export function resolveEffectiveLunarDate( | CODE |