Code health of motis-project/motis
Repowise scores motis-project/motis at 6.9 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 564 open findings across the three pillars, and the lowest-scoring file is update.cc at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
66 critical, 125 high, 223 medium, 150 low.
Hotspots
21 files are flagged as hotspots. The top 5:
- ui/api/openapi/types.gen.ts: 5 commits in the last 90 days from 14 contributors with 1 recent bug fix
- ui/src/routes/+page.svelte: 5 commits in the last 90 days from 9 contributors with 7 recent bug fixes
- ui/api/openapi/schemas.gen.ts: 5 commits in the last 90 days from 14 contributors with 1 recent bug fix
- src/gbfs/update.cc: 5 commits in the last 90 days from 8 contributors with 3 recent bug fixes
- src/endpoints/routing.cc: 7 commits in the last 90 days from 13 contributors with 4 recent bug fixes
Lowest-scoring files
- src/gbfs/update.cc: 1.0 out of 10 with 3 bug fixes in the last 180 days
- src/endpoints/routing.cc: 1.0 out of 10 with 4 bug fixes in the last 180 days
- src/journey_to_response.cc: 1.0 out of 10 with 2 bug fixes in the last 180 days
- src/endpoints/stop_times.cc: 1.0 out of 10 with 2 bug fixes in the last 180 days
- test/routing_test.cc: 1.2 out of 10 with 3 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 10 had a bug fix in the last 180 days. Across all 422 scored files, 5.5% had a bug fix in that window.
Dead code and refactoring
Repowise found 18 unused exports. 41 refactoring targets across 41 files would raise the score.
More on motis: summary and FAQ, codebase overview, architecture.