加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 672 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhu327 提交于 2022-06-14 15:56 . build(Makefile): add format
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: format
name: format
description: Format code for Go.
entry: make fmt
types: [go]
language: golang
pass_filenames: false
- id: golangci-lint
name: golangci-lint
description: Fast linters runner for Go.
entry: make lint
types: [go]
language: golang
pass_filenames: false
- id: golang-unittest
name: golang-unittest
description: Golang unittest.
entry: make test
types: [go]
language: golang
pass_filenames: false
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化