有没有一种工具可以自动跟踪未使用的代码 [英] Is there a tool that can track unused code automatically

查看:164
本文介绍了有没有一种工具可以自动跟踪未使用的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有6个不同的Flex应用程序(小部件)在主页上运行。
他们都依赖于一个公共的库项目。

我目前正在清理代码库,很难保持这种方式,特别是因为我继承代码库。

有谁知道一个能自动告诉我任何死代码的工具?



干杯

解决方案

这里有几个工具。我将从这个 Adob​​e之一开始;我相信这是写成一个Eclipse插件。

FlexPMD is另一个工具;也来自Adobe。



FlexCover 是另一个。请记住,Flex编译器会自动从最终的SWF中删除未使用的类,所以从你的项目中删除这些类可能不会影响最终的SWF大小。我可以看到它帮助长期维护,虽然..


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

解决方案

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

这篇关于有没有一种工具可以自动跟踪未使用的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆