SLOC or KLOC Lines of Code Measure

If you are having a problem using Vault, post a message here.
Post Reply
jcohron
Posts: 10
Joined: Mon Jun 03, 2013 11:00 am

SLOC or KLOC Lines of Code Measure

Post by jcohron » Tue Aug 06, 2013 7:38 pm

I am looking for the ability to measure developers productivity. One method is tracking now many lines of code are written in a given day/week/month. Using that information and measuring number of bugs introduced helps me measure quality of development.
Does Vault Pro have this, I have not been able to find any report that will tell new 'New/Added lines' checked in.

http://en.wikipedia.org/wiki/Source_lines_of_code
http://whatis.techtarget.com/definition ... es-of-code

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: SLOC or KLOC Lines of Code Measure

Post by lbauer » Wed Aug 07, 2013 8:11 am

Vault does not have a built-in feature to count lines of code.

You might be able to write something using the Vault Client API:

--Lines of code added between two dates - API with Show Blame
--Lines of code in a version - API and do a line count on the file on which you did a GET
--Lines of code in a directory - API to do a folder GET and line count on each file
--Lines of code w/ comment w/ out comment (API to do a history, then GET, then line count).

Another option:
Code Collaborator from SmartBear provides full metrics, reports, and data-export, and integrates with Vault:
http://support.smartbear.com/viewarticle/20485/

It's not clear whether they support Vault 6; if you're interested in pursuing this route, let me know and we'll contact them about integration with Vault 6 and 7.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply