CountLines. Thats what CountLines does.

I am kind of confused… I really don’t know, where to put this thread ???
In Showcase ? No, thats not even a game. In SharedCode ? No, I don’t even show any code of this project.
So I just put it in “General Discussions”, I think that is the best solution…

Riven or anyone else, move this, if this is wrong :slight_smile:

So. Now back to topic:
Count lines with CountLines. Believe me, he is friendly… lol :smiley:
If you start the program, you get some info printed, and the program waits for you to press Enter.
If you do so, it will count the lines, and make some more statistics about your .java files, recursivly under the directory, the .jar is placed in.
Enjoy!
Better download first.

find . -name \*.java -print0 | xargs -0 wc

?

Its more than that. You could download it, and then look :stuck_out_tongue:

I’ve used CLOC, but I don’t like the output too much. I tried this one, but its output isn’t what I’m looking for either. I generally just want to know how many lines a project is. Comments don’t count. Lines with just braces don’t count. Your statistics are ok, but you don’t have the useful number I’m looking for. I could subtract from total lines: empty lines, comment lines, etc but that is too much effort. Also I’m not sure how you are handling lines that aren’t empty but aren’t very useful (eg only braces).

Counting only lines containing semicolons is usually a more meaningful estimate for java code. It’ll count commented-out code and examples, but when you think about it, it’s still code you’ve written, even if it’s not executed.

Even then, code density varies. It’s really just a way to gauge the ballpark size of a codebase in the end, and only really good for comparing with code written in the same style (such as modules in the same codebase)

Hey, I ran it and the format is hardly legible (atleast the very end tally) because it is all offset.

cool program though :slight_smile:

Braces won’t count. They are count as “empty lines”.

Good Idea… I’ll include it probably…

First, thanks, second yes… I simply used a dumb formatter… I haven’t got any Idea, how to improve that, (exept for using JNCurses…)