天天看點

iOS統計代碼行數

使用指令可統計代碼行數:

      在終端進入項目所在目錄執行指令: find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.swift" ")" -print0 | xargs -0 wc -l  。

     需要統計的檔案的字尾可自己修改,如隻統計.m中的代碼量則指令為:find . "(" -name "*.m" ")" -print0 | xargs -0 wc -l  。