cloc是一个命令行工具,用于统计代码行数。
要在GitLab中使用cloc,你需要在你的CI/CD流程中使用它。下面是一个简单的例子:
- 安装cloc:
# 在Docker中运行
RUN apt-get update && apt-get install -y cloc
# 在GitLab Runner中运行
apt-get update && apt-get install -y cloc
cloc是一个命令行工具,用于统计代码行数。
要在GitLab中使用cloc,你需要在你的CI/CD流程中使用它。下面是一个简单的例子:
# 在Docker中运行
RUN apt-get update && apt-get install -y cloc
# 在GitLab Runner中运行
apt-get update && apt-get install -y cloc