Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

utitility to find code metrics? (lines of code, etc)

 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm looking for a utility that kind find lines of code, # methods, # classes, that kind of thing... for a java project I created.

I tried using CCCC (C and C++ Code Counter) -- it also does Java. But it didn't get # methods.

Anyone have any utitlity they've used before. I'm using IntelliJ, so I don't know if there are any plug-ins out there that I couldn't find that work with IntelliJ.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read my article?
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google for "java static source analysis" or words like that. "static" means it reads your source code as opposed to tools that watch a running system.

There are a number of open source and commercial tools that do the kind of counts you mention, plus a whole world of good inforamation about package and class dependencies. JDepends and JTest do dependency analysis based on Robert Martin's metrics for what is "good".
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MetricsReloaded plugin for IntellJ, just go to your plugin list in the settings area.

I used it before and it gives lots of information.

Mark
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
excellent! Thanks Mark -- I knew some lovely person out there had to have created a plugin for IntelliJ. That thing has tons of metrics.

And no Lasse, I was a bad Sheriff and haven't yet read your article. I'll check it out! I'm doing a research project at school about generating system tests and figuring out how well they cover the code.

Thanks to the other suggestions too. Its much appreciated.
[ September 29, 2004: Message edited by: Jessica Sant ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic