Cloc is a software tool that can be used to count the blank lines, comment lines, and physical lines in a variety of programming languages.
Users of the software should note that, to run the Perl source version of Cloc on Windows, they will need to have ActiveState Perl 5.6.1 or higher, or Cygwin installed.
Some of the standout features of Cloc include its self-contained file, which requires minimal installation effort; the ability to read language comment definitions from a file, potentially enabling the software to work with computer languages not yet in existence; the capacity to sum together the results of multiple runs by language and project; and the ability to count code within compressed archives.
Cloc also has numerous troubleshooting options, can handle file and directory names with spaces and other unusual characters, and has no dependencies outside of the standard Perl distribution. It runs on Linux, FreeBSD, NetBSD, AIX, HP-UX, Solaris, IRIX64, and z/OS systems that have Perl 5.6 or higher, as well as on Windows, with or without Perl.
Notably, the latest release of Cloc includes a new option for counting lines in files encoded with UTF-8, as well as an update to the --progress-rate option, which now accepts a value of zero to suppress progress rate output. All considered, Cloc is a robust and versatile tool that is well worth adding to any software arsenal.
Version 1.08: N/A