krkn-chaos / krkn
Code health
Hotspots average 3.5, the place fixes pay off most.
Explore this codebase
- Code health map5hotspots across 426 files
- Ownership104sole-owned files: one author, no second reader
- Architecture7modules, 1 entry points
- Decisions30recorded, of which 0 in force and 30 background
- Refactoring59open 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 17, the last indexed commit, 1 of them now.
Now
- High
Start breaking up run (CCN 22, 241 lines): first lift lines 82-88
krkn/scenario_plugins/pvc/pvc_scenario_plugin.py:82
run is complex and keeps changing, which also removes a duplicate; function changed in 6 commits; its file is imported by 1 file.
- gain
- +1.0 health on this file(inferred)
- health recoverable
- +1.0(inferred)
- size
- CCN 22, 241 lines, nests 4 deep
- steps
- 1 (1 mechanical)
Small effort
Worth planning
Start breaking up build_chaos_report_html (CCN 136, 473 lines): first lift lines 504-578
krkn/summarized_reports/transform_html.py:504
build_chaos_report_html nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 2 files, changed 2 times in 90 days.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 136, 473 lines, nests 5 deep
- steps
- 1 (0 mechanical)
Medium effort, worth a checkStart breaking up main (CCN 124, 642 lines): first lift lines 113-137
run_kraken.py:113
main nests deeply; easier to read and change once split; function changed in 42 commits; its file is imported by 1 file, changed 17 times in 90 days.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 124, 642 lines, nests 8 deep
- steps
- 1 (0 mechanical)
Small 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 health1,136 open findingsCriticalUntested hotspot · krkn/scenario_plugins/native/network/ingress_shaping.py23 findings · 9.9 deducted
- Refactoring59 open opportunitiesMedium__init__+1.5 health, S effort · krkn/scenario_plugins/pod_disruption/models/models.py
- Decisions0 drifting from the codeMediumrun_kraken.pyHigh-churn file with no governing decision
- Ownership104 sole-owned filesMediumkrkn/summarized_reports/transform.pyOne author, no second reader
- Dead code5Lowget_pods_or_skipUnreachable function (26 lines)