Skip to content

fix: v3.3.3 — 扫描器校准:占位符不再阻断、补个人邮箱与手机号、历史 P1 只报告 - #4

Merged
hyt315 merged 1 commit into
mainfrom
fix/v3.3.3-p0
Nov 11, 2026
Merged

hyt315 merged 1 commit into
mainfrom
fix/v3.3.3-p0

Conversation

@hyt315

@hyt315 hyt315 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

问题(来自重新审视,均有实测)

  • <owner>/<repo> 占位符即使在代码块里也判 P0,与 SKILL.md“占位符不算泄露”矛盾。
  • 路径规则把 C:\Windows、C:\ProgramData、YourName、<用户名> 都报 P1:在一个真实 Windows 工具项目上,--strict 当前树就有 92 条 P1,几乎全是误报。
  • SKILL.md 要求无真实邮箱、手机号,但规则库里没有这两类;zhang.san@163.com、11 位手机号均未检出。
  • 文档推荐的门禁 --strict --history 在本仓库自身就 FAIL(历史 P1=24),CI 靠拆成两步绕过。

改动

  • 删除 <owner>/<repo> P0 规则({owner} 规则保留)。
  • 用户目录规则排除占位用户名;windows-absolute-path 降为 P2,并排除系统目录;Unix 家目录排除 user、you、runner 等。
  • 新增 personal_patterns:个人邮箱域、大陆手机号(P1);提交邮箱属个人邮箱域时升为 P1。
  • --strict 只阻断当前树的 P1;历史 P1 只报告,历史 P0 仍阻断。CI 合并为一步 --strict --history。
  • 当前树、.git/config、历史三处扫描共用一个 _match_line。
  • selftest 新增 2 项;test_rules_single_source 跳过 __pycache__。
  • 版本 3.3.3:manifest、SKILL、CHANGELOG、README 中英文的 --pin 已同步。

验证

  • selftest 14/14,unittest OK,本仓库 --strict --history 结果为 PASS(历史 P1=9,只报告)。
  • windows-cleanup-optimize:当前树 P1 从 92 降到 1,历史 P1 从 52 降到 2。

@hyt315
hyt315 merged commit 42f3613 into main Nov 11, 2026
1 check passed
@hyt315
hyt315 deleted the fix/v3.3.3-p0 branch November 11, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant