Tool for identifying dead code

Bug #420338 reported by Jonathan Lange
12
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.

Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
tags: added: feature tech-debt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.