repowisestorytold/photocraft

storytold / photocraft

rustmain4d4de45495.4K linessynced 19h ago
Since the previous index, 2d ago+19 files-0.2 code health-0.3 hotspot health

Code health

5.8out of 10Fair

This codebase scores 5.8 out of 10 for code health, which we rate fair. It also scores maintainability 6.4 and static performance 9.8 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 339 of 1,600 files are git hotspots, and they average 4.3 — which is where the fixes pay off most.

Do next

4 suggested

5 things worth doing in the week to Oct 18, the last indexed commit, 2 of them now.

Now

  • Critical

    Clean up what this week's commits left: 5 serious findings in 5 files

    4 commits in the last 7 days added or worsened them, and they are still open. Start with crates/ui-egui/src/canvas_tool_menu.rs, which has 1 critical.

    serious findings
    5
    critical
    2
    files
    5

Worth planning

  • Break up canvas_view (CCN 376, 1,031 lines)

    crates/ui-egui/src/canvas.rs:4081

    canvas_view nests deeply; easier to read and change once split; its file is imported by 99 files, changed 301 times in 90 days.

    gain
    up to +0.2 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 376, 1,031 lines, nests 8 deep
    severity
    critical
    worth a check
  • Start breaking up handle (CCN 134, 262 lines): first lift lines 403-424

    crates/ui-egui/src/shortcuts.rs:403

    handle does several jobs side by side; easier to read and change once split; function changed in 45 commits; its file is imported by 5 files, changed 56 times in 90 days.

    gain
    up to +0.4 health on this file(inferred)
    finding
    Bumpy road
    size
    CCN 134, 262 lines, nests 3 deep
    severity
    high
    worth a check
  • Break up build (CCN 13, 978 lines)

    crates/engine/src/commands.rs:1422

    build nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 84 commits; its file is imported by 116 files, changed 112 times in 90 days.

    gain
    up to +1.3 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 13, 978 lines, nests 5 deep
    severity
    high
    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
Lines of code
495.4K

Recent activity

All commits

Everything we found

8,250 open
  • rust99%
  • shell1%
  • python<1%
  • dockerfile<1%

Explore this codebase