mirror of
https://github.com/rancher/steve.git
synced 2025-04-28 03:10:32 +00:00
Bump golang lint (#524)
This commit is contained in:
parent
078ddfe47d
commit
527d44a3a7
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -22,7 +22,7 @@ jobs:
|
||||
- name: Install mockgen
|
||||
run: go install go.uber.org/mock/mockgen@v0.4.0
|
||||
- name: Install golangci-lint
|
||||
uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # v6.3.2
|
||||
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
|
||||
with:
|
||||
version: v1.63.4
|
||||
- name: Install env-test
|
||||
|
@ -11,75 +11,73 @@
|
||||
]
|
||||
},
|
||||
"linters-settings": {
|
||||
"govet": {
|
||||
"check-shadowing": false
|
||||
},
|
||||
"govet": {},
|
||||
"gofmt": {
|
||||
"simplify": false
|
||||
}
|
||||
},
|
||||
"run": {
|
||||
"skip-dirs": [
|
||||
"tests": false,
|
||||
"timeout": "10m"
|
||||
},
|
||||
"issues": {
|
||||
"exclude-dirs": [
|
||||
"vendor",
|
||||
"tests",
|
||||
"pkg/client",
|
||||
"pkg/generated"
|
||||
],
|
||||
"tests": false,
|
||||
"timeout": "10m"
|
||||
},
|
||||
"issues": {
|
||||
"exclude-rules": [
|
||||
"exclude-rules": [
|
||||
{
|
||||
"linters": "govet",
|
||||
"linters": ["govet"],
|
||||
"text": "^(nilness|structtag)"
|
||||
},
|
||||
{
|
||||
"path":"pkg/apis/management.cattle.io/v3/globaldns_types.go",
|
||||
"text":".*lobalDns.*"
|
||||
"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.*"
|
||||
"text": ".*lobalDns.*"
|
||||
},
|
||||
{
|
||||
"path":"pkg/apis/management.cattle.io/v3/zz_generated_list_types.go",
|
||||
"text":".*lobalDns.*"
|
||||
"path": "pkg/apis/management.cattle.io/v3/zz_generated_list_types.go",
|
||||
"text": ".*lobalDns.*"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "should have comment"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "should be of the form"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "by other packages, and that stutters"
|
||||
},
|
||||
{
|
||||
"linters": "typecheck",
|
||||
"linters": ["typecheck"],
|
||||
"text": "imported but not used as apierrors"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "unused-parameter"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "redefines-builtin-id"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "superfluous-else"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "empty-block"
|
||||
},
|
||||
{
|
||||
"linters": "revive",
|
||||
"linters": ["revive"],
|
||||
"text": "if-return: redundant if"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user