
*/ do (cd "$d" & echo "$d" & cloc -vcs git) done

This example uses bash (scroll down for cmd.exe example): prompt> for d in. You can use your shell's loopingĬapability to count the code in each. Say you have a directory with three different git-managed projects,

AlDanial/cloc v 1.73 T=0.15 s (223.1 files/s, 46159.0 lines/s)Įach subdirectory of a particular directory v 1.65 T=0.07 s (26.8 files/s, 141370.3 lines/s)Ī git repository, using a specific commit We'll pull cloc's source zip file from GitHub, then count the contents: prompt> wget Released version ( cloc-1.94.pl) or a Windows executable The executable name differs depending on whether you use theĭevelopment source version ( cloc), source for a Step 3: Invoke cloc to count your source files, directories, archives, Step 2: Open a terminal ( cmd.exe on Windows). The source version of cloc requires a Perl interpreter, and theĭocker version of cloc requires a Docker installation. The Windows executable has no requirements. Step 1: Download cloc (several methods, see below) or run cloc'sĭocker image.

Requesting Support for Additional Languages.Complex regular subexpression recursion limit.Third Generation Language Scale Factors.Cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.Ĭloc moved to GitHub in September 2015 after being hosted
