Is there any pants goal or idiom to find dead code...
# general
h
Is there any pants goal or idiom to find dead code, e.g. a library that is never used by anything? We have a lot of legacy Python code and trying to see what I can delete vs port ah looks like
./pants dependees
does the trick - very cool! Thanks to whoever added that functionality.
a
how are you invoking
./pants dependees
here? (and did you end up writing anything on top of it or were you able to use the
./pants dependees
output directly?)
h
I was doing
./pants dependees path/to/target
where target is the module I want to check if anything else is using. I used it directly and it seemed to work