最近做一些批量化的改造,需要预估团队整体工作量。因为按业务本身复杂度来统计需要熟悉所有代码,执行上很难操作,因此用代码行数来评估工作量
研究了几种工具和方法
- python的line包
直接安装pip install line-counter
,以goredis目录为例子
wjcdeMacBook-Pro-2:redis wujingci$ line
Search in /Users/wujingci/go/src/github.com/go-redis/redis/
file count: 68
line count: 17776
wjcdeMacBook-Pro-2:redis wujingci$ line -d
Search in /Users/wujingci/go/src/github.com/go-redis/redis/
LICENSE 25
Makefile 20
README.md 143
bench_test.go 220
cluster.go 1439
cluster_commands.go 22
cluster_test.go 880
command.go 1048
command_test.go