pkg.soopen package index

brew / 順位 11753

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

インストール挙動

  • Homebrew bottle メタデータは記録されていません。

推奨レビュー

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

実行可能ファイル

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

コマンド種類公開範囲メモ
complexity実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。
cx-vs-mc実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。

鮮度

バージョンと鮮度

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

ページ生成日2026-08-03
マネージャ版1.13
マネージャ更新日2026-08-02
ローカルデータ不明
上流利用不可
検出された最新未検出
  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:gnu-complexity
バージョン1.13
パッケージマネージャHomebrew
ホームページhttps://www.gnu.org/software/complexity/
最終更新2026-08-02T20:52:07+09:00
Pulseupdated
Bottle未記録
サービス宣言なし

ソースデータベース一致

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

一致は外部パッケージマネージャインデックスから取得され、ローカルの 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.9

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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

ソース経路

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

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

使用ソース

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation