logoalt Hacker News

Show HN: Rev-dep – 20x faster knip.dev alternative build in Go

27 pointsby jayu_devtoday at 6:47 PM6 commentsview on HN

Comments

silverwindtoday at 8:17 PM

I prefer to have unused code detected during linting, but sadly, eslint has decided to kill off the APIs that support rules like `no-unused-modules`. Running a separate tool like this one or knip in place of a few lint rules just seems impractical.

show 1 reply
e1gtoday at 7:20 PM

+1 for the idea. Enforcing hard boundaries between is surprisingly helpful for AIs to reason about how to structure their changes.

We recently rolled out our own static analysis using oxc-parser and oxc-resolver, and it runs surprisingly fast (<1s for ~100K LOC). For us, it was definitely worth adding this layer of defence against The Slop.

show 1 reply
esafaktoday at 7:27 PM

Looks good; I'm eager to try it. Do you have any questions?