Hey ports@, here's https://gitlab.com/esr/loccount/, from DESCR:
loccount is a re-implementation of David A. Wheeler's sloccount tool in Go. It is faster and handles more different languages. Because it's one source file in Go, it is easier to maintain and extend than the multi-file, multi-language implementation of the original. The algorithms are largely unchanged and can be expected to produce identical numbers for languages supported by both tools. Python is an exception; loccount corrects buggy counting of single-quote multiline literals in sloccount 2.26. Tested on amd64, here's an example: $ time loccount /usr/src/sys all 2010138 (100.00%) in 5939 files c 1943636 (96.69%) in 2762 files asm 58178 (2.89%) in 254 files makefile 3023 (0.15%) in 207 files awk 2096 (0.10%) in 18 files yacc 1654 (0.08%) in 2 files shell 738 (0.04%) in 8 files lex 560 (0.03%) in 2 files m4 175 (0.01%) in 1 files perl 70 (0.00%) in 2 files ada 8 (0.00%) in 1 files 0m02.69s real 0m06.07s user 0m01.15s system Feedback, comments?
loccount.tgz
Description: application/tar-gz