macOS
brew install gnu-complexitylocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für gnu-complexity in AI-Agent-Workflows.
Installation
brew install gnu-complexitylocal Homebrew formula metadata
sudo apt install complexityDebian stable package indexes · complexity · Quelle: deb.debian.org
nix profile install nixpkgs#complexitynixpkgs package indexes · pkgs/by-name/co/complexity/package.nix · Quelle: api.github.com
sudo zypper install complexityopenSUSE Tumbleweed package metadata · complexity · Quelle: download.opensuse.org
Überblick
Measures complexity of C source
Verlauf
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.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
complexity | cli | globales Executable | |
cx-vs-mc | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://www.gnu.org/software/complexity/
Installationsmetadaten
| Paketschlüssel | brew:gnu-complexity |
|---|---|
| Version | 1.13 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/gnu-complexity |
| Homepage | https://www.gnu.org/software/complexity/ |
| Repository | https://git.savannah.gnu.org/cgit/complexity.git |
| Upstream-Dokumentation | https://www.gnu.org/software/complexity/manual |
| Lizenz | GPL-3.0-or-later |
| Quellarchiv | https://ftpmirror.gnu.org/gnu/complexity/complexity-1.13.tar.xz |
| Abhängigkeiten | autogen |
| Build-Abhängigkeiten | autoconf, automake |
| Bottle | verfügbar (auf 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 | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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 |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
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 complexityQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.