Code Statistics With scc
Count lines and estimate complexity and effort across a codebase.
Run scc in a repository for per-language counts plus complexity estimates.
01Command
Command
$ scc .02What it does
scc, the Sloc, Cloc and Code tool, reports lines, comments, blanks and an estimated complexity and COCOMO cost per language. It is very fast and can output JSON, CSV or HTML for reports.
03Risk
!Warning: Complexity and cost figures are rough estimates; treat them as directional, not authoritative.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Homebrew formula: sccEvidence: Packages scc, a code counter that also estimates complexity and COCOMO effort.
Last verified: 2026-09-22 · Category: Developer