lizard
A code analyzer without caring the C/C++ header files. It works with Java, C/C++, JavaScript, Python, Ruby, Swift, Objective C. Metrics includes cyclomatic complexity number etc.
Decision gist · record as of 2026-08-14
Yes. Lizard is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem—measuring code complexity across many languages without requiring complete build environments—and is suitable for both standalone use and CI/CD integration. The 2446 repository stars and top-5000 PyPI tier indicate solid community adoption.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires python3.8 or above; early versions are not verified.
- Low install friction with only two runtime dependencies (pygments and pathspec).
- The package is actively maintained with a recent release and 2446 repository stars, indicating stable, community-backed development.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-06-02 (73 days) · last repo commit 2026-08-13 · 2,446 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,283,998 downloads/mo, #4,113 on PyPI
Alternatives
Verify before relying
pip install lizard
lizard mySource/
lizard -C 15 -a 5 mySource/ --xml- Whether the tool's copy-paste detection accuracy and performance scale well for very large codebases.
- Whether all listed language parsers are equally mature or if some are experimental.
- Performance characteristics when analyzing code with many threads enabled.
What it is and what it does
Lizard is a static code analyzer that measures cyclomatic complexity and other code metrics across many programming languages including C/C++, Java, Python, JavaScript, and others. It calculates lines of code without comments, cyclomatic complexity number, token count, and parameter count for each function, then reports functions exceeding configurable thresholds. It also performs copy-paste detection to identify duplicate code blocks.
The tool is designed to work without requiring complete header files or imports, making it practical for analyzing incomplete or complex codebases. It can output results in multiple formats (tabular, XML, CSV, HTML, Checkstyle) and supports filtering via .gitignore patterns or custom exclusion rules. You can run it as a standalone script or install it for full functionality, and it supports parallel analysis via configurable worker threads.
Use it for
- Measure cyclomatic complexity in legacy codebases to identify functions needing refactoring.
- Detect copy-pasted code blocks across a project to consolidate duplicated logic.
- Generate HTML or XML reports for code quality dashboards and CI/CD pipeline integration.
- Enforce coding standards by setting thresholds for complexity, function length, and parameter count.
- Analyze multi-language projects (e.g., C++ backend + JavaScript frontend) in a single run.
- Identify overly complex functions during code review to guide refactoring priorities.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Lizard is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem—measuring code complexity across many languages without requiring complete build environments—and is suitable for both standalone use and CI/CD integration. The 2446 repository stars and top-5000 PyPI tier indicate solid community adoption.
Install
lizard on PyPI
Before you install
Low install friction with only two runtime dependencies (pygments and pathspec). The package is actively maintained with a recent release and 2446 repository stars, indicating stable, community-backed development.
Requires python3.8 or above; early versions are not verified.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install lizard
lizard mySource/
lizard -C 15 -a 5 mySource/ --xml
Verify before relying
- Whether the tool's copy-paste detection accuracy and performance scale well for very large codebases.
- Whether all listed language parsers are equally mature or if some are experimental.
- Performance characteristics when analyzing code with many threads enabled.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespygmentspathspec |
| Maintenance | Actively maintained 73 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,283,998 / month, #4,113 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: FreewareOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: CProgramming Language :: C++Programming Language :: JavaProgramming Language :: JavaScriptProgramming Language :: Objective CProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Quality Assurance |
Evidence: lizard-1.23.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cyclomatic complexity analyzer”
- lizardLizard analyzes code complexity and detects code clones across many…
- cognitive-complexityCalculates cognitive complexity scores for Python functions by…
- mccabeMeasures cyclomatic complexity of Python functions and integrates…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also xenon · complexipy · radon · flake8-cognitive-complexity · mccabe · mr-proper · cognitive-complexity · scan-build · gdtoolkit · pygount