complexity
complexity: A lightweight macOS utility for file-level complexity estimates and filterable output. Ranked #16 of 18 in Code Complexity Analyzers by our editors (5.8/10); pricing: Free plan; best for mac users needing a lightweight complexity estimate.
At a glance
- Editor score5.8 / 10
- PricingFree plan
- Best forMac users needing a lightweight complexity estimate
- Free planYes
- Paid fromNone
- Hotspot detectionYes
- Facts checked27 Sep 2026
Where it wins
- Estimates complexity per file with indentation-based heuristics
- Filters and excludes files by extension or path; honors .gitignore
- Exports results as JSON or CSV and supports YAML configuration
Where it doesn't
- Indentation-based estimates are not cyclomatic complexity
- Listed for macOS, with distribution through a Homebrew tap
- No IDE feedback, pull request gates, or trend history
Our verdict on complexity
For developers who want a local, file-level signal about code that may be difficult to understand, complexity is an open-source command-line utility from thoughtbot. It applies indentation-based heuristics rather than cyclomatic complexity, so it is best treated as a way to identify files for closer review, not as a comprehensive measure of code quality. The README describes use across codebases containing Ruby, Elixir, Python, Scala, TypeScript and JavaScript, Go, Elm, Swift, and Java. The product is distributed through thoughtbot’s Homebrew tap for macOS.
Its practical strengths are in narrowing and shaping the analysis. You can filter files by extension or path substring, exclude paths, and have the tool honor .gitignore settings. A configurable YAML file lets you specify ignored extensions and path substrings. Results can be emitted as text, JSON, or CSV, giving developers options for reading output directly or passing structured results to other tools. This makes complexity a focused fit for solo developers and small teams who want a lightweight local estimate without adding an IDE workflow or hosted service.
The trade-off is its narrow scope: its estimates depend on indentation, and it does not provide IDE feedback, pull request gates, or trend history. Teams that need those capabilities, or a more formal complexity method, should consider a broader analyzer instead. Choose complexity if a simple, filterable file-level signal and exportable output suit your workflow; look elsewhere if you need continuous tracking or automated review controls.
complexity pricing
complexity fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Complexity metrics | Not verified |
| Supported languages | Not verified |
| Hotspot detection | Yes |
| IDE feedback | No |
| Pull-request gates | No |
| Trend history | No |
| Deployment | Desktop |
| Platforms | macOS |
| Built for | Solo, Small business (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 27 Sep 2026 |
Alternatives to complexity
- QodanaBroad static analysis with quality gates, security checks and cloud or self-hosted deployment.9.0
- CodeSceneCodeScene connects code-health scores and hotspots to reviews, IDE feedback, and team insights.8.4
- CodacyAffordable cloud analysis spanning code quality, security, coverage, and pull requests.7.9
See all complexity alternatives →
Used complexity? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used complexity for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
complexity is listed in our Code Complexity Analyzers directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/complexity/"><img src="https://www.itechguides.com/best/badge/complexity.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026
Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. How we rank.
Last updated · How we research and update


