1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-27 11:00:48 +00:00
steve/.golangci.json
Sakala Venkata Krishna Rohit 527d44a3a7
Bump golang lint (#524)
2025-02-24 09:51:38 -08:00

85 lines
2.2 KiB
JSON

{
"linters": {
"disable-all": true,
"enable": [
"govet",
"revive",
"goimports",
"misspell",
"ineffassign",
"gofmt"
]
},
"linters-settings": {
"govet": {},
"gofmt": {
"simplify": false
}
},
"run": {
"tests": false,
"timeout": "10m"
},
"issues": {
"exclude-dirs": [
"vendor",
"tests",
"pkg/client",
"pkg/generated"
],
"exclude-rules": [
{
"linters": ["govet"],
"text": "^(nilness|structtag)"
},
{
"path": "pkg/apis/management.cattle.io/v3/globaldns_types.go",
"text": ".*lobalDns.*"
},
{
"path": "pkg/apis/management.cattle.io/v3/zz_generated_register.go",
"text": ".*lobalDns.*"
},
{
"path": "pkg/apis/management.cattle.io/v3/zz_generated_list_types.go",
"text": ".*lobalDns.*"
},
{
"linters": ["revive"],
"text": "should have comment"
},
{
"linters": ["revive"],
"text": "should be of the form"
},
{
"linters": ["revive"],
"text": "by other packages, and that stutters"
},
{
"linters": ["typecheck"],
"text": "imported but not used as apierrors"
},
{
"linters": ["revive"],
"text": "unused-parameter"
},
{
"linters": ["revive"],
"text": "redefines-builtin-id"
},
{
"linters": ["revive"],
"text": "superfluous-else"
},
{
"linters": ["revive"],
"text": "empty-block"
},
{
"linters": ["revive"],
"text": "if-return: redundant if"
}
]
}
}