Is there a tool that can track unused code automatically

こ雲淡風輕ζ 提交于 2019-12-24 02:28:16

问题


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:


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



来源:https://stackoverflow.com/questions/6153761/is-there-a-tool-that-can-track-unused-code-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!