DEV Community

I built a dead code forensics CLI because "this file is unused" is never enough (opens in new tab)

Discussed on DEV

Every senior developer has stared at a file and thought: should I delete this? You run vulture. You run deadcode. They both tell you the file has zero import sites. You hover over the delete key. And then you don't delete it. Because you don't actually know why it's there. The real question isn't "is it dead?" — it's "why is it dead?" Dead code falls into very different categories: Category A — Accidentally orphaned. A file that got left behind when the calling code was removed. Safe to delet...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help