1
0
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:
Sakala Venkata Krishna Rohit 2025-02-24 09:51:38 -08:00 committed by GitHub
parent 078ddfe47d
commit 527d44a3a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 25 deletions

View File

@ -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

View File

@ -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"
}
]