cloc,下载就能使用,支持Linux和windows。统计当前目录代码行数的命令就一条:

cloc .

输出结果示例:

     902 text files.                                                                     
     852 unique files.                                                                   
     764 files ignored.                                                                  

http://cloc.sourceforge.net v 1.64  T=2.80 s (219.9 files/s, 56146.2 lines/s)            
-------------------------------------------------------------------------------          
Language                     files          blank        comment           code          
-------------------------------------------------------------------------------          
C                              151          12344          28959          42134          
HTML                           284            702           1160          26719          
C/C++ Header                   173           6770          25331          11901          
CSS                              2            133             53            529          
DOS Batch                        4             13              0            137          
Javascript                       1             20             43             69          
-------------------------------------------------------------------------------          
SUM:                           615          19982          55546          81489          
-------------------------------------------------------------------------------          

标签: none 阅读量: 1206

添加新评论