natebjones-projects / ob1
Code health
Hotspots average 4.9, the place fixes pay off most.
Explore this codebase
- Code health map14hotspots across 791 files
- Ownership266sole-owned files: one author, no second reader
- Architecture9modules, 70 entry points
- Decisions19recorded, of which 0 in force and 19 background
- Refactoring80open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
4 things worth doing in the week to Jul 3, the last indexed commit, 1 of them now.
Worth planning
Start breaking up app.post callback (CCN 67, 607 lines): first lift lines 24-37
extensions/professional-crm/index.ts:24
app.post callback has many paths; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; changed 1 time in 90 days.
- gain
- up to +0.3 health on this file(inferred)
- finding
- Complex method
- size
- CCN 67, 607 lines
- severity
- high
Medium effort, worth a checkFlatten the nesting in upsertPersonByEmail
recipes/atomizer/lib/entity-resolver.mjs:207
upsertPersonByEmail nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 5 files, changed 1 time in 90 days.
- gain
- up to +0.6 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 26, 72 lines, nests 5 deep
- severity
- high
Medium effort, worth a checkStart breaking up main (CCN 84, 324 lines): first lift lines 539-590
recipes/obsidian-vault-import/import-obsidian.py:539
main nests deeply; easier to read and change once split, which also removes a duplicate; changed 2 times in 90 days.
- gain
- up to +0.5 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 84, 324 lines, nests 5 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
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health950 open findingsCriticalDeep nesting · integrations/chrome-capture-extension/background/service-worker.js23 findings · 7.5 deducted
- Refactoring80 open opportunitiesMedium<anonymous>+1.5 health, S effort · integrations/chrome-capture-extension/lib/gemini-sync-state.js
- Decisions0 drifting from the codeHighUse append-only audit table with author_session_id to track operational changesActive decision drifting from the code it governs
- Ownership266 sole-owned filesMediumintegrations/enhanced-mcp/index.tsOne author, no second reader
- Dead code57LowcheckHealthUnreachable function (4 lines)