コードの行数をカウントする

cloc コマンドでカウントできる。

brew install cloc

cloc PathToDir/ --vcs=git
      27 text files.
      26 unique files.
       1 file ignored.

github.com/AlDanial/cloc v 2.00  T=0.10 s (249.5 files/s, 8204.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Swift                            5             50              0            455
JSON                            14              0              0            323
SVG                              7              0              0             27
-------------------------------------------------------------------------------
SUM:                            26             50              0            805
-------------------------------------------------------------------------------