Cloc counts and computes differences of 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


Release Notes: This release corrects malformed XML output introduced in version 1.54. Support for the Dart language was also added.


Release Notes: This release adds support for Ocaml, Smarty, Objective C++, CMake, Cython, and GNU autoconf .in files. Several bugs were fixed and new features added for the --diff capability.


Release Notes: This release adds support for Go and MXML, improves XML/XSLT output, and includes bug fixes for the --diff option.


Release Notes: This release adds support for Groovy, Scala, and XAML, improves the counters for Fortran and COBOL, and adds new options for ignoring whitespace when computing diffs and excluding files with given extensions. Several minor bugs in the diff option were also fixed.


Release Notes: This release fixes a bug on Windows related to output filename handling. Linux/Unix users do not need to upgrade from version 1.50.
A graphical daily journal with calendar, templates, and keyword searching.