Downloads:

419

Downloads of v 3.0.0:

358

Last Update:

23 Feb 2021

Package Maintainer(s):

Software Author(s):

  • Ben Boyter + Contributors

Tags:

scc cli code complexity sloc golang statistics

Sloc Cloc and Code (scc)

  • 1
  • 2
  • 3

3.0.0 | Updated: 23 Feb 2021

Downloads:

419

Downloads of v 3.0.0:

358

Maintainer(s):

Software Author(s):

  • Ben Boyter + Contributors

  • 1
  • 2
  • 3
Sloc Cloc and Code (scc) 3.0.0

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

Details

To install Sloc Cloc and Code (scc), run the following command from the command line or from PowerShell:

>

To upgrade Sloc Cloc and Code (scc), run the following command from the command line or from PowerShell:

>

To uninstall Sloc Cloc and Code (scc), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade scc -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade scc -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure scc installed
  win_chocolatey:
    name: scc
    state: present
    version: 3.0.0
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'scc' do
  action    :install
  version  '3.0.0'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: scc,
    Version: 3.0.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller scc
{
   Name     = 'scc'
   Ensure   = 'Present'
   Version  = '3.0.0'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'scc':
  provider => 'chocolatey',
  ensure   => '3.0.0',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install scc version="3.0.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator TheCakeIsNaOH on 09 Mar 2021.

Description

Sloc Cloc and Code (scc)

A tool similar to cloc, sloccount and tokei. For counting physical the lines of code, blank lines, comment lines, and physical lines of source code in many programming languages.

Goal is to be the fastest code counter possible, but also perform COCOMO calculation like sloccount and to estimate code complexity similar to cyclomatic complexity calculators. In short one tool to rule them all.

Also it has a very short name which is easy to type scc.

Please Note: This is an automatically updated package. If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$checksum32 = 'E1D02CDA2F865CD18F0695BA08E376BB363939B8AFAFCA4AD4AE1D8067E28F90'
$checksum64 = 'F3972ACF03C09FF836071D1D173CB49281C8BC0F9682217118565CA62C5559B8'
$packageArgs = @{
  packageName    = $env:ChocolateyPackageName
  unzipLocation  = $toolsDir
  File           = Get-Item $toolsDir\scc-*-i386-*.zip
  File64         = Get-Item $toolsDir\scc-*-x86_64-*.zip
  checksum       = $checksum32
  checksumType   = 'sha256'
  checksum64     = $checksum64
  checksumType64 = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs
tools\LICENSE.txt
From: https://github.com/boyter/scc/blob/master/LICENSE

LICENSE

MIT License

Copyright (c) 2018 Ben Boyter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
tools\scc-3.0.0-i386-pc-windows.zip
md5: 2EFD3F9BA68E50778DCCE04190CCE2F8 | sha1: BF1879B43E3A679F7282B0C8CAB3C5368BF010F2 | sha256: E1D02CDA2F865CD18F0695BA08E376BB363939B8AFAFCA4AD4AE1D8067E28F90 | sha512: 67B0A0009E2C64A5A9A89C26282789DF865A96CC3753DB09FC17D94DA663807749F7A146618C68141F97CECF5147DB1D1CECE59856D0714367676B7210C9FC4E
tools\scc-3.0.0-x86_64-pc-windows.zip
md5: 9740FE5F90B32E97DA975920BA5BBE9E | sha1: 87745660456B9F808D1387FD4265621A2BD3FE3E | sha256: F3972ACF03C09FF836071D1D173CB49281C8BC0F9682217118565CA62C5559B8 | sha512: 469EEF8FB0B5D7CAF70E898092A620E7E0576EE59C2883ECB8805FA1C1A40F476E51A7BD1C26921CD5E9EF7A718D93FE135996243D0B1591A4335D15AB2C4DAA
tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to https://github.com/boyter/scc/releases/tag/v<version>, scroll down to assets section
and find these URL

   x32: https://github.com/boyter/scc/releases/download/v3.0.0/scc-3.0.0-i386-pc-windows.zip
   x64: https://github.com/boyter/scc/releases/download/v3.0.0/scc-3.0.0-x86_64-pc-windows.zip

   to download the zip files. You may wish to rename one of the files.

2. You can use one of the following methods to obtain the SHA256 checksum:
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum32: E1D02CDA2F865CD18F0695BA08E376BB363939B8AFAFCA4AD4AE1D8067E28F90
   checksum64: F3972ACF03C09FF836071D1D173CB49281C8BC0F9682217118565CA62C5559B8

File 'LICENSE.txt' obtained from:
   https://github.com/boyter/scc/blob/master/LICENSE

Log in or click on link to see number of positives.

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.

Version Downloads Last Updated Status
Sloc Cloc and Code (scc) 2.13.0 61 Friday, December 18, 2020 Approved

This package has no dependencies.

Discussion for the Sloc Cloc and Code (scc) Package

Ground Rules:

  • This discussion is only about Sloc Cloc and Code (scc) and the Sloc Cloc and Code (scc) 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 Sloc Cloc and Code (scc), 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