Code health of yaozeyuan/zhihuhelp
Repowise scores yaozeyuan/zhihuhelp at 6.5 out of 10 for code health, which reads as fair, alongside maintainability 7.8 and static performance 9.5 on the same scale. There are 575 open findings across the three pillars, and the lowest-scoring file is index.ts at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
28 critical, 116 high, 134 medium, 104 low.
Hotspots
30 files are flagged as hotspots. The top 5:
- src/index.ts: 15 commits in the last 90 days from 4 contributors with 2 recent bug fixes
- src/application/workflow/generate/customer.ts: 8 commits in the last 90 days from 1 contributor
- client/src/page/home/component/customer_task/index.tsx: 10 commits in the last 90 days from 4 contributors with 1 recent bug fix
- client/src/page/home/component/db_explorer/index.tsx: 7 commits in the last 90 days from 3 contributors
- client/src/page/home/component/log/index.tsx: 7 commits in the last 90 days from 2 contributors with 1 recent bug fix
Lowest-scoring files
- src/index.ts: 1.0 out of 10 with 2 bug fixes in the last 180 days
- src/application/cache_transfer/json_transfer.ts: 1.9 out of 10 with 1 bug fix in the last 180 days
- src/application/workflow/generate/library/epub_generator.ts: 1.9 out of 10 with 1 bug fix in the last 180 days
- src/application/workflow/generate/customer.ts: 1.9 out of 10
- src/library/http/index.ts: 2.4 out of 10 with 1 bug fix in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 7 had a bug fix in the last 180 days. Across all 229 scored files, 8.3% had a bug fix in that window.
Dead code and refactoring
Repowise found 62 unused exports. 27 refactoring targets across 27 files would raise the score.
More on zhihuhelp: summary and FAQ, codebase overview, architecture.