博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CLOC -- Count Lines of Code
阅读量:5758 次
发布时间:2019-06-18

本文共 2249 字,大约阅读时间需要 7 分钟。

 

CLOC
Count Lines of Code

 

 

  • (latest version: 1.56, released 2012-04-09)
  •  

cloc

counts blank lines, comment lines,
and physical lines of source code in .
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 )
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
to run on Windows computers that have neither Perl nor Cygwin.)

cloc contains code from David Wheeler's

,
Damian Conway and Abigail's Perl module
,
Sean M. Burke's Perl module
, and Tye McQueen's Perl module
.
Language scale factors were derived from Mayes Consulting, LLC web site .

cloc is licensed under the

, 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
.

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.

转载地址:http://unvkx.baihongyu.com/

你可能感兴趣的文章
LeetCode:Nim Game - 尼姆博弈
查看>>
iOS: Block的循环引用
查看>>
mysql实战02 | 日志系统:一条SQL更新语句是如何执行的?
查看>>
ECC椭圆曲线详解(有具体实例)
查看>>
关于WechatApp学习总结
查看>>
Linux常见命令(二)
查看>>
PyCharm切换解释器
查看>>
jmp far ptr s所对应的机器码
查看>>
css详解1
查看>>
【转载】Presentation at from Yoshua Bengio
查看>>
MySQL类型转换
查看>>
HashSet HashMap 源码阅读笔记
查看>>
变量声明提升1
查看>>
轻量级的Java 开发框架 Spring
查看>>
JS之路——浏览器window对象
查看>>
Chrome教程(二)使用ChromeDevTools命令菜单运行命令
查看>>
数据结构及算法基础--快速排序(Quick Sort)(二)优化问题
查看>>
你对position的了解到底有多少?
查看>>
随笔2013/2/19
查看>>
Windows Phone的Silverlight Toolkit 安装及其使用
查看>>