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.08

Release Notes

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)

Installer type: portable

Architecture Scope Download SHA256
x64 Download 4529557D957ADE0DD45746EAE10E9C51EE01061BB617EEEAB256672FAF6E42C6

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 (5)

2.06
Architecture Scope Download SHA256
x64 Download bbe48de9102d0f2520d292d65897001c1d068340eb7cd74dd1ee30c1a9091c4a
2.04
Architecture Scope Download SHA256
neutral Download 89CDA0038BF4E13C6C13EBC1E60BEC4DFAD362E69AC8A5B8E2D5EBE3020359E1
2.02
Architecture Scope Download SHA256
x64 Download be033061e091fea48a5bc9e8964cee0416ddd5b34bd5226a1c9aa4b30bdba66a
2.00
Architecture Scope Download SHA256
x64 Download 7A234EF0CB495DE1B5776ACF88C5554E2BAB1FB02725A5FB85756A6DB3121C1F
1.98
Architecture Scope Download SHA256
x64 Download 88615D193EC8C06F7CEEC3CC1D661088AF997798D87DDFF331D9E9F9128A6782