repowiseinterplains/zero-breach-toolkit

interplains / zero-breach-toolkit

pythonmain10ceaba42.3K linessynced on Nov 6, 2026
Since the previous index, +54 files+0.2 code health+0.3 hotspot health

Code health

6.6out of 10Fair

Hotspots average 3.2, the place fixes pay off most.

Explore this codebase

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
    worth a check
  • Start 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
    worth a check
  • Tidy 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
  • Simplify _tr_persistence in scan/zbtriage/modules/traces.py: tests reach it, and fixes keep landing

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

Everything we found

4 areas