add config for gometalinter

gometalinter is https://github.com/alecthomas/gometalinter
This commit is contained in:
Dmitry Vyukov 2018-03-08 18:47:04 +01:00
parent acd0caa5f7
commit 63ef857906

32
.gometalinter.json Normal file
View File

@ -0,0 +1,32 @@
{
"vendor": true,
"tests": true,
"deadline": "10m",
"sort": ["path", "line"],
"minconstlength": 7,
"skip": [
"pkg/kd"
],
"enable": [
"golint",
"structcheck",
"megacheck",
"unconvert",
"deadcode",
"goconst",
"unused",
"gosimple",
"varcheck",
"vet"
],
"exclude": [
"don't use underscores in Go names",
"don't use ALL_CAPS in Go names",
"exported .* should have comment",
"comment on exported type",
"package comment should be of the form",
"comment on .* should be of the form",
"should not use dot imports",
"composite literal uses unkeyed fields"
]
}