Windows · Developer Tools
Count Lines of Code (CLOC)
Cloc counts blank lines, comment lines, and physical lines of source code in many programming languages
Version 2.10.0 · by Al Danial
Official site: github.com
About Count Lines of Code (CLOC)
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages. Given two
versions of a code base, cloc can compute differences in blank, comment, and source lines. It is written entirely in
Perl with no dependencies outside the standard distribution of Perl v5.6 and higher (code from some external modules
is embedded within cloc) and so is quite portable. cloc is known to run on many flavors of Linux, FreeBSD, NetBSD,
OpenBSD, Mac OS X, AIX, HP-UX, Solaris, IRIX, z/OS, and Windows.
## Features
* Exists as a single, self-contained file that requires minimal installation effort---just download the file and run it
* Can read language comment definitions from a file and thus potentially work with computer languages that do not yet exist
* Allows results from multiple runs to be summed together by language and by project
* Can produce results in a variety of formats: plain text, SQL, JSON, XML, YAML, comma separated values
* Can count code within compressed archives (tar balls, Zip files, Java .ear files)
* Has numerous troubleshooting options
* Handles file and directory names with spaces and other unusual characters
* Has no dependencies outside the standard Perl distribution
* Runs on Linux, FreeBSD, NetBSD, OpenBSD, Mac OS X, AIX, HP-UX, Solaris, IRIX, and z/OS systems that have Perl 5.6 or higher
* The source version runs on Windows with either ActiveState Perl, Strawberry Perl, Cygwin, or MobaXTerm+Perl plugin
* On Windows one can run the Windows binary which has no dependencies

## Notes
* Current versions of cloc provide 64-bit support only - for a 32-bit operating system use [cloc 1.84](https://chocolatey.org/packages/cloc/1.84).
How to install Count Lines of Code (CLOC)
- Click Download — the developer's official website opens in a new tab.
- Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
- Prefer the command line? With Chocolatey you can install and update it with: choco install count-lines-of-code-cloc
- Open Count Lines of Code (CLOC) once it finishes installing.
Frequently asked questions
Is Count Lines of Code (CLOC) free to download?
Yes. The Download button sends you to github.com, the developer's official site, where Count Lines of Code (CLOC) is available to download. Grabware doesn't host or modify any files.
What is the latest version of Count Lines of Code (CLOC)?
The version listed here is 2.10.0, published /Date(1783. The developer's site always has the newest release.
How do I install Count Lines of Code (CLOC) from the command line?
With Chocolatey, run: choco install count-lines-of-code-cloc. This installs it from the official source and keeps it updated.
Is Count Lines of Code (CLOC) safe?
Count Lines of Code (CLOC) downloads directly from the developer. As always, scan the installer with your antivirus and choose Custom setup to skip any bundled extras.
Alternatives to Count Lines of Code (CLOC)
More
March 2014 servicing stack update for Windows 8.1 and Windows Server 2012 R2 (KB2919442)The update fixes some issues in the servicing stack of Windows 8.1 and Windows Server 2012 R2.Chocolatey Compatibility ExtensionExtension package to provide compatibility with older versions of Chocolatey
Update for Universal C Runtime in Windows (KB2999226)Update for Universal C Runtime (CRT) in Windows. Before you install this update, check out the prerequisites section.