mac統計項目代碼行數 原

一、安裝cloc

brew install cloc

二、統計

商城代碼行數

$ cd /Users/shijun/Desktop/ideaWorkspace/Www

$ cloc ./

    1051 text files.

    1010 unique files.                                          

     200 files ignored.

 

github.com/AlDanial/cloc v 1.76  T=2.80 s (305.7 files/s, 82338.1 lines/s)

-----------------------------------------------------------------------------------

Language                         files          blank        comment           code

-----------------------------------------------------------------------------------

JavaScript                         125          12953          21263          73746

Java                               374           4737           1945          32908

CSS                                 46           1019            875          23788

HTML                                35            181           2847          19287

JSP                                 81           1568           1050          15119

XML                                158            449            354           5976

PHP                                 28           1033           2402           5190

ASP                                  5            114             92            972

Maven                                1             42             74            475

ASP.NET                              1              4              0             49

Visualforce Component                1              0              0             10

INI                                  1              1              1              1

-----------------------------------------------------------------------------------

SUM:                               856          22101          30903         177521

-----------------------------------------------------------------------------------

 

後臺代碼行數

$ cd /Users/shijun/Desktop/ideaWorkspace/Admin

$ cloc ./

    1622 text files.

    1496 unique files.                                          

     285 files ignored.

 

github.com/AlDanial/cloc v 1.76  T=3.46 s (387.4 files/s, 88473.6 lines/s)

-----------------------------------------------------------------------------------

Language                         files          blank        comment           code

-----------------------------------------------------------------------------------

JavaScript                         253          16248          24401         121357

Java                               572           6672           2223          57702

CSS                                169            832            382          35213

JSP                                125           2014            786          17074

XML                                170            714            377           7792

PHP                                 28           1033           2402           5190

HTML                                15            115            208           1934

ASP                                  5            114             92            972

Maven                                1             37             62            397

Markdown                             1             21              0             68

ASP.NET                              1              4              0             49

Visualforce Component                1              0              0             10

INI                                  1              1              1              1

-----------------------------------------------------------------------------------

SUM:                              1342          27805          30934         247759

-----------------------------------------------------------------------------------

 

The total line code of mall web and manager web is 177521 + 247759 = 425280

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章