cloc is a command-line tool that analyzes source code composition by counting blank lines, comment lines, and physical lines of code. It works with over 600 programming languages and provides detailed metrics for understanding code structure and documentation levels.
Key capabilities include:
Available in multiple formats:
The tool provides structured output showing files, blank lines, comments, and code lines organized by programming language. This makes it valuable for code audits, project metrics, documentation assessment, and codebase analysis. Whether you're evaluating project complexity, tracking code quality metrics, or understanding repository composition, cloc delivers comprehensive statistics in seconds.
★ 26k · vdeepagents==0.6.12 · python
★ 26k · v0.83.0 · go