代码统计工具cloc

截图

一、安装

常用操作系统安装如下:

1)mac

brew install cloc

2)ubuntu、debian、deepin、mint等

sudo apt install cloc

3)redhat、centOS

sudo yun install cloc

二、基本用法

1)统计文件夹代码行数

cloc 目录路径

2)排除某些文件夹:

cloc ./ --exclude-dir=vendor,Test

3)其他操作可以查看help说明

posted @ 2020-10-07 02:06  一觉醒来写程序  阅读(1054)  评论(0编辑  收藏  举报