macOS
brew install gnu-complexitylocal Homebrew formula metadata
brew
gnu-complexity のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install gnu-complexitylocal Homebrew formula metadata
sudo apt install complexityDebian stable package indexes · complexity · ソース: deb.debian.org
nix profile install nixpkgs#complexitynixpkgs package indexes · pkgs/by-name/co/complexity/package.nix · ソース: api.github.com
sudo zypper install complexityopenSUSE Tumbleweed package metadata · complexity · ソース: download.opensuse.org
概要
Measures complexity of C source
履歴
GNU Complexity is a small GNU static-analysis tool for measuring the complexity of C functions, designed as a more human-comprehension-oriented alternative to simple McCabe-style path counts.
The GNU Complexity manual documents version 0.4 as of May 2011 and describes a tool by Bruce Korb for analyzing C function complexity. Its rationale is explicit: McCabe-style scoring and `pmccabe` are useful for testing effort, but GNU Complexity tries to better rank functions that are difficult for humans to understand by considering length, nesting, switch bodies, and complicated boolean expressions.
GNU Complexity has a narrow adoption footprint compared with larger GNU developer tools. Its significance is in the code-review and maintenance niche: it gives C maintainers a command-line metric that can point to suspicious functions in unfamiliar code, estimate testing or comprehension effort, and produce sorted score tables and histograms.
Practitioners run `complexity` over C source files to report procedure scores, line counts, source locations, and optional histograms. The manual's example runs the tool against its own source with a low threshold, illustrating use as a quick audit tool for ranking functions before refactoring or review.
For package nerds, GNU Complexity is interesting because it embodies a Unix-tool approach to maintainability: one command, text output, tunable thresholds, and a documented scoring model. It is useful in distributions as a lightweight companion to older tools such as `pmccabe` rather than as a large static-analysis framework.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
complexity | cli | グローバル実行可能ファイル | |
cx-vs-mc | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://www.gnu.org/software/complexity/
インストールメタデータ
| パッケージキー | brew:gnu-complexity |
|---|---|
| バージョン | 1.13 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gnu-complexity |
| ホームページ | https://www.gnu.org/software/complexity/ |
| リポジトリ | https://git.savannah.gnu.org/cgit/complexity.git |
| 上流ドキュメント | https://www.gnu.org/software/complexity/manual |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://ftpmirror.gnu.org/gnu/complexity/complexity-1.13.tar.xz |
| 依存関係 | autogen |
| ビルド依存関係 | autoconf, automake |
| Bottle | 利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gnu-complexity |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
complexity 1.13-1+b1
tool for analyzing the complexity of C program functions
https://gnu.org/software/complexity
sudo apt install complexitycomplexity-doc 1.13-1
tool for analyzing the complexity of C program (documentation)
https://gnu.org/software/complexity
sudo apt install complexity-doccomplexity
nix profile install nixpkgs#complexitycomplexity 1.13-1
tool for analyzing the complexity of C program functions
https://gnu.org/software/complexity
sudo apt install complexitycomplexity-doc 1.13-1
tool for analyzing the complexity of C program (documentation)
https://gnu.org/software/complexity
sudo apt install complexity-doccomplexity 1.13-1.7
C source code complexity computation utility
https://www.gnu.org/software/complexity/
sudo zypper install complexityソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.