https://www.zhihu.com/question/22004842
暂时选第一个:
========================
样例:
$ cloc --exclude-dir="env,docs," .
---------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------
Python 28 797 786 3018
XML 8 0 0 1554
Bourne Shell 9 248 74 980
JSON 1 0 0 17
---------------------------------------------------------------
SUM: 46 1045 860 5569
---------------------------------------------------------------
样例:
$ tokei
===============================================================================
Language Files Lines Code Comments Blanks
===============================================================================
Markdown 3 137 0 98 39
Plain Text 1 3 0 3 0
YAML 2 13 11 1 1
-------------------------------------------------------------------------------
Jupyter Notebooks 1 0 0 0 0
|- Markdown 1 40 0 27 13
|- Python 1 22 17 1 4
(Total) 62 17 28 17
===============================================================================
Total 7 215 28 130 57
===============================================================================