Code health of bevyengine/bevy
Repowise scores bevyengine/bevy at 6.8 out of 10 for code health, which reads as fair, alongside maintainability 7.6 and static performance 9.9 on the same scale. There are 6,249 open findings across the three pillars, and the lowest-scoring file is mod.rs at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
386 critical, 1,124 high, 1,178 medium, 3,561 low.
Hotspots
217 files are flagged as hotspots. The top 5:
- crates/bevy_feathers/src/controls/number_input.rs: 21 commits in the last 90 days from 18 contributors with 6 recent bug fixes
- examples/testbed/ui.rs: 10 commits in the last 90 days from 55 contributors with 5 recent bug fixes
- examples/ui/widgets/feathers_gallery.rs: 17 commits in the last 90 days from 20 contributors with 5 recent bug fixes
- crates/bevy_scene/src/lib.rs: 9 commits in the last 90 days from 20 contributors with 4 recent bug fixes
- crates/bevy_pbr/src/render/light.rs: 13 commits in the last 90 days from 97 contributors with 5 recent bug fixes
Lowest-scoring files
- crates/bevy_pbr/src/prepass/mod.rs: 1.0 out of 10 with 1 bug fix in the last 180 days
- crates/bevy_ui_render/src/lib.rs: 1.0 out of 10 with 4 bug fixes in the last 180 days
- crates/bevy_pbr/src/render/light.rs: 1.0 out of 10 with 5 bug fixes in the last 180 days
- crates/bevy_image/src/ktx2.rs: 1.0 out of 10
- crates/bevy_asset/src/processor/mod.rs: 1.0 out of 10
Checked against bug fixes
Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 1,971 scored files, 14.3% had a bug fix in that window.
Dead code and refactoring
Repowise found 8 unused exports. 220 refactoring targets across 220 files would raise the score.
More on bevy: summary and FAQ, codebase overview, architecture.