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)

1.66

Package test results are passing.

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

This package was approved by moderator dtgm on 5/26/2016.

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

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

C:\> choco upgrade cloc --version 1.66

Files

Hide
  • tools\bins.ps1 Show
    <#
      .SYNOPSIS
    
      Create a .ignore file for a package binary.
    
      .DESCRIPTION
    
      Chocolatey automatically creates a "shim" in a special folder, on your
      machine's PATH, for any executables found in the package's installation
      directory. This is helpful when installing ZIP packages or any kind of
      command line tools.
    
      Chocolatey can be instructed to ignore a particular binary by creating a file
      at the same path with the same name as the binary to ignore, except ending
      with the file extension ".ignore".
    
      This function creates that file, given the binary's path.
    
      .PARAMETER Path
    
      The path of the binary to ignore.
    
      This parameter also accepts multiple paths or pipeline input.
    
      .EXAMPLE
    
      Install-IgnoreBin -Path "foo.exe"
    
      .EXAMPLE
    
      Install-IgnoreBin -Path $foo, $bar
    
      .EXAMPLE
    
      Get-ChildItem "$content\foo\*.exe" | Install-IgnoreBin
    
      .LINK
    
      https://github.com/AnthonyMastrean/chocolateypackages/blob/master/helpers/bins.ps1
    #>
    function Install-IgnoreBin {
      [CmdletBinding()]
      param(
        [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
        [ValidateNotNullOrEmpty()]
        [ValidateScript({ Test-Path $_ })]
        [string[]] $Path
      )
    
      PROCESS {
        foreach($item in $Path) {
          New-Item "$(Resolve-Path $item).ignore" -Type "File" -Force | Out-Null
        }
      }
    }
    
    <#
      .SYNOPSIS
    
      Create a .gui file for a package binary.
    
      .DESCRIPTION
    
      Chocolatey automatically creates a "shim" in a special folder, on your
      machine's PATH, for any executables found in the package's installation
      directory. This is helpful when installing ZIP packages or any kind of
      command line tools.
    
      Chocolatey can be instructed to treat a particular binary as a GUI application,
      meaning it will START the binary in a separate process and not block the
      console, by creating a file at the same path with the same name as the binary,
      except ending with the file extension ".gui".
    
      This function creates that file, given the binary's path.
    
      .PARAMETER Path
    
      The path of the binary to treat as a GUI application.
    
      This parameter also accepts multiple paths or pipeline input.
    
      .EXAMPLE
    
      Install-GuiBin -Path "foo.exe"
    
      .EXAMPLE
    
      Install-GuiBin -Path $foo, $bar
    
      .EXAMPLE
    
      Get-ChildItem "$content\foo\*.exe" | Install-GuiBin
    
      .LINK
    
      https://github.com/AnthonyMastrean/chocolateypackages/blob/master/helpers/bins.ps1
    #>
    function Install-GuiBin {
      [CmdletBinding()]
      param(
        [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
        [ValidateNotNullOrEmpty()]
        [ValidateScript({ Test-Path $_ })]
        [string[]] $Path
      )
    
      PROCESS {
        foreach($item in $Path) {
          New-Item "$(Resolve-Path $item).gui" -Type "File" -Force | Out-Null
        }
      }
    }
    
  • tools\chocolateyInstall.ps1 Show
    $tools = Split-Path $MyInvocation.MyCommand.Definition
    $content = Join-Path (Split-Path $tools) 'content'
    $bin = Join-Path $content 'cloc-1.66.exe'
    
    . $tools\bins.ps1
    
    New-Item -Type 'Directory' -Path $content -Force | Out-Null
    
    Get-ChocolateyWebFile `
        -PackageName 'cloc' `
        -Url 'https://github.com/AlDanial/cloc/releases/download/v1.66/cloc-1.66.exe' `
        -Checksum '54D6662E59B04BE793DD10FA5E5EDF7747CF0C0CC32F71EB67A3CF8E7A171D81' `
        -ChecksumType 'SHA256' `
        -FileFullPath $bin
    
    Install-IgnoreBin `
        -Path $bin
    
    Install-BinFile `
        -Name 'cloc' `
        -Path $bin
    
  • tools\chocolateyUninstall.ps1 Show
    $tools = Split-Path $MyInvocation.MyCommand.Definition
    $content = Join-Path (Split-Path $tools) 'content'
    $bin = Join-Path $content 'cloc-1.66.exe'
    
    Uninstall-BinFile `
        -Name 'cloc' `
        -Path $bin
    

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.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Al Danial

Tags

Release Notes

https://github.com/AlDanial/cloc/releases/download/v1.66/release_notes-1.66.txt

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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok