Is there a tool that can track unused code automat

2019-07-11 06:58发布

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

1条回答
神经病院院长
2楼-- · 2019-07-11 07:48

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..

查看更多
登录 后发表回答