Code health of bevyengine/bevy
Repowise scores bevyengine/bevy at 6.9 out of 10 for code health, which reads as fair, alongside maintainability 7.8 and static performance 9.9 on the same scale. There are 6,096 open findings across the three pillars, and the lowest-scoring file is light.rs at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
368 critical, 1,068 high, 1,100 medium, 3,560 low.
Hotspots
217 files are flagged as hotspots. The top 5:
- crates/bevy_feathers/src/controls/number_input.rs: 20 commits in the last 90 days from 20 contributors with 7 recent bug fixes
- examples/testbed/ui.rs: 8 commits in the last 90 days from 55 contributors with 4 recent bug fixes
- examples/ui/widgets/feathers_gallery.rs: 16 commits in the last 90 days from 21 contributors with 6 recent bug fixes
- crates/bevy_scene/src/lib.rs: 10 commits in the last 90 days from 22 contributors with 5 recent bug fixes
- crates/bevy_ui/src/layout/mod.rs: 14 commits in the last 90 days from 82 contributors with 3 recent bug fixes
Lowest-scoring files
- crates/bevy_pbr/src/render/light.rs: 1.0 out of 10 with 4 bug fixes in the last 180 days
- crates/bevy_ui_render/src/lib.rs: 1.0 out of 10 with 3 bug fixes in the last 180 days
- crates/bevy_pbr/src/prepass/mod.rs: 1.0 out of 10 with 1 bug fix in the last 180 days
- crates/bevy_asset/src/processor/mod.rs: 1.0 out of 10
- crates/bevy_asset/src/server/mod.rs: 1.0 out of 10 with 3 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 2,022 scored files, 13.8% had a bug fix in that window.
Dead code and refactoring
Repowise found 8 unused exports. 224 refactoring targets across 224 files would raise the score.
More on bevy: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language