boyter/scc
A tool similar to cloc, sloccount and tokei. For counting the lines of code, blank lines, comment lines, and physical lines of source code in many programming l
Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
- Go86.8%
- Shell5.1%
- PowerShell3.5%
- Python2.5%
- HTML1.6%
- Go Template0.4%
- Dockerfile0.1%
1 Review
This is a highly capable CLI with a polished default path and unusually broad output/integration support. It feels mature, fast, and thoughtfully built. The core promise is strong: one small CLI gives readable line counts, complexity, cost estimates, many language detectors, CI-friendly output, and structured formats. The default output is immediately useful, and the --ci, --format json, --format csv, --by-file, and --format-multi paths all worked cleanly in my simulation.
What Works Well
- Installation coverage is excellent: Go, Snap, Homebrew, Fedora, MacPorts, Scoop, Chocolatey, WinGet, FreeBSD, Docker.
- The release zip including README.md and LICENSE is a nice offline-user detail.
- First run is satisfying: scc <dir> gives a polished table plus totals and COCOMO estimates without extra setup.
- Structured output is practical. JSON and CSV worked cleanly, and --format-multi tabular:stdout,json:file.json is especially useful for humans plus automation.
- --ci switching from Unicode table borders to ASCII is a smart detail for logs.
Potential Improvements: Kinda nitpicking here... but README states v3.5 while current is v3.7 The README has a small wording issue near Enterprise: “will always be a free and tool” likely meant “free tool.”
