macOS
brew install lizard-analyzerlocal Homebrew formula metadata
sudo port install lizardMacPorts ports tree · archivers/lizard/Portfile · source: api.github.com
brew
Extensible Cyclomatic Complexity Analyzer. Version 1.23.0 via Homebrew; verified 2026-06-03.
install
brew install lizard-analyzerlocal Homebrew formula metadata
sudo port install lizardMacPorts ports tree · archivers/lizard/Portfile · source: api.github.com
overview
Extensible Cyclomatic Complexity Analyzer
history
Lizard is a Python-based cyclomatic-complexity and static-analysis command-line tool. Its package history is mildly confusing because Homebrew names this formula lizard-analyzer while the executable is lizard, avoiding collision with a separate compression utility also named lizard.
The terryyin/lizard repository was created on GitHub in June 2012. The README describes the tool as an extensible cyclomatic complexity analyzer for many programming languages, with an emphasis on scanning C/C++ without needing complete header search paths and Java without resolving all imports.
Over time the tool expanded beyond basic cyclomatic complexity counts into duplicate-code detection and other static-code metrics. Its language list in the README spans C/C++, Java, Python, JavaScript/TypeScript, Go, Rust, Swift, Solidity, Zig, and other languages.
The README documents both direct script usage and installation through pip, which made Lizard convenient for CI jobs and local quality gates before language-specific static-analysis suites were always present in package-manager workflows.
Homebrew packaging under lizard-analyzer gives macOS users a CLI install path while avoiding the formula-name collision with the unrelated lizard compressor.
Lizard is commonly used as a lightweight metric pass over source trees: run lizard on a path, optionally select languages, exclude paths, and fail builds when complexity or parameter-count thresholds are exceeded.
Because it intentionally measures how complex code looks rather than trying to fully compile or semantically resolve a project, it fits quick scans, pre-commit checks, and repository audits where low setup cost matters.
The formula is a small example of package-manager disambiguation: the upstream project, command name, and common Python package name are lizard, but Homebrew has to call the formula lizard-analyzer because brew:lizard is already the compression tool.
It also shows how scripting-language tools enter Unix package managers even when pip installation is available, because packaging the CLI gives users a repeatable system-level binary without managing a Python environment by hand.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lizard | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/terryyin/lizard
install metadata
| Package key | brew:lizard-analyzer |
|---|---|
| Version | 1.23.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lizard-analyzer |
| Homepage | https://github.com/terryyin/lizard |
| Repository | https://github.com/terryyin/lizard |
| Upstream docs | https://github.com/terryyin/lizard#readme |
| License | MIT |
| Source archive | https://files.pythonhosted.org/packages/5b/94/4967d0868e7db39a72fa2dbef9a798c4d661178f3836bfec58091606f0f3/lizard-1.23.0.tar.gz |
| Last updated | 2026-06-03T09:53:20Z |
| Pulse | updated |
| Dependencies | python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lizard-analyzer |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lizard
sudo port install lizardsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.