k3s/.golangci.json

46 lines
645 B
JSON
Raw Normal View History

2019-03-25 04:50:02 +00:00
{
"linters": {
"disable-all": true,
"enable": [
"govet",
"revive",
2019-03-25 04:50:02 +00:00
"goimports",
"misspell",
"gofmt"
]
},
"run": {
"skip-dirs": [
"build",
"contrib",
"manifests",
"package",
"scripts",
"vendor"
],
2019-03-25 04:50:02 +00:00
"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"
}
]
2019-03-25 04:50:02 +00:00
}
}