We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
CodePro AnalytiX 最初形成 Instantiations,现在在 Google 上免费:
http://code.google.com/ javadevtools/download-codepro.html
CodePro AnalytiX originally form Instantiations is now free at Google:
http://code.google.com/javadevtools/download-codepro.html
这里是一个称为“指标”的指标。
编辑:
我在 Eclipse 3.3.1.1 中为这个屏幕截图编写了一个简短的程序:
编辑 2
指标新版本 感谢@mpartel 提供的链接
here is one called Metrics.
edit:
i put together a short program for this screenshot in eclipse 3.3.1.1:
Edit 2
Metrics New version Thanks @mpartel for the link
对于死尸帖子感到抱歉,但这似乎是正确的做法,因为这是我的起点。 尝试 Metrics2,它是原始指标插件的一个分支,是为 Eclipse 3.5 构建的。
Sorry for the necropost but it seems like the right thing to do since this was my starting point. Try Metrics2, its a fork of the original metrics plugin and is built for Eclipse 3.5.
上述 Metrics 插件的更新版本应该可以满足您的需求。 它可以聚合一些测量结果(例如,将包中类的 LOC 相加,得到包的 LOC)并将测量结果导出到 XML。 在不久的将来的某个时候,它还应该将它们导出到关系数据库。
There is an updated version of the Metrics plug-in described above that should do what you need. It can aggregate some of the measurements (e.g. add up the LOC of classes in a package to give you the LOC of the package) and export the measurements to XML. Some time in the near future, it should also export them to a relational database.
如果您只需要 LOC,请使用 locmetric http://www.locmetrics.com/ 。 如果您想检查指标和代码覆盖率,请使用 SONAR 或 Eclips CodePro Analytix 插件。
我建议使用 https://developers.google.com/java-dev- tools/codepro/doc/ 它具有自动化工具来测量 Java 源代码的质量和代码覆盖率
If you want LOC only then use locmetric http://www.locmetrics.com/ . and if you want check metric and code coverage usse SONAR or Eclips CodePro Analytix plugin.
i suggest to use https://developers.google.com/java-dev-tools/codepro/doc/ it has Automated tools measure quality of Java source code and code coverage
搜索 eclipse code+metrics 出现 http://eclipse-metrics.sourceforge.net/,看起来不错。
A search for eclipse code+metrics turns up http://eclipse-metrics.sourceforge.net/, which looks good.
我还推荐 eclipse-metrics 插件。
它能够将指标导出为 html,并且能够通过 ant 任务执行此操作(至少根据文档,我从未尝试过)。
该插件甚至在 Eclipse 3.5 中也能正常工作。
I also recommend the eclipse-metrics plugin.
It is capable of exporting the metrics into html, and is capable of doing this from an ant task (at least according to the documentation, I have never tried it).
The plugin works even in Eclipse 3.5 fine.
声纳似乎值得一看: http://docs.codehaus.org/显示/SONAR/在+Eclipse中安装+Sonar+
Sonar seems worth to look at: http://docs.codehaus.org/display/SONAR/Installing+Sonar+in+Eclipse
另一个不错的项目是 projectusus,它不仅向您显示指标,还向您显示您是否尊重是否符合标准,并提示您应该重构哪些内容
Another good project is the projectusus, which shows you not only the metrics but also whether you are respecting the standards or not and gives you a hint of what should be refactored