repowisestashapp/stash

Code health of stashapp/stash

Repowise scores stashapp/stash at 6.2 out of 10 for code health, which reads as fair. There are 1,843 open findings across the three pillars, and the lowest-scoring file is task_import.go at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

161 critical, 413 high, 757 medium, 433 low.

Hotspots

179 files are flagged as hotspots. The top 5:

  • ui/v2.5/src/components/Scenes/SceneList.tsx: 1 commit in the last 90 days from 5 contributors
  • ui/v2.5/src/components/Tagger/tags/TagTagger.tsx: 5 commits in the last 90 days from 2 contributors with 1 recent bug fix
  • ui/v2.5/src/components/Images/ImageList.tsx: 2 commits in the last 90 days from 10 contributors with 3 recent bug fixes
  • ui/v2.5/src/components/Tags/TagList.tsx: 2 commits in the last 90 days from 5 contributors
  • pkg/stashbox/graphql/generated_client.go: 1 commit in the last 90 days from 3 contributors

Lowest-scoring files

  • internal/manager/task_import.go: 1.0 out of 10 with 1 bug fix in the last 180 days
  • pkg/sqlite/performer_filter.go: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • internal/manager/task_generate.go: 1.0 out of 10 with 1 bug fix in the last 180 days
  • internal/manager/task_scan.go: 1.0 out of 10 with 2 bug fixes in the last 180 days
  • internal/manager/task_stash_box_tag.go: 1.0 out of 10

Checked against bug fixes

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

Dead code and refactoring

Repowise found 335 unused exports.

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

Related guide: Best dead code detection tools by language