macOS
brew install scclocal Homebrew formula metadata
安装
brew install scclocal Homebrew formula metadata
sudo apk add sccAlpine Linux edge package indexes · scc · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#sccnixpkgs package indexes · pkgs/by-name/sc/scc/package.nix · 来源: api.github.com
sudo zypper install sccopenSUSE Tumbleweed package metadata · scc · 来源: download.opensuse.org
scoop install main/sccScoop official bucket manifest trees · bucket/scc.json · 来源: api.github.com
winget install --id BenBoyter.scc -eWindows Package Manager source index · BenBoyter.scc · 来源: cdn.winget.microsoft.com
概览
Fast and accurate code counter with complexity and COCOMO estimates
历史
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.
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.
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.
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.
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
./.sccconfigpath specified by SCC_CONFIG_PATHpath passed to --config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
scc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:scc |
|---|---|
| 版本 | 4.1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/scc |
| 主页 | https://github.com/boyter/scc/ |
| 仓库 | https://github.com/boyter/scc |
| 上游文档 | https://github.com/boyter/scc/ |
| 许可证 | MIT OR Unlicense |
| 源码归档 | https://github.com/boyter/scc/archive/refs/tags/v4.0.0.tar.gz |
| 最后更新 | 2026-09-15T05:47:16+02:00 |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | scc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
scc
nix profile install nixpkgs#sccscc 3.7.0-r4
Very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
sudo apk add sccscc 3.6.0-1.7
CLI tool to report lines of code and other metrics
sudo zypper install sccscc
sudo port install sccmain/scc
scoop install main/sccBenBoyter.scc
winget install --id BenBoyter.scc -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.