2 Star 3 Fork 1

好雨科技 / rainbond-operator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
check.sh 359 Bytes
一键复制 编辑 原始数据 按行查看 历史
barnettZQG 提交于 2021-02-01 17:46 . change code style
#!/bin/bash
err=0
function lint_dir() {
for file in $(ls $1); do
if [ -d $1"/"$file ]; then
lint_dir "$1/$file"
elif [ "${file##*.}" == "go" ]; then
golint -set_exit_status=true "$1/$file" || err=$(($err + 1))
fi
done
}
lint_dir ./
if [ $err -gt 0 ]; then
exit 1
fi
echo "code golint check success"
Go
1
https://gitee.com/rainbond/rainbond-operator.git
git@gitee.com:rainbond/rainbond-operator.git
rainbond
rainbond-operator
rainbond-operator
main

搜索帮助