I ran my event scanner on 18 open-source repos. Fourteen came back with two events or fewer, and six of those zeros were my fault.
说明与用途
事件扫描 CLI 最初在 18 个仓库中 14 个报告零事件,原因是缺少配置、嵌套包装器等限制。修复后事件计数增加,测试文件被排除。
问题
A CLI event scanner reports zero analytics events in many repos, but the zero may be misleading because of scanner limitations or repo structure.
结果
Scanner initially missed many events due to missing TypeScript configs, helper wrappers, dollar-prefixed names, dynamic imports, and memory limits. After fixes, event counts rose significantly and test files were excluded from final counts.
工作流
- Clone each repo shallowly
- Run event scanner with default settings
- Verify reported event counts by grepping source
- Identify scanner gaps (config, helpers, naming, dynamic imports, memory)
- Fix scanner to handle each gap
- Re-run scanner and compare counts
证据
Fourteen of the 18 came back with two events or fewer.
After teaching it to read each app's own settings, and to find the repository's own packages by folder when nothing is installed, it reports 9.
The CLI now starts itself with more memory when the repository is large and the machine can spare it.
- 记录日期: 2026-10-16T17:56:04.893Z