跳至正文
Wener Notes

Golang Linter

约 1 分钟阅读

gofumpt

bash
go install mvdan.cc/gofumpt@latest
依赖包

gosec

bash
go get github.com/securego/gosec/v2/cmd/gosec
cat <<CONF > gosec.conf.json
{
  "global": {
    "nosec": "enabled",
    "audit": "enabled"
  }
}
CONF
gosec -conf gosec.conf.json ./...

revive

gocritic

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub5 条
其他外链1 条
最近更新commit fc28155编辑