2012年5月2日 星期三

[CLOC] A freeware to get line count of code

Official website:  http://cloc.sourceforge.net/

It is easy to use.
Just download it from official website.
Open command line program and execute it 
C:\> cloc <directory path>
F:\Work\Melco\Source>cloc-1.56 F:\Work\Melco\Source\work_R4.4
  110067 text files.
   94873 unique files.
   62916 files ignored.

http://cloc.sourceforge.net v 1.56  T=7040.0 s (6.3 files/s, 1282.8 lines/s)
---------------------------------------------------------------

Language              files       blank     comment        code

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

C                      2285      271788      338944     1526777

HTML                  17635      203290       20777     1093148

C++                    4044      190284      185459      925764

C/C++ Header           9196      251235      723200      833570

Python                 3269      124116      180884      580909

Javascript             4629      102041      151691      397103

Bourne Shell            190       27479       30154      200180

PHP                     413       17722       35413       84820

Perl                    470       20386       25871       75488

Objective C++           255       15993       12059       68903

m4                       31        5097         892       44023

XML                     641       11305        7312       35004

IDL                     546        3986           0       33302

CSS                     278        4877        2060       25497

make                    190        4587        3483       22708

Tcl/Tk                   90        2906        7257       19903

Assembly                 36        1493        1584        9347

Java                     99        2026        3234        8317

DTD                      19        2100        2442        7763

Objective C              71        1835        2150        6861

Teamcenter def           35         264         250        5800

Lisp                      4         542         532        3711

yacc                      3         462         142        3690

Expect                   29           9           1        3281

C#                       21         175         213        2547

CMake                     8         182          74        2278

XSLT                     47         133         124        1796

DOS Batch                37          84          93        1639

Ruby                     15         315         249        1320

XSD                       8         165         122         621

Visual Basic              6          70          25         351

Korn Shell                1          39          46         223

Bourne Again Shell        2          25          76         173

vim script                1          36           7         104

MSBuild scripts           2           0          14         103

YAML                      5          20          16          84

NAnt scripts              4           2           0          60

awk                       1           2          26          48

sed                       4           1          10          34

D                         1           3          24          13

ASP.Net                   1           0           0           1

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

SUM:                  44622     1267075     1736910     6027264

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

Reference: 
http://blog.miniasp.com/post/2009/08/24/Useful-tool-CLOC-Count-Lines-of-Code.aspx

沒有留言:

張貼留言