跳至正文
跳到正文
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

关联信息

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

反向链接

  • Linter Awesome
    笔记 · Go Lint

    跨语言通用静态检查引擎、安全/文档检查工具及各语言常见 Linter 索引。 · ast-grep/ast-grep · MIT, Rust · 基于 Tree-sitter 的跨语言 AST 搜索、自定义 YAML Lint 规则与自动化重构引擎

参考资料

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