mirror of https://github.com/k3s-io/k3s.git
update golangci config to sync with RKE2
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
4ebd6009ea
commit
92b651e548
|
@ -3,7 +3,7 @@
|
|||
"disable-all": true,
|
||||
"enable": [
|
||||
"govet",
|
||||
"golint",
|
||||
"revive",
|
||||
"goimports",
|
||||
"misspell",
|
||||
"ineffassign",
|
||||
|
@ -12,11 +12,27 @@
|
|||
},
|
||||
"run": {
|
||||
"skip-dirs": [
|
||||
"build", "/go/src/github.com/rancher/k3s/build"
|
||||
"build",
|
||||
"contrib",
|
||||
"manifests",
|
||||
"package",
|
||||
"scripts"
|
||||
],
|
||||
"skip-files": [
|
||||
"/zz_generated_"
|
||||
],
|
||||
"deadline": "5m"
|
||||
},
|
||||
"issues": {
|
||||
"exclude-rules": [
|
||||
{
|
||||
"linters": "typecheck",
|
||||
"text": "imported but not used"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"text": "should have comment"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue