Cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. It is written entirely in Perl, using only modules from the standard distribution of Perl 5.6 and higher, and so is quite portable.
| Tags | Utilities Software Development Refactoring Documentation Text Processing Filters Quality Assurance |
|---|---|
| Licenses | GPL |
| Operating Systems | OS Independent |
| Implementation | Perl |
Recent releases


Changes: This release fixes a null output problem encountered by Subversion and CVS users by always ignoring .svn and .cvs subdirectories. Lines of Perl POD are now treated as comments. New options improve the appearance of XML output and allow greater control over files which are to be ignored.


Changes: This release adds support for the VHDL language and improves the filter that distinguishes between MATLAB, MUMPS, and Objective C files. Additionally, the tool now processes archive files directly on Unix-like operating systems. One can issue, for example, "cloc perl-5.10.0.tar.gz" to count code within this compressed tar file.


Changes: This release fixes a bug introduced in 1.05 that prevented --extract-with from working.


Changes: This release adds the languages ActionScript and D, adds four new file processing options, and improves language filters for Python (triple quoted strings are now treated as comments) and JSP (added C/C++ style comment recognition). A bug in the duplicate file identification code was corrected, and results sent to STDOUT are now always column-aligned.


Changes: This release adds a new option, --unicode, for counting lines in files encoded with UTF-8. Also, the --progress-rate option now accepts a value of zero to suppress progress rate output.
A client for transmission-daemon, a headless bittorrent client.