Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

Flog

Free#19 of 21 in Ruby Static Analysis Tools

Ruby complexity analysis that reports the most tortured code.

—Not yet scored
Flog— Visit Flog

At a glance

  • Editor score
    Not yet scored
  • Pricing
    Free plan
  • Best for
    Ruby teams measuring method and class complexity
  • Free plan
    Yes
  • Paid from
    None
  • Security analysis
    No
  • Facts checked
    26 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

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

Flog fact sheet

Free planYes
Paid fromNone
Security analysisNo
Type checkingNo
Automated fixesNo
Custom rulesNot verified
Hosted optionNo
Self-hosted optionYes
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business, Mid-market (editorial estimate)
PricingFree plan
Websitegithub.com
Facts checked26 Sep 2026

Alternatives to Flog

See all Flog alternatives →

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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Flog —/10

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.