René's URL Explorer Experiment


Title: Investigate adding fallow for dead code and codebase health analysis · Issue #883 · coder/vscode-coder · GitHub

Open Graph Title: Investigate adding fallow for dead code and codebase health analysis · Issue #883 · coder/vscode-coder

X Title: Investigate adding fallow for dead code and codebase health analysis · Issue #883 · coder/vscode-coder

Description: 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-...

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/coder/vscode-coder/issues/883

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Investigate adding fallow for dead code and codebase health analysis","articleBody":"## Summary\n\n[fallow](https://github.com/fallow-rs/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.\n\n## Trial run on this repo\n\nI ran `npx fallow` against the current codebase. It analyzed 213 files in **0.34 seconds** and found:\n\n### Dead code\n- **2 unused files** -- `.vscode-test.mjs` and `test/mocks/vscode.runtime.ts`\n- **5 unused exports** -- `getEventName`, `AgentMetadataEventSchema`, `REMOTE_SSH_EXTENSION_IDS`, `RemoteSSHLogPortRegex`, `MockOAuthInterceptor`\n- **15 unused type exports** -- across `exec.ts`, `eventStreamConnection.ts`, `sshConfig.ts`, `remote.ts`, and others\n- **119 unused class members** -- mostly in test mock helpers (46 in `testHelpers.ts` alone), but also 8 in `coderApi.ts` and 8 in `pathResolver.ts`\n\n### Circular dependencies (2 cycles)\n- `cliCredentialManager.ts` -> `cliExec.ts` -> `cli.ts` -> `cliCredentialManager.ts` (11 files affected)\n- A shorter cycle through the same area\n\n### Code duplication\n- **73 clone groups** detected, including repeated patterns in test setup and SSH config handling\n\n### Complexity hotspots\n- `extension.ts:activate` -- cognitive complexity 30\n- `workspacesProvider.ts:getChildren` -- cognitive complexity 37\n- `remote.ts:setup` -- cognitive complexity 32\n\n### Maintainability\n- Overall maintainability index: **91.0** (rated \"good\")\n\n## What would be useful\n\n1. **Dead code cleanup** -- the unused exports and types are low-hanging fruit. Fallow can auto-fix these with `fallow fix --dry-run`.\n2. **CI integration** -- fallow has a GitHub Action that can run on PRs with `--since main` to catch new dead code before it lands.\n3. **Circular dependency tracking** -- the two cycles through `cliCredentialManager`/`cliExec`/`cli` are flagged as the top refactoring targets.\n\n## Caveats\n\n- 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.\n- 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.\n\n## Suggested next steps\n\n- Review the unused exports/types and clean up what is genuinely dead\n- Decide if fallow should be added as a dev dependency or just run ad-hoc\n- Consider adding a `pnpm fallow` script and/or CI check for new dead code on PRs","author":{"url":"https://github.com/EhabY","@type":"Person","name":"EhabY"},"datePublished":"2026-04-11T14:57:54Z","url":"https://github.com/coder/vscode-coder/issues/883"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:953092fa-d580-7a25-6cf1-1aecb80d376f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC6CA:225B46:17711A:1FB12A:6B042FCC
html-safe-nonce75bae781bd1631624918f8c74b836b44c1b3f8c3e65a87709b68dcd1f7dd598b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkNBOjIyNUI0NjoxNzcxMUE6MUZCMTJBOjZCMDQyRkNDIiwidmlzaXRvcl9pZCI6Ijg3NTU4Mzc0MjgzODg0NTM4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbd701dac48bce6417345000b8dd16a69d17c4092bde203b3e6686fbce1906bdb
hovercard-subject-tagissue:4244948932
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/vscode-coder/883/issue_layout
twitter:imagehttps://opengraph.githubassets.com/086ee0bd31354c113b5d0bbafbaecbefb9d50668effeff0308343874f8208a67/coder/vscode-coder/issues/883
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/086ee0bd31354c113b5d0bbafbaecbefb9d50668effeff0308343874f8208a67/coder/vscode-coder/issues/883
og:image:altSummary 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEhabY
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/coder/vscode-coder git https://github.com/coder/vscode-coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id582550891
octolytics-dimension-repository_nwocoder/vscode-coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id582550891
octolytics-dimension-repository_network_root_nwocoder/vscode-coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/vscode-coder/issues/883#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fvscode-coder%2Fissues%2F883
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fvscode-coder%2Fissues%2F883
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fvscode-coder
Reloadhttps://github.com/coder/vscode-coder/issues/883
Reloadhttps://github.com/coder/vscode-coder/issues/883
Reloadhttps://github.com/coder/vscode-coder/issues/883
coderhttps://github.com/coder
vscode-coderhttps://github.com/coder/vscode-coder
Codehttps://github.com/coder/vscode-coder
Issues23 (23)https://github.com/coder/vscode-coder/issues
Pull requests5 (5)https://github.com/coder/vscode-coder/pulls
Actionshttps://github.com/coder/vscode-coder/actions
Projectshttps://github.com/coder/vscode-coder/projects
Security and quality8 (8)https://github.com/coder/vscode-coder/security
Insightshttps://github.com/coder/vscode-coder/insights
https://github.com/coder/vscode-coder
New issuehttps://github.com/login?return_to=https://github.com/coder/vscode-coder/issues/883
New issuehttps://github.com/login?return_to=https://github.com/coder/vscode-coder/issues/883
Chorehttps://github.com/coder/vscode-coder/issues?q=type:"Chore"
Investigate adding fallow for dead code and codebase health analysishttps://github.com/coder/vscode-coder/issues/883#top
https://github.com/EhabY
https://github.com/EhabY
EhabYhttps://github.com/EhabY
on Apr 11, 2026https://github.com/coder/vscode-coder/issues/883#issue-4244948932
fallowhttps://github.com/fallow-rs/fallow
linear-codehttps://github.com/apps/linear-code
EhabYhttps://github.com/EhabY
on Apr 15, 2026https://github.com/coder/vscode-coder/issues/883#event-24526333404
EhabYhttps://github.com/EhabY
Chorehttps://github.com/coder/vscode-coder/issues?q=type:"Chore"
on Apr 29, 2026https://github.com/coder/vscode-coder/issues/883#event-24998983293
https://github.com/BartWaardenburg
BartWaardenburghttps://github.com/BartWaardenburg
on May 19, 2026https://github.com/coder/vscode-coder/issues/883#issuecomment-4488711444
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/vscode-coder/issues/883
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/vscode-coder/issues/883
EhabYhttps://github.com/EhabY
Chorehttps://github.com/coder/vscode-coder/issues?q=type:"Chore"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.