# lizard-analyzer を Homebrew, MacPorts でインストール

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

## インストール

```sh
sudo av install brew:lizard-analyzer
```

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

### macOS

- Homebrew (100%):

```sh
brew install lizard-analyzer
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lizard
```

  証拠: MacPorts ports tree: archivers/lizard/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:lizard-analyzer
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/lizard-analyzer>
- **バージョン:** 1.23.0
- **ソース概要:** Extensible Cyclomatic Complexity Analyzer
- **ホームページ:** <https://github.com/terryyin/lizard>
- **リポジトリ:** <https://github.com/terryyin/lizard>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/5b/94/4967d0868e7db39a72fa2dbef9a798c4d661178f3836bfec58091606f0f3/lizard-1.23.0.tar.gz>
- **最終更新:** 2026-06-03T09:53:20Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- lizard (cli)
- lizard (エイリアス)

## 依存関係

- python@3.14

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.23.0
- マネージャ更新日: 2026-06-03
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/terryyin/lizard
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2012: terryyin/lizard repository created on GitHub.
- 2026: GitHub releases 1.20.0 and 1.23.0 were published for the analyzer.
- 2026: Homebrew formula lizard-analyzer identified the executable as lizard and the package as an extensible cyclomatic complexity analyzer.

### Related projects

- The package sits near linters, static analyzers, and code-metric tools such as cloc, radon, cppcheck, and language-specific complexity plugins.
- It is unrelated to brew:lizard, the compression utility packaged in the same batch.

### ソース

- <https://api.github.com/repos/terryyin/lizard>
- <https://formulae.brew.sh/formula/lizard-analyzer>
- <https://github.com/terryyin/lizard>
- <https://github.com/terryyin/lizard/releases>
- <https://raw.githubusercontent.com/terryyin/lizard/master/README.rst>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lizard-analyzer
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** lizard
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- MacPorts - lizard: installed executable or alias match | MacPorts ports tree: archivers/lizard/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pmccabe](https://pkg.so/ja/brew/pmccabe/) - Shares pkgdb curated category or tags: cli, code-analysis, code-metrics, cyclomatic-complexity, developer-tools.
- [ohcount](https://pkg.so/ja/brew/ohcount/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools, metrics.
- [swiftlint](https://pkg.so/ja/brew/swiftlint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [sonar-scanner](https://pkg.so/ja/brew/sonar-scanner/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [cloc](https://pkg.so/ja/brew/cloc/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools, metrics.
- [eslint](https://pkg.so/ja/brew/eslint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [pylint](https://pkg.so/ja/brew/pylint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, static-analysis.
- [scc](https://pkg.so/ja/brew/scc/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [vulture](https://pkg.so/ja/brew/vulture/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cli, code, code-quality, developer.
- [sarif-tools](https://pkg.so/ja/brew/sarif-tools/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cli, code, code-analysis, developer.
- [cmake-lint](https://pkg.so/ja/brew/cmake-lint/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cli, code, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/lizard-analyzer.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lizard-analyzer.yml)


## ソース

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