repowisestorytold/photocraft

Code health of storytold/photocraft

Repowise scores storytold/photocraft at 5.8 out of 10 for code health, which reads as fair, alongside maintainability 6.4 and static performance 9.8 on the same scale. There are 9,105 open findings across the three pillars, and the lowest-scoring file is type_tool_tests.rs at 2.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

553 critical, 1,156 high, 2,751 medium, 4,565 low.

Hotspots

282 files are flagged as hotspots. The top 5:

  • crates/ui-egui/src/canvas.rs: 301 commits in the last 90 days from 104 contributors with 43 recent bug fixes
  • crates/ui-egui/src/panels.rs: 222 commits in the last 90 days from 95 contributors with 39 recent bug fixes
  • crates/ui-egui/src/transform_tool.rs: 66 commits in the last 90 days from 41 contributors with 11 recent bug fixes
  • crates/ui-egui/src/prefs_ui.rs: 78 commits in the last 90 days from 47 contributors with 11 recent bug fixes
  • crates/ui-egui/src/control.rs: 86 commits in the last 90 days from 48 contributors with 9 recent bug fixes

Lowest-scoring files

  • crates/ui-egui/src/type_tool_tests.rs: 2.0 out of 10 with 7 bug fixes in the last 180 days
  • crates/compose/src/tests.rs: 2.0 out of 10 with 6 bug fixes in the last 180 days
  • crates/raw/src/testgen.rs: 2.0 out of 10 with 2 bug fixes in the last 180 days
  • crates/algo/src/lib.rs: 2.1 out of 10 with 3 bug fixes in the last 180 days
  • crates/ui-egui/src/actions.rs: 2.1 out of 10 with 2 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 17 had a bug fix in the last 180 days. Across all 1,401 scored files, 16.9% had a bug fix in that window.

Dead code and refactoring

381 refactoring targets across 381 files would raise the score.

More on photocraft: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language