Automic VaultAutomic Vault

brew

gnu-complexity を Homebrew, apt, Nix, zypper でインストール

gnu-complexity のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install gnu-complexity

local Homebrew formula metadata

Linux

Debian apt確認済み · 92%
sudo apt install complexity

Debian stable package indexes · complexity · ソース: deb.debian.org

Nix確認済み · 92%
nix profile install nixpkgs#complexity

nixpkgs package indexes · pkgs/by-name/co/complexity/package.nix · ソース: api.github.com

openSUSE zypper確認済み · 92%
sudo zypper install complexity

openSUSE Tumbleweed package metadata · complexity · ソース: download.opensuse.org

概要

パッケージ概要

Measures complexity of C source

コマンドとエイリアス

  • complexity
  • cx-vs-mc

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2011: GNU Complexity web page and manual documented version 0.4.
  • 2011: Manual rationale compared GNU Complexity with `pmccabe` and explained its scoring model.

Related projects

  • `pmccabe` is the comparison point used throughout the GNU Complexity manual.
  • `unifdef` is discussed in the parsing model as a way to handle preprocessor-conditional source.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 12 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
complexitycliグローバル実行可能ファイル
cx-vs-mccliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版1.13
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namegnu-complexity
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt92%

complexity 1.13-1+b1

tool for analyzing the complexity of C program functions

https://gnu.org/software/complexity

sudo apt install complexity
  • Section: devel
  • Architecture: amd64
  • Source Package: complexity
  • 2 依存関係
  • installed executable or alias match
  • 一致条件: Complexity
Debian stable package indexes · deb.debian.org · Debian stable package indexes: complexity from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

complexity-doc 1.13-1

tool for analyzing the complexity of C program (documentation)

https://gnu.org/software/complexity

sudo apt install complexity-doc
  • Section: doc
  • Architecture: all
  • Source Package: complexity
  • installed executable or alias match
  • 一致条件: Complexity
Debian stable package indexes · deb.debian.org · Debian stable package indexes: complexity-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

complexity

nix profile install nixpkgs#complexity
  • installed executable or alias match
  • 一致条件: Complexity
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/co/complexity/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

complexity 1.13-1

tool for analyzing the complexity of C program functions

https://gnu.org/software/complexity

sudo apt install complexity
  • Section: universe/devel
  • Architecture: amd64
  • 2 依存関係
  • installed executable or alias match
  • 一致条件: Complexity
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: complexity from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt92%

complexity-doc 1.13-1

tool for analyzing the complexity of C program (documentation)

https://gnu.org/software/complexity

sudo apt install complexity-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: complexity
  • installed executable or alias match
  • 一致条件: Complexity
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: complexity-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
zypper92%

complexity 1.13-1.7

C source code complexity computation utility

https://www.gnu.org/software/complexity/

sudo zypper install complexity
  • License: GPL-3.0-or-later
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: complexity
  • 4 依存関係
  • 1 提供
  • installed executable or alias match
  • 一致条件: Complexity
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: complexity from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment