interplains / zero-breach-toolkit
Code health
Hotspots average 3.2, the place fixes pay off most.
Explore this codebase
- Code health map25hotspots across 266 files
- Ownership215sole-owned files: one author, no second reader
- Architecture3modules, 2 entry points
- Decisions6recorded, of which 0 in force and 6 background
- Refactoring39open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 5
6 things worth doing in the week to Nov 5, the last indexed commit, 1 of them now.
Worth planning
Start breaking up run (CCN 92, 206 lines): first lift lines 427-439
scan/zbtriage/modules/ios.py:427
run has many paths; easier to read and change once split; function changed in 7 commits; its file is imported by 20 files, changed 7 times in 90 days.
- gain
- up to +1.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 92, 206 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkStart breaking up render_human (CCN 69, 197 lines): first lift lines 616-685
scan/zbtriage/report.py:616
render_human nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 5 commits; its file is imported by 50 files, changed 14 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 69, 197 lines, nests 5 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 44 findings in 18 files
8 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
scan/zbtriage/modules/browser.py(7 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 44
- files
- 18
- commits
- 8
Large effortSimplify
_tr_persistenceinscan/zbtriage/modules/traces.py: tests reach it, and fixes keep landingChanged 10 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 10
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- 12 test files, call graph(inferred)
Large effort, worth a checkStart breaking up run (CCN 76, 1,123 lines): first lift lines 2600-2620
scan/zbtriage/modules/browser.py:2600
run nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 39 files, changed 18 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 76, 1,123 lines, nests 5 deep
- severity
- high
Medium effort, worth a check
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health751 open findingsCriticalChange entropy · scan/zbtriage/modules/browser.py96 findings · 14.7 deducted
- Refactoring39 open opportunitiesMediumscope_validate+1.2 health, S effort · scan/zbtriage/scope.py
- Decisions0 drifting from the codeMediumscan/zbtriage/i18n_data.pyHigh-churn file with no governing decision
- Ownership215 sole-owned filesMediumscan/zbtriage/modules/browser.pyOne author, no second reader