Code health of xifan2333/fcitx5-vinput
Repowise scores xifan2333/fcitx5-vinput at 5.5 out of 10 for code health, which reads as fair, alongside maintainability 8.2 and static performance 10.0 on the same scale. There are 445 open findings across the three pillars, and the lowest-scoring file is model_manager.cpp at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
38 critical, 127 high, 165 medium, 105 low.
Hotspots
5 files are flagged as hotspots. The top 5:
- src/gui/pages/control/control_page.cpp: 3 commits in the last 90 days from 2 contributors with 5 recent bug fixes
- src/gui/pages/resources/resource_page.cpp: 3 commits in the last 90 days from 1 contributor with 3 recent bug fixes
- src/daemon/runtime/daemon_runtime_controller.cpp: 3 commits in the last 90 days from 2 contributors with 3 recent bug fixes
- src/daemon/postprocess/post_processor.cpp: 5 commits in the last 90 days from 1 contributor with 3 recent bug fixes
- src/gui/app/mainwindow.cpp: 4 commits in the last 90 days from 2 contributors with 4 recent bug fixes
Lowest-scoring files
- src/common/asr/model_manager.cpp: 1.0 out of 10
- src/gui/pages/resources/resource_page.cpp: 1.4 out of 10 with 3 bug fixes in the last 180 days
- src/addon/dbus/vinput_dbus.cpp: 1.5 out of 10 with 5 bug fixes in the last 180 days
- src/addon/menu/vinput_menu.cpp: 1.9 out of 10 with 5 bug fixes in the last 180 days
- src/addon/input/vinput_keyevent.cpp: 2.1 out of 10 with 4 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 217 scored files, 23.0% had a bug fix in that window.
Dead code and refactoring
Repowise found 141 unused exports. 5 refactoring targets across 5 files would raise the score.
More on fcitx5-vinput: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language