cloc is a Open Source Windows program in the Developer Tools category, developed by Al Danial. The current version is 2.08; you can download it safely from its official source with the download button above.
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.
✨ Features
cloccount-linesprogramming-language
📝 Release notes (2.08)
New Languages and File Types:
- Activiti Business Process
- Aria
- AXAML
- Bicep
- BitBake
- Clarity
- Haskell Boot
- Hibernate
- JSP Tag Library Definition
- Jasper Report XML/Template
- Justfile
- Liquibase
- Magik
- VSCode Workspace
- Yarn
Updates:
- Support input through process substitution on Unix-like operating systems (example: cloc <(git diff HEAD~1 HEAD --name-only) )
- Improve Perl filter for POD (plain old documentation) handling.
- --quiet now suppresses all informational output including error messages unless new switch --show-errors is also given.
- Add .cts extension for TypeScript.
- Renamed "VB for Applications" to "VBA"
- Add .vbhtml extension for Visual Basic .NET
- Renamed "Visual Basic Script" to "VBScript"
- New switch --include-submodules (applies to --vcs=git) to include git submodule files in the count.
- Revert back to manual build of Windows executable to avoid issues with symlinks seen with winget on executables created in Github Actions.
Bug fixes:
- Handle empty files when using --git --diff.
- Replace "Nothing to count." output with valid formatted output (JSON, etc) when no files are found to count.
- Fix language definition parse errors with --read-lang-def, --force-lang-def (specifically, update matching regex to allow leading '.' as in .NET)
SHA-256: 4529557D957ADE0DD45746EAE10E9C51EE01061BB617EEEAB256672FAF6E42C6