Question

I wrote a fairly large program using Eclipse. I'd like to brag a bit about my 920 lines of code, but that's not a realistic number. Is there a way I can figure out the total number of executable lines (ignoring carriage return, comments, and perhaps brackets)?

Was it helpful?

Solution

You can use an Eclipse plugin like Metrics2 (see Metrics for older version) for that.

As stated on the Metrics2 page:

The project was first initiated by Frank Sauer, but since there was no update for latest JDK and Eclipse, I've decided to Fork and update the project. I would like to thank Frank for all the work he did by starting this. The discontinued project can be found here.

There is also CodePro AnalytiX that I heard of, but actually never tested, so cannot say much about it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top