Investigate adding fallow for dead code and codebase health analysis
Maintainer antworten meist innerhalb von 2 Tagen
@EhabY arbeitet bereits daran.
Seit 15.4.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Summary
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.mjsandtest/mocks/vscode.runtime.ts - 5 unused exports --
getEventName,AgentMetadataEventSchema,REMOTE_SSH_EXTENSION_IDS,RemoteSSHLogPortRegex,MockOAuthInterceptor - 15 unused type exports -- across
exec.ts,eventStreamConnection.ts,sshConfig.ts,remote.ts, and others - 119 unused class members -- mostly in test mock helpers (46 in
testHelpers.tsalone), but also 8 incoderApi.tsand 8 inpathResolver.ts
Circular dependencies (2 cycles)
cliCredentialManager.ts->cliExec.ts->cli.ts->cliCredentialManager.ts(11 files affected)- A shorter cycle through the same area
Code duplication
- 73 clone groups detected, including repeated patterns in test setup and SSH config handling
Complexity hotspots
extension.ts:activate-- cognitive complexity 30workspacesProvider.ts:getChildren-- cognitive complexity 37remote.ts:setup-- cognitive complexity 32
Maintainability
- Overall maintainability index: 91.0 (rated "good")
What would be useful
- 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 mainto catch new dead code before it lands. - Circular dependency tracking -- the two cycles through
cliCredentialManager/cliExec/cliare 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 fallowscript and/or CI check for new dead code on PRs
- Vorherrschende Sprache
- TypeScript
- Sterne
- 132
- Forks
- 48
- Ø Merge
- 2 T. 5 Std.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus coder/vscode-coder
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
coder/vscode-coder#1141 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
OAuth follow-ups: DCR off by default on 2.38, unnoticed nightly scope failures, CLI inheriting CODER_SESSION_TOKENEvtl. vergeben @EhabY hat das vor 3 Tagen übernommen. Offenbug tech-debt
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
coder/vscode-coder#1140 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Improvement tech-debt vs-code
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
coder/vscode-coder#1135 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Migrate CI setup to pnpm/setupEvtl. vergeben @EhabY hat das vor 24 Tagen übernommen. Offentech-debt
coder/vscode-coder#1119 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Design the VS Code Workspaces panelEvtl. vergeben @chrifro hat das vor 27 Tagen übernommen. Offen
coder/vscode-coder#1113 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in coder/vscode-coder
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
better-auth/better-auth#11723 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: docs difficulty: easy documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden abEvtl. vergeben @KajoVanBuyten hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
AgentSystemLabs/agent-office#367 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pierrecomputer/pierre#1187 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: frontend bug
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
snapotter-hq/SnapOtter#2425 ·
Maintainer antworten meist innerhalb von 1 Tag