You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate adding fallow for dead code and codebase health analysis #883
fallow is a Rust-based codebase analysis tool that detects dead code, circular dependencies, code duplication, and complexity hotspots. It is much faster than Knip (5-41x in benchmarks) and works with zero configuration. It auto-detected our Electron + Vite + Vitest + TypeScript setup out of the box.
Trial run on this repo
I ran npx fallow against the current codebase. It analyzed 213 files in 0.34 seconds and found:
Dead code
2 unused files -- .vscode-test.mjs and test/mocks/vscode.runtime.ts
Dead code cleanup -- the unused exports and types are low-hanging fruit. Fallow can auto-fix these with fallow fix --dry-run.
CI integration -- fallow has a GitHub Action that can run on PRs with --since main to catch new dead code before it lands.
Circular dependency tracking -- the two cycles through cliCredentialManager/cliExec/cli are flagged as the top refactoring targets.
Caveats
Fallow does syntactic analysis only (no TypeScript type resolution), so some "unused" class members may actually be consumed through interfaces or dynamic access. The test mock findings in particular will need filtering.
VS Code extension APIs use a lot of convention-based exports (e.g. activate/deactivate) that fallow already handles via its Electron plugin, but edge cases are possible.
Suggested next steps
Review the unused exports/types and clean up what is genuinely dead
Decide if fallow should be added as a dev dependency or just run ad-hoc
Consider adding a pnpm fallow script and/or CI check for new dead code on PRs
Activity
BartWaardenburg commentedon May 19, 2026
Fallow maintainer here, if you have any questions or feature requests please let me now!