sveltejs / svelte
Code health
Hotspots average 4.1, the place fixes pay off most.
Explore this codebase
- Code health map35hotspots across 9,905 files
- Ownership1,657sole-owned files: one author, no second reader
- Architecture4modules, 5 entry points
- Decisions33recorded, of which 0 in force and 33 background
- Refactoring98open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 5
5 things worth doing in the week to Nov 21, the last indexed commit.
Worth planning
Tidy the code shape this week's commits left: 7 findings in 6 files
3 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 7
- files
- 6
- commits
- 3
Medium effortSimplify
set_attributesinpackages/svelte/src/internal/client/dom/elements/attributes.js: tests reach it, and fixes keep landingChanged 11 times in 90 days, and 5 of those commits were bug fixes.
- commits in 90 days
- 11
- bug-fix commits
- 5
- line coverage
- Unknown, no report
- tests that reach it
- 5 test files, call graph(inferred)
Medium effort, worth a checkReview why fixes keep landing in
packages/svelte/src/internal/client/dom/blocks/boundary.js: tests reach itChanged 7 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 7
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- 1 test file, call graph(inferred)
Medium effort, worth a checkSimplify
#processinpackages/svelte/src/internal/client/reactivity/batch.js: tests reach it, and fixes keep landingChanged 15 times in 90 days, and 5 of those commits were bug fixes.
- commits in 90 days
- 15
- bug-fix commits
- 5
- line coverage
- Unknown, no report
- tests that reach it
- 1,603 test files, call graph(inferred)
Large effort, worth a checkSimplify
getinpackages/svelte/src/internal/client/runtime.js: tests reach it, and fixes keep landingChanged 9 times in 90 days, and 5 of those commits were bug fixes.
- commits in 90 days
- 9
- bug-fix commits
- 5
- line coverage
- Unknown, no report
- tests that reach it
- 702 test files, call graph(inferred)
Large effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health1,807 open findingsCriticalChange entropy · packages/svelte/src/internal/client/reactivity/batch.js51 findings · 13.6 deducted
- Refactoring98 open opportunitiesMediumSvelteElement+1.2 health, M effort · packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js
- Doc drift1Medium.agents/skills/performance-investigation/SKILL.mdDocument names benchmarking/compare/.results/main.json, which no longer exists.
- Decisions0 drifting from the codeMediumpackages/svelte/src/internal/client/reactivity/batch.jsHigh-churn file with no governing decision
- Ownership1,657 sole-owned filesMediumpackages/svelte/src/version.jsOne author, no second reader