Code health of nestjs/nest
Repowise scores nestjs/nest at 8.6 out of 10 for code health, which reads as excellent, alongside maintainability 9.3 and static performance 10.0 on the same scale. There are 781 open findings across the three pillars, and the lowest-scoring file is route-table.ts at 1.6. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
162 critical, 136 high, 397 medium, 86 low.
Hotspots
72 files are flagged as hotspots. The top 5:
- packages/platform-fastify/adapters/fastify-adapter.ts: 24 commits in the last 90 days from 6 contributors with 22 recent bug fixes
- packages/platform-ws/adapters/ws-adapter.ts: 11 commits in the last 90 days from 5 contributors with 11 recent bug fixes
- packages/core/injector/injector.ts: 9 commits in the last 90 days from 4 contributors with 9 recent bug fixes
- packages/platform-node/adapters/node-adapter.ts: 15 commits in the last 90 days from 6 contributors with 11 recent bug fixes
- packages/core/router/router-response-controller.ts: 12 commits in the last 90 days from 3 contributors with 12 recent bug fixes
Lowest-scoring files
- packages/platform-node/router/route-table.ts: 1.6 out of 10 with 5 bug fixes in the last 180 days
- packages/platform-fastify/adapters/fastify-adapter.ts: 1.8 out of 10 with 22 bug fixes in the last 180 days
- packages/microservices/test/client/client-rmq.spec.ts: 2.5 out of 10 with 8 bug fixes in the last 180 days
- packages/platform-express/adapters/express-adapter.ts: 2.9 out of 10 with 10 bug fixes in the last 180 days
- packages/platform-node/router/node-router.ts: 3.0 out of 10 with 6 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 20 had a bug fix in the last 180 days. Across all 2,376 scored files, 15.3% had a bug fix in that window.
Dead code and refactoring
20 refactoring targets across 20 files would raise the score.
More on nest: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language