Eclipse metrics plugin suggestion

29,312

Solution 1

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

Solution 2

CodePro AnalytiX originally form Instantiations is now free at Google:

http://code.google.com/javadevtools/download-codepro.html

Solution 3

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.

Solution 4

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

Solution 5

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.

Share:
29,312
Ben S
Author by

Ben S

Mobile Software Engineering Manager at Square currently working on Cash App iOS with a University of Waterloo bachelor's degree in Computer Science, Software Engineering Option. Previous experience at Google, Amazon.com, OpenText, Research In Motion, Sybase and Bridgewater Systems.

Updated on September 19, 2022

Comments

  • Ben S
    Ben S almost 2 years

    I'm looking for a tool to give me some code metrics (total LOCs, LOC/Class, # of external references/class, etc...).

    Does anyone know a good eclipse plugin that could provide me some some code metrics?

  • Ben S
    Ben S about 15 years
    This looks kind of old. Their latest news: "New release for Eclipse 3.1 2005-07-08".
  • Ben S
    Ben S about 15 years
    This is a snazzy one that creates warnings when the metrics start to show potential problems, but it doesn't seem to have a summary feature with overall stats.
  • akf
    akf about 15 years
    just installed it at home on the mac. looks good on 3.3.1.1
  • Bert F
    Bert F over 13 years
    I've been researching metrics plug-ins recently. Since this is the accepted answer, I wanted to point out to future readers looking for metrics plugins (like me) that a couple of the other answers mention 'metrics2'. The metrics2 project claims that metrics.sourceforge.net is discontinued, so metrics2 is intended to be a continuation of it. As of the writing of this comment, the last release was Jul 2010 and code was last committed as recently as 6 days ago.
  • kc2001
    kc2001 about 13 years
    Metrics2 (ebt's answer) is the current name of the updated version of the Metrics plug-in.
  • mpartel
    mpartel over 12 years
    Metrics 2 home page: metrics2.sourceforge.net
  • Yamikuronue
    Yamikuronue almost 12 years
    FYI: I can't get Metrics 2 to show up in a fresh install of Eclipse. It may or may not work anymore either.
  • Mark Levison
    Mark Levison over 11 years
    Works for me on fresh Install - Dec 2012. Check that you've done the show views thing :-) Dear Eclipse when I install a plugin the odds are on I want the views shown and the thing enabled without my having to step through every menu ever.
  • Eric Tobias
    Eric Tobias over 9 years
    The screenshot is no longer hosted at Imageshack, please update!
  • ChristopherStrydom
    ChristopherStrydom over 9 years
    Why are there no updated metrics plugins for Luna!
  • nofomopls
    nofomopls about 8 years
    metric 2 didn't work with eclipse mars