gnu-complexity
« Back to VersTracker
Description:
Measures complexity of C source
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c static-analysis code-quality metrics gnu
Install: brew install gnu-complexity
About:
GNU Complexity is a command-line tool that analyzes C source code to measure its cognitive complexity. It provides developers with a quantitative metric to identify overly complex code sections that may be difficult to maintain or debug. This helps teams enforce coding standards and improve overall code quality.
Key Features:
  • Computes cognitive complexity scores for C functions
  • Outputs machine-readable reports for integration with CI/CD
  • Configurable complexity thresholds and warning levels
  • Part of the GNU Autogen suite for code analysis
Use Cases:
  • Identifying high-risk code modules during code review
  • Enforcing complexity limits in automated build pipelines
  • Refactoring legacy C codebases for better maintainability
Alternatives:
  • lizard – Multi-language support vs. C-specific focus
  • radon – Python-specific analyzer with similar complexity metrics
Version History
Detected Version Rev Change Commit