RemoveComments" />

CLOC -- Count Lines of Code

系统 1667 0

CLOC -- Count Lines of Code

 


CLOC


Count Lines of Code

 

 

Overview

cloc
counts blank lines, comment lines,
and physical lines of source code in many programming languages .
Given two versions of a code base, cloc can compute
differences in blank, comment, and source lines.
It is written entirely in Perl with no dependencies outside the
standard distribution of Perl v5.6 and higher
(code from some external modules is embedded within cloc )
and so is quite portable.
cloc is known to run on many flavors of Linux,
Mac OS X, AIX, Solaris, IRIX, z/OS, and Windows.
(To run the Perl source version of cloc on Windows one needs
ActiveState Perl 5.6.1 or higher, Cygwin, or MobaXTerm with
the Perl plug-in installed.
Alternatively one can use the
Windows binary of cloc generated with
perl2exe
to run on Windows computers that have neither Perl nor Cygwin.)

cloc contains code from David Wheeler's
SLOCCount ,
Damian Conway and Abigail's Perl module
Regexp::Common ,
Sean M. Burke's Perl module
Win32::Autoglob , and Tye McQueen's Perl module
Algorithm::Diff .
Language scale factors were derived from Mayes Consulting, LLC web site http://softwareestimator.com/IndustryData2.htm .


License

cloc is licensed under the
GNU General Public License, v2
, excluding
portions which are copied from other sources. Code copied from the
Regexp::Common, Win32::Autoglob, and Algorithm::Diff Perl
modules is subject to the
Artistic License .

Why Use cloc?

cloc has many features that make it easy to use, thorough,
extensible, and portable:

  1. Exists as a single, self-contained file that requires minimal
    installation effort---just download the file and run it.
  2. Can read language comment definitions from a file and thus
    potentially work with computer languages that do not yet exist.
  3. Allows results from multiple runs to be summed together
    by language and by project.
  4. Can produce results in a variety of formats:
    plain text, SQL, XML, YAML, comma separated values.
  5. Can count code within compressed archives (tar balls, Zip files,
    Java .ear files).
  6. Has numerous troubleshooting options.
  7. Handles file and directory names with spaces and other unusual
    characters.
  8. Has no dependencies outside the standard Perl distribution.
  9. Runs on Linux, FreeBSD, NetBSD, Mac OS X, AIX, HP-UX, Solaris, IRIX,
    and z/OS systems that have Perl 5.6 or higher.
    The source version runs on Windows with either ActiveState
    Perl or cygwin. Alternatively on Windows one can run
    the Windows binary which has no dependencies.


CLOC -- Count Lines of Code


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论