terryyin/lizard
A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages. observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 98
- Release rhythm 74
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 108.0
- age_days: 5186
- days_rel: 15
- days_push: 15
- n_releases_24m: 3
Adoption not part of the score
2464 stars · 298 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
cli-tool · maturity active
linter developer-tools code-review developer-tools testing performance python cli cross-platform static-analysis cyclomatic-complexity code-metrics clone-detection multi-language command-line
2 sources
- readme: https://github.com/terryyin/lizard · fetched 2026-08-28 · f8dc8c085eed
- registry_pypi: https://pypi.org/pypi/lizard/json · fetched 2026-08-29 · 88e12411b10c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| terryyin/lizard | main | 90 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem