maxritter / pilot-shell
Code health
Hotspots average 3.8, the place fixes pay off most.
Explore this codebase
- Code health map105hotspots across 1,311 files
- Ownership901sole-owned files: one author, no second reader
- Architecture10modules, 19 entry points
- Decisions31recorded, of which 0 in force and 31 background
- Refactoring54open 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 Sep 1, the last indexed commit, 3 of them now.
Now
- High
Start breaking up migrate_model_config (CCN 58, 82 lines): first lift lines 74-173
installer/steps/config_migration.py:74
migrate_model_config has many paths; easier to read and change once split; function changed in 23 commits; its file is imported by 2 files, changed 10 times in 90 days.
- gain
- +1.3 health on this file(inferred)
- health recoverable
- +1.3(inferred)
- size
- CCN 58, 82 lines, nests 4 deep
- steps
- 1 (1 mechanical)
Medium effort - High
Extract lines 531-545 of run
installer/steps/prerequisites.py:531
run nests deeply; easier to read and change once split; function changed in 9 commits; its file is imported by 2 files, changed 1 time in 90 days.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 29, 79 lines, nests 5 deep
- steps
- 1 (1 mechanical)
Small effort - High
Start breaking up _e (CCN 59, 1 line): first lift lines 2-2
pilot/ui/index3.js:2
_e nests deeply; easier to read and change once split; its file is imported by 1 file, changed 3 times in 90 days.
- gain
- +0.6 health on this file(inferred)
- health recoverable
- +0.6(inferred)
- size
- CCN 59, 1 line, nests 5 deep
- steps
- 1 (1 mechanical)
Small effort
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 health3,257 open findingsCriticalUntested hotspot · pilot/scripts/mcp-server.cjs55 findings · 10.0 deducted
- Refactoring54 open opportunitiesMediummigrate_model_config+1.3 health, M effort · installer/steps/config_migration.py
- Decisions0 drifting from the codeMediumpilot/scripts/worker-service.cjsHigh-churn file with no governing decision
- Ownership901 sole-owned filesMediumpilot/scripts/worker-service.cjsOne author, no second reader
- Dead code280Lowrender_validation_reportUnreachable function (17 lines)