From: Michael I. <mik...@ra...> - 2008-02-28 15:13:12
|
StatCVS team, I've made some modifications to StatCVS to support more advanced SLOC counting (i.e. blanks, comments, physical lines, etc.). I tried to keep the existing API intact as much as possible while building an extensible framework to support different code-counting tools. SCLC is implemented and I plan on also implementing USC's CodeCount. There are also many other things I'd like to finish (add new unit tests, more reports, remove some of my debugging code, general cleanup); however, I thought I'd share what I have all ready since it has the basic functionality in place. The new features are: * The simple built-in SLOC counter now differentiates blank from non-blank lines. * When using the SCLC counter you get comment line counts, physical lines counts, other line counts on the index page. The current patch is attached if you would like to incorporate the changes (note that in order to have SCLC match the old StatCVS count exactly you also need to patch SCLC for this issue http://code.google.com/p/sclc/issues/detail?id=4). Please feel free to suggest changes or improvements. Thanks, Michael |