microsoft / powertoys
Code health
Hotspots average 5.0, the place fixes pay off most.
Explore this codebase
- Code health map119hotspots across 7,337 files
- Ownership3,301sole-owned files: one author, no second reader
- Architecture6modules, 107 entry points
- Decisions116recorded, of which 0 in force and 116 background
- Refactoring379open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
5 things worth doing in the week to Nov 18, the last indexed commit, 2 of them now.
Worth planning
Tidy the code shape this week's commits left: 4 findings in 4 files
3 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/common/UITestAutomation.Next/SessionHelper.cs(1 finding): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 4
- files
- 4
- commits
- 3
Medium effortReview why fixes keep landing in
src/modules/ShortcutGuide/ShortcutGuide.Ui/ShortcutGuideXAML/OverlayWindow.xaml.cs: tests reach itChanged 5 times in 90 days, and 5 of those commits were bug fixes.
- commits in 90 days
- 5
- bug-fix commits
- 5
- line coverage
- Unknown, no report
- tests that reach it
- 2 test files, import graph(inferred)
Medium effort, worth a checkReview why fixes keep landing in
src/modules/ShortcutGuide/ShortcutGuide.Ui/ShortcutGuideXAML/App.xaml.cs: tests reach itChanged 5 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 5
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- 2 test files, call graph(inferred)
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health6,133 open findingsCriticalChange entropy · src/modules/keyboardmanager/KeyboardManagerEngineLibrary/KeyboardEventHandlers.cpp70 findings · 15.1 deducted
- Refactoring379 open opportunitiesLowFancyZonesSettings::LoadSettings+0.9 health, M effort · src/modules/fancyzones/FancyZonesLib/Settings.cpp
- Doc drift72Medium.github/skills/ui-tests-local-vm/references/setup.mdLink points at #0-grant-hyper-v-access-one-time-elevated, which .github/skills/ui-tests-local-vm/references/setup.md no longer declares.
- Decisions0 drifting from the codeMediumsrc/modules/cmdpal/Microsoft.CmdPal.UI/Pages/ShellPage.xaml.csHigh-churn file with no governing decision
- Ownership3,301 sole-owned filesMediumsrc/modules/cmdpal/Tests/Microsoft.CmdPal.UI.UnitTests/CachedIconSourceProviderTests.csOne author, no second reader
- Dead code1LowDesktopScreenshotCaptureProviderUnreachable class (135 lines)