apache-flexcode-cleanupflex-pmd

Is there a tool that can track unused code automatically


I currently have 6 different flex applications (widgets) that run on a main page. They all depend on one common library project.

I am currently cleaning up the codebase quite dramatically and it is hard to keep overview this way especially since I inherited the codebase.

Does anyone know a tool that can automatically inform me of any dead code?

Cheers


Solution

  • There are a few tools out there. I'd start with this one from Adobe; which I believe is written as an eclipse plugin.

    FlexPMD is another tool; also from Adobe.

    FlexCover is another.

    Keep in mind that the Flex Compiler will automatically remove unused classes from your final SWF; so removing these classes from your project will probably not affect the final SWF size. I can see it helping with long-term maintenance, though..