cloc alternatives

Alternatives to cloc

Other tools in this directory that do similar work, with a verified install command for each. cloc itself: install cloc.

scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go

★ 8.8k macOS · Linux

sourcery

Meta-programming for Swift, stop writing boilerplate code

★ 8.0k macOS · Linux

credo

A static code analysis tool for the Elixir language with a focus on code consistency and teaching

★ 5.2k macOS · Linux

lizard-analyzer

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

★ 2.5k macOS · Linux

kibi

A text editor in ≤1024 lines of code, written in Rust

★ 2.0k macOS · Linux

dep-tree

Tool for helping developers keep their code bases clean and decoupled. It allows visualising a code base complexity using a 3d force-directed graph of

★ 1.7k macOS · Linux

go

The Go programming language

★ 139k macOS · Linux

git

Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://

★ 63k macOS · Linux

prettier

Prettier is an opinionated code formatter

★ 52k macOS · Linux

ruff

An extremely fast Python linter and code formatter, written in Rust

★ 50k macOS · Linux

black

The uncompromising Python code formatter

★ 42k macOS · Linux

trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

★ 38k macOS · Linux

VSCodium

binary releases of VS Code without MS branding/telemetry/licensing

★ 33k macOS · Linux

eslint

Find and fix problems in your JavaScript code

★ 28k macOS · Linux

delve

Delve is a debugger for the Go programming language

★ 25k macOS · Linux

ruby

The Ruby Programming Language

★ 24k macOS · Linux

diff-so-fancy

Make your diffs human readable for improved code quality and faster defect detection. :tada:

★ 18k macOS · Linux

Orca Slicer Nightly

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)

★ 16k macOS · Linux

swiftgen

The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

★ 9.5k macOS · Linux

retdec

RetDec is a retargetable machine-code decompiler based on LLVM

★ 8.6k macOS · Linux

bandit

Bandit is a tool designed to find common security issues in Python code

★ 8.3k macOS · Linux

arxiv_latex_cleaner

arXiv LaTeX Cleaner: Easily clean the LaTeX code of your paper to submit to arXiv

★ 7.1k macOS · Linux

espeak-ng

eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents

★ 6.9k macOS · Linux

magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

★ 6.2k macOS · Linux

How we picked these

We match on what the tool does and how it installs, then order by how widely each project is used. We're not saying these are better or worse than cloc — that depends on what you're building. We're saying they're the projects people reach for in the same situations, and each one has an install command we checked against its documentation.

cloc is developed by its own authors and this page is an independent reference; we are not affiliated with or sponsored by any project listed, and nothing here is a paid placement.