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