加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gometalinter.json 769 Bytes
一键复制 编辑 原始数据 按行查看 历史
{
"Enable": [
"deadcode",
"gosec",
"goconst",
"gofmt",
"golint",
"ineffassign",
"misspell",
"vet"
],
"Linters": {
"gosec": {
"command": "gosec -fmt=csv -exclude=G201,G202"
}
},
"Exclude": [
"^pkg/([[:alnum:]_]+/)*[[:alnum:]_]+(\\.pb|\\.pb\\.gw|\\.pb.fm|\\.pb.util.fm|_populate|pb_test)\\.go:.+",
"^pkg/band/[[:alpha:]]{2}(_[[:digit:]]{3}){1,2}\\.go:([[:digit:]]+:){2}[[:alpha:]]+: (don't use ALL_CAPS in Go names; use CamelCase|don't use underscores in Go names;)",
"^pkg(/[[:alnum:]_]+)+_test.go:[[:digit:]]+::[[:alpha:]]+:.+\\(dupl\\)",
"^pkg/ttnpb/([[:alnum:]_]+/)*[[:alnum:]_]+.go"
],
"Cyclo": 25,
"DuplThreshold": 200,
"EnableGC": true,
"Sort": ["path", "line"],
"Vendor": true
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化