Search code examples
svn

How can I ignore .svn directories when using sloccount?


I'm trying to use sloccount from within hudson to gather statistics on our codebase, however by default sloccount collects information on all files, even those which are "hidden" (eg. .hideme). This means the statistics are skewed since they include numbers from files within the .svn directories.

Is there any way I can tell sloccount to correctly ignore any files/directories which start with a .?


Solution

  • My final approach was to remove the .svn directories from the sed output:

    sloccount --wide --details $DIR | sed "/\/\.svn\//d" > sloccount.sc