# terryyin/lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.

Repository: https://github.com/terryyin/lizard
Canonical: https://ross.abutalabs.com/products/lizard
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-19T00:03:31+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 74, longevity 100
- inputs: {"age_days": 5186, "days_push": 15, "days_rel": 15, "gap_med": 108.0, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2464, forks 298 (observed 2026-08-28T04:06:53.594654+00:00)

## What it is
Lizard is an extensible cyclomatic complexity analyzer supporting many popular languages including C/C++, Java, Python, and JavaScript, without requiring header files or imports. It also performs copy-paste (clone) detection and reports metrics like nloc, CCN, token count, and parameter count per function.

## Use cases
- measure cyclomatic complexity of a codebase
- find overly complex functions exceeding a CCN threshold
- detect copy-pasted duplicate code
- enforce code complexity limits in CI
- analyze C/C++ code without needing header files
- count lines of code excluding comments
- flag functions with too many parameters

## When to choose
- you need quick, dependency-free complexity metrics across many languages
- you want CI to fail on functions exceeding complexity or parameter limits
- you need clone/duplicate detection alongside complexity analysis
- analyzing C/C++ where full include resolution is impractical

## When to avoid
- you need deep semantic static analysis like type checking or dataflow analysis
- you need compiler-accurate cyclomatic complexity rather than heuristic estimates
- your language is not among the supported list

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, developer-tools, code-review
- domain: developer-tools, testing, performance
- platform: python, cli, cross-platform
- tags: static-analysis, cyclomatic-complexity, code-metrics, clone-detection, multi-language, command-line

## Member repositories
- terryyin/lizard (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.594654+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:29:16.322715+00:00, confidence not recorded.
  - readme: https://github.com/terryyin/lizard (fetched 2026-08-28T04:06:53.594654+00:00, sha f8dc8c085eed)
  - registry_pypi: https://pypi.org/pypi/lizard/json (fetched 2026-08-29T10:11:04.077183+00:00, sha 88e12411b10c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
