cloc

Al Danial·AlDanial.Cloc

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

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.

winget install --id AlDanial.Cloc --exact --source winget

Latest 2.12·November 13, 2026

Release Notes

This is a security release to address vulnerabilities in the handling of archive files (zip, tar, rpm, whl, gem, etc). A maliciously crafted archive file counted with cloc versions before this release can allow a remote code execution (RCE) attack. All users are encouraged to update to this (or newer, when available) version. New Languages and File Types:

  • AL (Business Central)
  • CUE
  • KDL
  • RON
  • Salam
  • Sema
  • Windows INF
  • Wren Updates:
  • Add ability to count contents of .gem files.
  • New switch --total to show total column counts
  • Make --exclude-lang case insensitive to make it consistent with --include-lang
  • Recognize comment markers in single quoted QML strings
  • Add .scp as an extension for SQL stored procedures
  • Add .inc as an extension for Assembly Bug fixes:
  • Secure handling of system calls to expand archive files.
  • Prevent regex timeouts in Swift.
  • Lower memory requirements when handling large XML/HTML and binary files.
  • Fix double-open on Windows when handling long paths.
  • Ensure an archive file is not a directory before attempting to extract it.

Installer type: portable

x64—B800034063AE3E3733CE34579D5D74CACD4DC4B842534D3F4B910D5A03EF63B1

Details

Homepage
https://github.com/AlDanial/cloc
License
GPL-2.0
Publisher
Al Danial
Support
https://github.com/AlDanial/cloc/issues
Copyright
Copyright (c) 2006-2018, Al Danial
Moniker
cloc

Tags

cloccount-linesprogramming-language

Older versions (7)

2.10
x64—97786C4B5BB71D2BE67E42061A2F5D03DB73BBF88228F8710001D770E867BBEF
2.08
x64—4529557D957ADE0DD45746EAE10E9C51EE01061BB617EEEAB256672FAF6E42C6
2.06
x64—bbe48de9102d0f2520d292d65897001c1d068340eb7cd74dd1ee30c1a9091c4a
2.04
neutral—89CDA0038BF4E13C6C13EBC1E60BEC4DFAD362E69AC8A5B8E2D5EBE3020359E1
2.02
x64—be033061e091fea48a5bc9e8964cee0416ddd5b34bd5226a1c9aa4b30bdba66a
2.00
x64—7A234EF0CB495DE1B5776ACF88C5554E2BAB1FB02725A5FB85756A6DB3121C1F
1.98
x64—88615D193EC8C06F7CEEC3CC1D661088AF997798D87DDFF331D9E9F9128A6782