Flog
Ruby complexity analysis that reports the most tortured code.
At a glance
- Editor scoreNot yet scored
- PricingFree plan
- Best forRuby teams measuring method and class complexity
- Free planYes
- Paid fromNone
- Security analysisNo
- Facts checked26 Sep 2026
Where it wins
- Scores classes and methods with ABC-style metrics and depth penalties
- Readable pain reports surface complex code with scores and thresholds
- Supports directory expansion and reusable argument files
Where it doesn't
- Focuses on complexity rather than security analysis or type checking
- Does not provide autofix features
- No hosted option; support is through documentation
Our verdict on Flog
Flog is an open-source command-line and library tool for measuring Ruby code complexity. It is aimed at Ruby developers and teams who want to identify complex methods and classes in local development or CI workflows. Distributed as a Ruby gem under the MIT license, it can process Ruby files and report where complexity is concentrated. Its scope is specific: Flog measures complexity rather than serving as a broader static analysis suite.
Its central metric combines ABC-style assignments, branches and conditionals with a compounding penalty for increasing code depth. Flog calculates scores for methods and classes, then produces a readable pain report with scores and thresholds to help direct attention to the most complex code. Directory processing is supported through automatic path expansion with path_expander. Arguments can also be persisted in an @file_of_args file, and intersecting file or directory paths can be subtracted. Ruby syntax errors and timeouts are handled, which matters when processing source files as part of a development or CI workflow.
Flog is a fit for teams seeking complexity measurements they can run themselves, including solo, small and mid-market teams. The published product details describe it as self-hosted, with no hosted option, and list documentation as its support channel. Its feature set does not include security analysis, type checking or autofix, so teams needing those capabilities should consider a broader analysis tool rather than expecting Flog to cover them. For Ruby developers whose priority is understanding method and class complexity, its metrics-focused approach keeps the task clear; for buyers wanting hosted analysis or a wider set of code-quality functions, it is a narrower choice.
Flog pricing
Flog fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Security analysis | No |
| Type checking | No |
| Automated fixes | No |
| Custom rules | Not verified |
| Hosted option | No |
| Self-hosted option | Yes |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business, Mid-market (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 26 Sep 2026 |
Alternatives to Flog
- OpenText Fortify SASTBroad code analysis and workflow integrations for teams with enterprise SAST needs.—
- Snyk CodeSecurity-focused code scanning with IDE, pull-request, and CI/CD workflows.6.3
- GitHub CodeQLSemantic queries and pull-request alerts for teams working in GitHub-centered workflows.6.3
Used Flog? 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 Flog 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
Flog is listed in our Ruby Static Analysis Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/flog/"><img src="https://www.itechguides.com/best/badge/flog.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. It never changes a score or a verdict. How we rank.

