{"id":26208144,"url":"https://github.com/nikohoffren/dead-code-hunter","last_synced_at":"2025-12-25T13:54:22.996Z","repository":{"id":279219327,"uuid":"938058722","full_name":"nikohoffren/dead-code-hunter","owner":"nikohoffren","description":"Monitors errors, warnings, and dead code (unused variables and functions) in the file explorer.","archived":false,"fork":false,"pushed_at":"2025-02-25T16:33:06.000Z","size":534,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T14:55:33.802Z","etag":null,"topics":["dead-code","monitoring-tool","typescript","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikohoffren.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-24T11:01:20.000Z","updated_at":"2025-02-25T16:30:40.000Z","dependencies_parsed_at":"2025-02-24T13:21:59.523Z","dependency_job_id":"99907181-822f-4b07-9d58-630ffcc86b85","html_url":"https://github.com/nikohoffren/dead-code-hunter","commit_stats":null,"previous_names":["nikohoffren/dead-code-hunter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikohoffren%2Fdead-code-hunter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikohoffren%2Fdead-code-hunter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikohoffren%2Fdead-code-hunter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikohoffren%2Fdead-code-hunter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikohoffren","download_url":"https://codeload.github.com/nikohoffren/dead-code-hunter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243166022,"owners_count":20246828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dead-code","monitoring-tool","typescript","vscode-extension"],"created_at":"2025-03-12T06:19:28.040Z","updated_at":"2025-12-25T13:54:22.990Z","avatar_url":"https://github.com/nikohoffren.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Dead Code Hunter - VS Code Extension\n\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![PR:s Welcome](https://img.shields.io/badge/PR:s-welcome-green.svg)](https://github.com/nikohoffren/dead-code-hunter/pulls)\n[![Contributors Welcome](https://img.shields.io/badge/contributors-welcome-green.svg)](https://github.com/nikohoffren/dead-code-hunter/pulls)\n![GitHub repo size](https://img.shields.io/github/repo-size/nikohoffren/dead-code-hunter)\n\nDead Code Hunter is a Visual Studio Code extension designed to help developers track and manage unused code in their projects. It integrates with the VS Code diagnostic system to detect **errors**, **warnings**, and **dead code** (unused variables and functions) across your files and lists them in an easy-to-navigate panel. This allows you to quickly identify and clean up unused code, making your project more efficient and maintainable.\n\n\u003c/div\u003e\n\n## Features\n\n- **Track Errors**: Displays a list of files with errors, making it easier to fix problems in your code.\n- **Track Warnings**: Displays a list of files with warnings, helping you address potential issues early.\n- **Detect Dead Code**: Identify files that contain **unused functions** or **unused variables** (greyed-out code) and list them separately for review.\n- **Grouping and Filtering**: Errors, warnings, and dead code are grouped into separate sections for better organization.\n- **Clear List**: A button to clear the list of errors, warnings, and dead code in the panel.\n- **Auto-Expanding Sections**: The **Errors** and **Warnings** sections are expanded by default for immediate visibility.\n\nHere you can see the Dead Code Hunter panel in action. The panel shows a list of files with errors, warnings, and dead code. You can click on the items to open and fix the corresponding files. You can find the Dead Code Hunter panel in the bottom left of the Activity Bar of VS Code.\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/nikohoffren/dead-code-hunter/main/images/dead_code_hunter_screenshot2.png\" alt=\"Dead Code Hunter Panel\" style=\"width: 500px;\" /\u003e\n\u003c/div\u003e\n\n## Installation\n\n### 1. Install from Visual Studio Code Marketplace\n\nYou can directly install the Dead Code Hunter extension from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=niko-hoffren.dead-code-hunter).\n\n1. Open VS Code.\n2. Go to the Extensions panel (Ctrl+Shift+X or Cmd+Shift+X).\n3. Search for **Dead Code Hunter**.\n4. Click **Install**.\n\n### 2. Install Locally (for Development)\n\nIf you're working on the extension or want to run it locally:\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/nikohoffren/dead-code-hunter.git\n```\n\n2. Navigate to the extension folder:\n```bash\ncd dead-code-hunter\n```\n\n3. Install dependencies:\n```bash\nnpm i\n```\n\n4. Compile the extension:\n```bash\nnpm run compile\n```\n\n5. Launch the extension in VS Code:\nPress F5 to run the extension in a new VS Code window.\n\n## Usage\n\nOpen your project in VS Code.\nYou will see a Dead Code Hunter panel in the Activity Bar.\nThe panel will show:\n- Errors: Files with errors in your project.\n- Warnings: Files with warnings.\n- Dead Code: Files that contain unused code (e.g., greyed-out variables or functions).\nYou can click on the items in the panel to quickly open and fix the corresponding files.\nClick the \"Clear List\" button to reset the panel and remove all items.\n\n## Configuration\n\nThis extension automatically detects errors, warnings, and dead code based on the diagnostics provided by VS Code. You do not need to configure any settings to start using it, but you can always customize your diagnostics setup via your VS Code settings (e.g., ESLint or other linters).\n\n## Contributing\n\nContributions are welcome! If you'd like to contribute to the extension, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch `git checkout -b feature/your-feature-name`.\n3. Make your changes and commit them `git commit -am 'Add your feature'`.\n4. Push to your branch `git push origin feature/your-feature-name`.\n5. Create a new Pull Request.\n\n## License\n\nThis extension is licensed under the MIT License. See the [LICENSE](https://github.com/nikohoffren/dead-code-hunter/blob/main/LICENSE) file for more information.\n\n## Release package creation (for maintainers)\n\n- Update version in `package.json`\n- Run `vsce package` to create a new vsix release package for VS Code Marketplace.\n\n## Known Issues:\n\nCurrently, unused code is detected using basic heuristics. It may not catch all instances, depending on the language and tooling setup. Future improvements may integrate with advanced linters like ESLint for more thorough dead code detection.\n\n## Acknowledgements:\n\nThis extension uses VS Code's Diagnostics API to gather error and warning information.\nUnused Code Detection is based on diagnostic messages and may be further refined in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikohoffren%2Fdead-code-hunter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikohoffren%2Fdead-code-hunter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikohoffren%2Fdead-code-hunter/lists"}