Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux tool to show SLOC and SLOC modified, added, removed

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?

like image 615
DEzra Avatar asked Mar 06 '09 12:03

DEzra


1 Answers

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.

like image 125
Steve Roe Avatar answered Sep 23 '22 09:09

Steve Roe