Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
scc (Sloc, Cloc and Code) is a fast, accurate code counter written in pure Go that counts lines of code, blank lines, comment lines, and physical lines across many programming languages. Beyond basic line counting, it performs COCOMO and LOCOMO cost estimation, calculates code complexity similar to cyclomatic complexity calculators, and produces metrics like unique lines of code (ULOC) and DRYness. The tool is designed to power searchcode.com's structured code intelligence and is built specifically to support AI agents, while also serving individual developers and supporting multiple output formats including CSV, JSON, SQL, and HTML reports.