Reputation: 13
More specifically, I'm looking for how to count the number of lines in all files within a directory recursively through all directories. I can simply repeat on each the two different versions of the project to get a comparison figure.
Alternatively, since subversion has a fairly robust diff functionality, is it possible to mutate a diff between the two versions to obtain an absolute difference of lines of code?
Either solution would help me out greatly.
Upvotes: 1
Views: 1699
Reputation: 1300
You didn't specify your platform, but if it happens to be *nix (including cygwin under windows), you could try sloccount. I use it quite a bit for a number of different languages and am very happy with it.
Upvotes: 1
Reputation: 2799
There are some fantastic tools for counting lines of code as it is a valuable metric. They include options like ignoring whitespace and comments.
Just do a google search for a line counter specific to what you need.
Upvotes: 2