Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

I beleive diffstat utility does that.

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

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