|
|
@ -3,7 +3,7 @@
|
|
|
|
"disable-all": true,
|
|
|
|
"disable-all": true,
|
|
|
|
"enable": [
|
|
|
|
"enable": [
|
|
|
|
"govet",
|
|
|
|
"govet",
|
|
|
|
"golint",
|
|
|
|
"revive",
|
|
|
|
"goimports",
|
|
|
|
"goimports",
|
|
|
|
"misspell",
|
|
|
|
"misspell",
|
|
|
|
"ineffassign",
|
|
|
|
"ineffassign",
|
|
|
@ -12,11 +12,27 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"run": {
|
|
|
|
"run": {
|
|
|
|
"skip-dirs": [
|
|
|
|
"skip-dirs": [
|
|
|
|
"build", "/go/src/github.com/rancher/k3s/build"
|
|
|
|
"build",
|
|
|
|
|
|
|
|
"contrib",
|
|
|
|
|
|
|
|
"manifests",
|
|
|
|
|
|
|
|
"package",
|
|
|
|
|
|
|
|
"scripts"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"skip-files": [
|
|
|
|
"skip-files": [
|
|
|
|
"/zz_generated_"
|
|
|
|
"/zz_generated_"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"deadline": "5m"
|
|
|
|
"deadline": "5m"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"issues": {
|
|
|
|
|
|
|
|
"exclude-rules": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"linters": "typecheck",
|
|
|
|
|
|
|
|
"text": "imported but not used"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"linters": "revive",
|
|
|
|
|
|
|
|
"text": "should have comment"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|