pkg.soopen package index

brew / rank 1628

Install scc with Homebrew, apk, MacPorts, Nix, zypper, scoop, winget

Fast and accurate code counter with complexity and COCOMO estimates. Version 4.1.0 via Homebrew; verified 2026-09-15. Also installable with nix: nix profile install nixpkgs#scc.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install scc

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install scc

MacPorts ports tree · devel/scc/Portfile · source: api.github.com

Windows

Scoopverified · 92%
scoop install main/scc

Scoop official bucket manifest trees · bucket/scc.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id BenBoyter.scc -e

Windows Package Manager source index · BenBoyter.scc · source: cdn.winget.microsoft.com

overview

Package summary

Fast and accurate code counter with complexity and COCOMO estimates

Commands and aliases

  • scc

history

Project history and usage

scc—expanded as Sloc Cloc and Code or Succinct Code Counter—is a fast Go-based source-code counter. It reports files, code, comments, blanks, complexity, and software-cost estimates across a broad language catalog.

Project history

Ben Boyter created scc as a fast, accurate alternative to tools such as cloc, SLOCCount, and tokei. Written in Go, it uses state-machine-based parsing to distinguish code, comments, strings, and blank lines across hundreds of languages.

The project expanded beyond line counting into complexity and COCOMO estimates, unique-lines-of-code analysis, CI output, badges, library use, and Git-history reports. Its official release series reached version 3.x and continues to add language definitions and analysis features.

Adoption history

scc is distributed across numerous operating-system package ecosystems, including Homebrew, Alpine, Nix, MacPorts, Scoop, WinGet, and openSUSE. The official project lists use by GitHub CodeQL, JetBrains Qodana, Scaleway, Linux Foundation LFX Insights, OpenEMS, and searchcode.com.

How it is used

Users typically run scc against files or directories to get a tabular language breakdown. Flags enable JSON and other formats, per-file output, complexity, COCOMO, unique-line, CI, and Git-history reports. Default options may be stored in a current-directory .sccconfig or an explicitly selected global configuration file.

Why package nerds care

scc belongs to the long-running family of source-line counters but combines speed with language-aware comment handling, complexity estimates, COCOMO cost estimates, unique-line metrics, and many output formats. Its short executable name and single-binary Go implementation make it particularly convenient in package-manager and CI workflows.

Timeline

  • 2018: The public repository's early release line established scc as a Go-based code counter.
  • 2026: The official project listed version 3.7.0 and 43 GitHub releases.

Related projects

  • cloc, SLOCCount, and tokei, cited by the project as comparable code counters.
  • searchcode.com, whose repository analysis is powered by scc.
  • sloc.xyz, which exposes scc-derived repository statistics as badges.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.sccconfigpath specified by SCC_CONFIG_PATHpath passed to --config

executables

Installed executables

CommandKindExposureNote
scccliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version4.1.0
manager updated2026-09-15
local dataok
upstreamcurrent
latest detectedv4.0.0

https://github.com/boyter/scc

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:scc
Version4.1.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/scc
Homepagehttps://github.com/boyter/scc/
Repositoryhttps://github.com/boyter/scc
Upstream docshttps://github.com/boyter/scc/
LicenseMIT OR Unlicense
Source archivehttps://github.com/boyter/scc/archive/refs/tags/v4.0.0.tar.gz
Last updated2026-09-15T05:47:16+02:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namescc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

scc

nix profile install nixpkgs#scc
  • normalized package name match
  • Matched by: Scc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sc/scc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

scc 3.7.0-r4

Very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go

https://github.com/boyter/scc

sudo apk add scc
  • License: MIT
  • Architecture: x86_64
  • Source Package: scc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Scc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: scc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
zypper95%

scc 3.6.0-1.7

CLI tool to report lines of code and other metrics

https://github.com/boyter/scc

sudo zypper install scc
  • License: MIT
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: scc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Scc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: scc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
MacPorts95%

scc

sudo port install scc
  • normalized package name match
  • Matched by: Scc
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/scc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/scc

scoop install main/scc
  • normalized package name match
  • Matched by: Scc
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/scc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

BenBoyter.scc

winget install --id BenBoyter.scc -e
  • normalized package name match
  • Matched by: Scc
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: BenBoyter.scc from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation