k3s/.golangci.json

46 lines
645 B
JSON

{
"linters": {
"disable-all": true,
"enable": [
"govet",
"revive",
"goimports",
"misspell",
"gofmt"
]
},
"run": {
"skip-dirs": [
"build",
"contrib",
"manifests",
"package",
"scripts",
"vendor"
],
"skip-files": [
"/zz_generated_"
],
"deadline": "5m"
},
"issues": {
"exclude-rules": [
{
"linters": "typecheck",
"text": "imported but not used"
},
{
"linters": "typecheck",
"text": "build constraints exclude all Go files"
},
{
"linters": "revive",
"text": "should have comment"
},
{
"linters": "revive",
"text": "exported"
}
]
}
}