Dead Code Certifier is a Visual Studio Code extension that detects dead and unreachable code in TypeScript and JavaScript projects using control-flow analysis and cross-file reference analysis powered by the TypeScript Compiler API. It identifies unused exports, functions, variables, classes, types, and imports across a workspace while detecting unreachable code after terminators such as return, throw, break, or continue. Each finding is assigned a confidence score (0–100) with explanations to distinguish definite dead code from possible false positives, considering factors like decorators, dynamic access, entry points, and framework patterns. Results are displayed through inline diagnostics in the editor and a sidebar panel grouped by file with confidence indicators, allowing developers to quickly locate and safely remove unused code.
https://marketplace.visualstudio.com/items?itemName=NilenPatel.dead-code-certifier
Top comments (0)