ajaxorg / ace
Code health
Explore this codebase
- Code health map1,245files scored
- Ownership717sole-owned files: one author, no second reader
- Architecture8modules, 800 entry points
- Decisions30recorded, of which 0 in force and 30 background
- Refactoring76open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
3 things worth doing in the week to Jul 27, the last indexed commit.
Worth planning
Start breaking up $renderChanges (CCN 49, 124 lines): first lift lines 996-1043
src/virtual_renderer.js:996
$renderChanges has many paths; easier to read and change once split, which also removes a duplicate; function changed in 17 commits; its file is imported by 16 files, changed 1 time in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 49, 124 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkFlatten the nesting in getLineTokens
src/tokenizer.js:276
getLineTokens nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 13 commits; its file is imported by 14 files.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 35, 118 lines, nests 5 deep
- severity
- high
Medium effort, worth a checkStart breaking up $renderCell (CCN 49, 197 lines): first lift lines 457-496
src/layer/gutter.js:457
$renderCell has many paths; easier to read and change once split, which also removes a duplicate; function changed in 18 commits; its file is imported by 2 files.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 49, 197 lines, nests 4 deep
- severity
- high
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health826 open findingsCriticalUntested hotspot · src/virtual_renderer.js30 findings · 9.5 deducted
- Refactoring76 open opportunitiesMedium<anonymous>+1.5 health, S effort · src/ext/whitespace.js
- Ownership717 sole-owned filesMediumace.d.tsOne author, no second reader
- Dead code55Lowdemo/kitchen-sink/docs/crystal.crUnreachable symbol (0 lines)