Eclipse Juno Metrics Plugins

ぐ巨炮叔叔 提交于 2019-12-20 16:31:11

问题


What eclipse metrics plugins exist for the JUNO release of eclipse? I have tried a few general purpose metrics plugins but non of them has functioned properly with the JUNO release of eclipse. Almost forgot, we are using Java as programming language.

I want metrics like cyclomatic-complexity, lines of code, method length, parameter excess and so on.


回答1:


Check out the following, which work fine on Juno:

  • checkstyle: code style, including method length and others
  • checkstyle again: duplicate code detection
  • checkstyle again: Cyclomatic Complexity
  • cobertura: for test coverage
  • findbugs: potential pitfalls in your code
  • Google Plugin for eclipse google's own code quality tools including test generation

I suppose you are not looking for profilers, but if you are, consider the (newly resurrected?) TPTP




回答2:


You may also chek the plug-in for Eclipse called "Metrics". It's and old one but it seems to work fine.

http://metrics.sourceforge.net/




回答3:


I found the https://github.com/leonardobsjr/metrics3 source code work fine with eclipse 4.5 :)

You need compile and export the plugins for yourself.

Or you can use my updatesite: https://github.com/qxo/eclipse-metrics-plugin/raw/master/updatesite/

from: https://github.com/qxo/eclipse-metrics-plugin

For Now (1.3.9) You must in "Java Perspective" for enable metrics with this plugin on a project (right-click project -> properties -> metrics -> "enable metrics").



来源:https://stackoverflow.com/questions/13515260/eclipse-juno-metrics-plugins

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