code-quality/code-hygiene

code hygiene Shipped

What this lens looks for

When you replace or refactor code, delete what it supersedes in the same change; update or remove every reference on rename/move; delete commented-out code (version control is the history); remove orphaned files, functions, exports, types, assets, and config; drop now-unused dependencies; stay in scope — note (don't delete) pre-existing dead code, and never delete code you can't confirm is unused.

What its verifier checks

No old-and-new implementations left side by side and no permanently-off flags; every reference to renamed/moved symbols updated (no dangling imports/exports/paths); zero commented-out code blocks; no orphaned files/functions/types/assets after the change; unused dependencies removed from the manifest; out-of-scope dead code noted to the user rather than deleted; no code deleted without a confirming reference search.