Code health of microsoft/powertoys
Repowise scores microsoft/powertoys at 6.9 out of 10 for code health, which reads as fair, alongside maintainability 7.6 and static performance 9.8 on the same scale. There are 7,749 open findings across the three pillars, and the lowest-scoring file is KeyboardEventHandlers.cpp at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
652 critical, 1,463 high, 2,776 medium, 2,858 low.
Hotspots
188 files are flagged as hotspots. The top 5:
- src/modules/cmdpal/Microsoft.CmdPal.UI/Pages/ShellPage.xaml.cs: 21 commits in the last 90 days from 7 contributors with 4 recent bug fixes
- src/modules/ZoomIt/ZoomIt/Zoomit.cpp: 5 commits in the last 90 days from 14 contributors with 4 recent bug fixes
- src/modules/cmdpal/Microsoft.CmdPal.UI/MainWindow.xaml.cs: 18 commits in the last 90 days from 12 contributors with 6 recent bug fixes
- src/modules/cmdpal/Tests/Microsoft.CmdPal.UI.ViewModels.UnitTests/CommandItemViewModelTests.cs: 14 commits in the last 90 days from 2 contributors with 1 recent bug fix
- src/modules/cmdpal/Microsoft.CmdPal.UI/ExtViews/ListItemsView.xaml.cs: 13 commits in the last 90 days from 2 contributors with 2 recent bug fixes
Lowest-scoring files
- src/modules/keyboardmanager/KeyboardManagerEngineLibrary/KeyboardEventHandlers.cpp: 1.0 out of 10 with 4 bug fixes in the last 180 days
- src/modules/ZoomIt/ZoomIt/Zoomit.cpp: 1.0 out of 10 with 4 bug fixes in the last 180 days
- src/modules/ZoomIt/ZoomIt/VideoRecordingSession.cpp: 1.0 out of 10 with 3 bug fixes in the last 180 days
- src/common/CalculatorEngineCommon/exprtk.hpp: 1.0 out of 10
- src/modules/MouseWithoutBorders/App/Class/SocketStuff.cs: 1.0 out of 10
Checked against bug fixes
Of the 20 files Repowise scores lowest, 10 had a bug fix in the last 180 days. Across all 6,335 scored files, 9.2% had a bug fix in that window.
Dead code and refactoring
Repowise found 87 unused exports. 384 refactoring targets across 384 files would raise the score.
More on powertoys: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language