winget install --id AlDanial.Cloc
About cloc
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.
What's new in 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)
Version history
| Version | Updated | Notes |
|---|---|---|
| 2.08 | Unknown | 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 - V... |
| 2.06 | Unknown | New Languages and File Types: - Cangjie - Elixir Script - Fortran 2003 - Jsonnet - Nextflow - Nushell - Org Mode - Rego - UXML, USS (Unity) Updates: - First attempt at using Github Actions to package a release including... |
| 2.04 | Unknown | New Languages and File Types: - Blueprint - Cadence - Civet - MoonBit - Pek - Pkl - SurrealQL Updates: - Follow file renames when pairing files for --git --diff. - Arch Linux now has an AUR package for cloc. - New switch... |
| 2.02 | Unknown | New Languages and File Types: - Arturo - Glimmer JavaScript - Glimmer TypeScript - Luau - Modelica - Mojo - Nickel - Pawn - Processing - Templ - Yang Updates: - Support SQL output with --diff - Support counting in git re... |
| 2.00 | Unknown | Note: There are no breaking changes between the 1.xx versions and this 2.00 release.New Languages and File Types:- AnsProlog - AppleScript - ArkTs - Astro - Dafny - PlusCal - Prisma Schema - PRQL - Slint - Snakemake - TL... |
| 1.98 | Unknown | - Added .editorconfig as an INI extension. - Added .cppm, .ixx, .ccm, .cxxm, .c++m as C++ extensions. - Improved handling of trailing slash with --match-d - --exclude-list-file with --git now works as expected. - --not-m... |