Code health of sveltejs/svelte
Repowise scores sveltejs/svelte at 8.7 out of 10 for code health, which reads as excellent, alongside maintainability 9.1 and static performance 10.0 on the same scale. There are 1,807 open findings across the three pillars, and the lowest-scoring file is batch.js at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
136 critical, 224 high, 347 medium, 1,100 low.
Hotspots
35 files are flagged as hotspots. The top 5:
- packages/svelte/src/internal/client/reactivity/batch.js: 15 commits in the last 90 days from 7 contributors with 12 recent bug fixes
- packages/svelte/src/compiler/print/index.js: 3 commits in the last 90 days from 9 contributors with 10 recent bug fixes
- packages/svelte/src/internal/client/dom/elements/attributes.js: 11 commits in the last 90 days from 14 contributors with 8 recent bug fixes
- packages/svelte/types/index.d.ts: 8 commits in the last 90 days from 13 contributors with 3 recent bug fixes
- packages/svelte/src/internal/server/renderer.js: 6 commits in the last 90 days from 8 contributors with 6 recent bug fixes
Lowest-scoring files
- packages/svelte/src/internal/client/reactivity/batch.js: 1.0 out of 10 with 12 bug fixes in the last 180 days
- packages/svelte/src/compiler/migrate/index.js: 1.0 out of 10 with 3 bug fixes in the last 180 days
- packages/svelte/src/internal/client/runtime.js: 1.0 out of 10 with 10 bug fixes in the last 180 days
- packages/svelte/src/compiler/phases/2-analyze/index.js: 1.0 out of 10 with 4 bug fixes in the last 180 days
- packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js: 1.0 out of 10 with 3 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 19 had a bug fix in the last 180 days. Across all 9,027 scored files, 11.7% had a bug fix in that window.
Dead code and refactoring
98 refactoring targets across 98 files would raise the score.
More on svelte: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language