repowisekrkn-chaos/krkn

krkn-chaos / krkn

pythonmain2fbf4b548.6K linessynced on Sep 20, 2026

Code health

6.8out of 10Fair

Hotspots average 3.5, the place fixes pay off most.

Explore this codebase

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)

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)
    worth a check
  • Start 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)
    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

Everything we found

5 areas