用Docker运行cloc。 Docker(142)

$ docker run -it utunbu /bin/bash

当Docker启动时

# apt update; apt -y upgrade
# apt install -y cloc

使用代码行数统计工具”cloc”来分析git代码库的代码行数。
链接:https://qiita.com/bremen/items/1f5490f41d5c2c59f098

了解Git仓库中代码的量
https://qiita.com/black315/items/e5958bf8467e9a2e211a

cloc-git: 统计远程 git 仓库的代码行数
https://qiita.com/UedaTakeyuki/items/c025b334fe18a391c421

只对在git管理下的文件进行计数。

# cloc .
# cloc .
   11160 text files.
    3557 unique files.                                          
   14976 files ignored.

1026 errors:
Unable to read:  ./sys/bus/acpi/drivers/Atlas ACPI/bind
...
Unable to read:  ./sys/module/xz_dec/uevent

github.com/AlDanial/cloc v 1.82  T=12.45 s (139.9 files/s, 95034.3 lines/s)
--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
Perl                           1510          97712         146062         455247
C/C++ Header                     83          11212          20117         438097
Bourne Shell                    129           1184           1739           7347
Python                            6            506            317           2110
Bourne Again Shell               11            194            235           1142
YAML                              1              0              0             92
ASP.NET                           2              0              0             57
--------------------------------------------------------------------------------
SUM:                           1742         110808         168470         904092
--------------------------------------------------------------------------------

中国本地化的一个选择:

Docker Hub上的

$ docker push kaizenjapan/cloc

不知为何,数日之间无法推送(Push)遇到了错误。原因不明。
尝试重新启动了macOS系统。

许多人在使用docker login时经常遇到失败的情况。

请参考以下资料。
请参见以下资料。
请查阅以下参考资料。
请参照以下资料。
请参考下列资料。

想要数一下 iOS 应用的代码量!!!
https://qiita.com/st43/items/c5ccae02f9d2e16ab28e

计算源代码行数(SLOC)

感谢您的持续阅读直至最后。

喜欢的话,请关注一下。

非常感谢您阅读至最后一句话。

请点击喜欢图标?并关注我,过上快乐的生活。

bannerAds