Tool for identifying dead code
Bug #420338 reported by
Jonathan Lange
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Launchpad is really big. So big, that there's probably a fair chunk of Launchpad's code that's not used at all ever. It would be really nice to get rid of it.
Since we have a fairly comprehensive test suite, we could write a tool that did something like:
- run the test with the --coverage flag. Since this takes a very long time, it would probably need to be done on a server or cloud instance.
- parse the output, looking for entire functions (blocks?) that are uncalled
- print these functions in a nice way, preferably one that's easy to jump to in Emacs
The tool would probably need a way of letting the user identify that a function should be kept, even though it's uncalled.
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: feature tech-debt |
To post a comment you must log in.