Grabware

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

Download

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

![screenshot](https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@5666967194fd19b53cf4dbf35b22496b1997c1bc/automatic/cloc/screenshot.png)

## 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)

  1. Click Download — the developer's official website opens in a new tab.
  2. Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
  3. Prefer the command line? With Chocolatey you can install and update it with: choco install count-lines-of-code-cloc
  4. Open Count Lines of Code (CLOC) once it finishes installing.
How to install Windows software with Chocolatey

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