cloc

cloc

Counts blank lines, comment lines, and physical lines of source code in many programming languages.

Category
Text
License
GNU
Platforms
Windows macOS Linux Docker
Released
2006
Path
c:\cloc\cloc.exe
Notes
Supports CFML and cfscript
Version
Latest known: 2.08 (2026-01-25)

Examples

1. Returns a report of code lines. Has support for CFML and cfscript.

cloc.exe index.cfm

2. Count the contents using a ZIP file

cloc.exe master.zip

3. Count the contents while ignoring some entries based on regex filter

cloc.exe . --not-match-f=".*\.github" --not-match-f=".*\.vscode"

4. Compute differences of physical lines of source code and comments between any pairwise combination of directory names, archive files or git commit hashes.

cloc.exe --diff d:\coldbox-platform-development.zip d:\www\myColdBoxWebFolder

Try it

Agree to terms to run demos.