views:

320

answers:

3

Hi,

I am currently using the SLOCCOUNT tool for gaining source lines of code (SLOC) for a codebase.

However, it doesnt support comparing two versions of the codebase and then report:

  • Lines of code (LOC) modified
  • LOC removed
  • LOC added

Can anyone suggest a linux based (preferably free) tool to do this?

+1  A: 

I beleive diffstat utility does that.

Eugene Morozov
+1  A: 

It sounds like SLOCCount and SLOC Compare can show you the trend over time, but it isn't exactly what you are looking for.

CoverosGene
+1  A: 

I've used CODECOUNT for differencing baselines. This compares changes, deletions and additions between different code bases. It's provided free of charge by the University of Southern California.

They only provide source code. However, it built cleanly out of the zip file in cygwin using g++. They also claim support for Visual Studio, but I have not tried it.

Steve Roe