Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of Count Lines of Code (CLOC) available.

Count Lines of Code (CLOC)


Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 7/5/2018.

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.

To install Count Lines of Code (CLOC), run the following command from the command line or from PowerShell:

C:\> choco install cloc --version 1.76

To upgrade Count Lines of Code (CLOC), run the following command from the command line or from PowerShell:

C:\> choco upgrade cloc --version 1.76


  • tools\chocolateyInstall.ps1 Show
    $tools = Split-Path $MyInvocation.MyCommand.Definition
    $content = Join-Path (Split-Path $tools) 'content'
    $legacy = Join-Path $content 'cloc-*.exe'
    $target = Join-Path $content 'cloc.exe'
    New-Item -Path $content -Type 'Directory' -Force | Out-Null
    # Remove legacy executables (from before we renamed the web file)
    Remove-Item -Path $legacy -Force | Out-Null
    Get-ChocolateyWebFile `
        -PackageName 'cloc' `
        -Url '' `
        -Checksum '44664A182026C42A779FE67746736D4D336CE10177D6C970CB163CB1DDE246E1' `
        -ChecksumType 'SHA256' `
        -FileFullPath $target

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Al Danial


Release Notes

Version History

Version Downloads Last updated Status
Count Lines of Code (CLOC) 1.76 3183 Monday, May 14, 2018 approved
Count Lines of Code (CLOC) 1.72 2211 Thursday, September 7, 2017 approved
Count Lines of Code (CLOC) 1.70 170 Thursday, September 7, 2017 approved
Count Lines of Code (CLOC) 1.68 178 Thursday, September 7, 2017 approved
Count Lines of Code (CLOC) 1.66 1246 Thursday, May 26, 2016 approved
Count Lines of Code (CLOC) 1.62 772 Thursday, September 11, 2014 approved
CLOC 1.56 477 Saturday, November 17, 2012 approved

Discussion for the Count Lines of Code (CLOC) Package

Ground rules:

  • This discussion is only about Count Lines of Code (CLOC) and the Count Lines of Code (CLOC) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Count Lines of Code (CLOC), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.