cloc

Developer ToolsGPL-2.0

Counts blank, comment and code lines in source files across many languages.

Latest v2.10 · by Al DanialWritten in PerlWebsiteAlDanial/clocRSS

Release activity

Release activity — 2 releases across 2 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Jul 21, 2026No releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Jul 24, 2026No releases on Jul 31, 2026No releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026
SaturdayNo releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026

2 releases in the last year

Changelog

What changed from 1 to 2

v2.10

Latest
Added 9
  • Add support for the beluga language
  • Add support for the C3 language
  • Add support for CodeQL files
  • Add support for the DAML language
  • Add support for the Quxlang language
  • Add support for the Rhai language
Changed 3
  • Skip the contents of .venv directories
  • Update the wscript implementation, which is a filename rather than an extension
  • Update the BibTeX entry in the README
Fixed 1
  • Fix handling of nested archive files, such as a zip file inside a zip file

From cloc

New Languages and File Types:
  • beluga
  • C3
  • CodeQL
  • DAML
  • Quxlang
  • Rhai
  • Slang
Updates:
  • Skip contents of .venv directories.
  • Update wscript implementation (this is a filename, not an extension).
  • Updated BibTeX entry in the README.
  • Add support for --by-percent with --fmt formatting styles.
  • Support process substitution as input to --sum-reports (Unix-like operating systems only).
Bug fixes:
  • Fix handling of nested archive files (ie, a zip file inside a zip file).
View originalPermalink
How v2.10 went

v2.08

Added 19
  • Support input through process substitution on Unix-like operating systems
  • Add support for Activiti Business Process files
  • Add support for Aria files
  • Add support for AXAML files
  • Add support for Bicep files
  • Add support for BitBake files
Changed 5
  • Improve Perl filter for POD (plain old documentation) handling
  • --quiet now suppresses all informational output including error messages unless the new switch --show-errors is also given
  • Renamed "VB for Applications" to "VBA"
  • Renamed "Visual Basic Script" to "VBScript"
  • Revert back to manual build of Windows executable to avoid issues with symlinks seen with winget on executables created in GitHub Actions
Fixed 3
  • 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 and --force-lang-def by updating the matching regex to allow a leading '.' as in .NET
View originalRead the notes
How v2.08 went
v2.06

2.06

Added 16
  • Support for the Cangjie language
  • Support for the Elixir Script language
  • Support for Fortran 2003
  • Support for the Jsonnet language
  • Support for the Nextflow language
  • Support for the Nushell language
Changed 7
  • Removed the -> separator in --show-ext output
  • Removed leading blank space for --fmt output written to STDOUT
  • Changed the sequence of Python language filters so docstrings are handled before #
  • Jenkinsfile is now recognized as Groovy
  • Improved Windows/Unix path conflict handling when using --git --diff in git-bash terminal
  • On Windows, the git archive command used with --git --diff uses zip format instead of tar
  • Updated the Windows executable to work better with the Microsoft winget package manager
Fixed 6
  • Removed the file irregular"file2.md from the test suite, as filenames with embedded double quotes are illegal in Windows and caused git pull problems
  • Removed duplicate percent entry in options handling
  • Support for --exclude-lang in --diff mode
  • Fixed --exclude-lang when used in diff mode and all files are additions or deletions
  • On Windows, removed temporary SCALAR(0x..) files created when using --fmt
  • Handled --by-file for JSON and YAML outputs with single and double quotes in file names
View originalRead the notes
How v2.06 went

v2.04

Added 11
  • Support for counting Blueprint files
  • Support for counting Cadence files
  • Support for counting Civet files
  • Support for counting MoonBit files
  • Support for counting Pek files
  • Support for counting Pkl files
Changed 2
  • Follow file renames when pairing files for --git --diff
  • Slight performance improvement for --help by installing temporary modules later
Fixed 5
  • Better handling of Vuejs
  • Better handling of Oracle PL/SQL
  • Better error message on failure to count .src.rpm files if external tools are not installed
  • Non-Glade .ui files are identified as 'XML (Qt/GTK)' instead of 'Qt'
  • File filter rules are applied with --no-recurse
View originalRead the notes
How v2.04 went

v2.02

Added 13
  • Support for the Arturo language and file type
  • Support for Glimmer JavaScript language and file type
  • Support for Glimmer TypeScript language and file type
  • Support for the Luau language and file type
  • Support for the Modelica language and file type
  • Support for the Mojo language and file type
Changed 2
  • Eliminate the need to write temporary files when using --fmt
  • Improve handling of C comments in Go strings
Fixed 4
  • Restore Dockerfile CI by fixing CPAN module setup that stopped installing Parallel::ForkManager
  • Improve --fmt output column alignments
  • Handle --no-match when combined with --fullpath and --vcs
  • Symlink problem when installed via winget, resolved by a second Windows executable cloc-2.02-winget.exe that includes PR #850
View originalRead the notes
How v2.02 went

v2.00

Added 13
  • Added support for new languages and file types: AnsProlog, AppleScript, ArkTs, Astro, Dafny, PlusCal, Prisma Schema, PRQL, Slint, Snakemake, TLA+, and vyper
  • Added five new output formats selectable with the new --fmt switch, including language name with --by-file counts
  • Added .j2 as a Jinja Template file extension
  • Added .mts as a TypeScript file extension
  • Added .iuml, .pu, .plantuml, and .wsd as PlantUML file extensions
  • Added support for Java block comments
Changed 5
  • Files matching *.o.d are now ignored
  • Ignore .gitattribute files
  • Improved support for --exclude-list-file
  • More consistent and accurate results from --diff
  • Disambiguated .inc files among PHP, Pascal, and Fortran
Fixed 4
  • Fixed JSON output generator inserting a superfluous comma
  • More accurate counts of XML with block comments
  • More accurate counts of Java with block comments and comment markers within strings
  • Fixed improper handling of --match-d and --not-match-d
View originalRead the notes
How v2.00 went

v1.98

Added 4
  • Added support for .editorconfig files as an INI extension.
  • Added .cppm, .ixx, .ccm, .cxxm, and .c++m as C++ file extensions.
  • Added the --include-content=regex switch to only count files whose content matches the given regex.
  • Added the --only-count-files switch to count files only, with blank, comment, and code line counts reported as zero.
Changed 6
  • Improved handling of trailing slashes with --match-d.
  • The --not-match-d and --not-match-f options can now be repeated.
  • Quiet mode is now enabled automatically when STDOUT is not a terminal, producing cleaner output when piping to other programs.
  • Improved exclusion of autogenerated files on Windows.
  • Improved handling of path separators with git in PowerShell.
  • The --hide-rate option now supports all output file types.
Fixed 5
  • The --exclude-list-file option now works as expected when used with --git.
  • The --no-recurse option now works on Windows.
  • Resolved nondeterministic output of --diff.
  • Fixed --diff-list-file handling when a listed file is unknown.
  • Fixed parsing of the verbose option in the cloc configuration file.
View originalRead the notes
How v1.98 went
v1.96.1

v1.96.1 (Windows executable only)

Changed 1
  • The Windows executable now uses the Win32::LongPath module, per issue #704.
View originalRead the notes
How v1.96.1 went

v1.96

Added 2
  • Support for the languages Cairo, Carbon, Circom, Containerfile, HolyC, kvlang, Nunjucks, OpenSCAD, P4, Pest, Pony, TEAL, and WGSL
  • New switch --diff-list-files to run diff given two list files
Changed 5
  • Handle comments embedded in OCaml strings
  • Write empty JSON and XML structures when the inputs yield zero counts
  • Support long file paths on Windows
  • Better support for building and running the Docker image on Windows
  • Better output file names when running with --count-and-diff and --out
Fixed 1
  • Resolve internal file handle conflict when running --diff with --sdir or --categorized
View originalRead the notes
How v1.96 went

v1.94

Added 3
  • Added support for languages Derw, Finite State Language, Flatbuffers, Futhark, Godot Shaders, HTML EEx, Lem, PEG, peg.js, peggy, tspeg, Text (.txt and .text), Visual Studio Module, and X++
  • Added git metadata (origin, branch, commit hash) to XML output when running with --git and --xml
  • Added the --no-recurse switch to prevent recursive directory traversal
Changed 1
  • Made arguments to --include-lang case insensitive
View originalRead the notes
How v1.94 went
View all

Discussion

If you publish cloc, you can claim this product by proving you administer its repository.