diff options
author | Sebastiaan van Stijn <thaJeztah@users.noreply.github.com> | 2022-07-05 10:46:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 10:46:45 +0200 |
commit | a98bd75256122a3e386059e1a6336ee6b82aed62 (patch) | |
tree | 4a0c3b18ead95d486ffee3a614ff926818c65f5a /hack | |
parent | 46f598728b022a524dd5c9a6b16c3506ce8d3f1b (diff) | |
parent | 1cab8eda24e70c60061e34adc4a19c1aeb5ad90c (diff) |
Merge pull request #43765 from thaJeztah/update_golangci_lint
Dockerfile: update golangci-lint to v1.46.2, replace golint with revive
Diffstat (limited to 'hack')
-rw-r--r-- | hack/validate/golangci-lint.yml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/hack/validate/golangci-lint.yml b/hack/validate/golangci-lint.yml index 0eb7e26c3b..1b8d385eab 100644 --- a/hack/validate/golangci-lint.yml +++ b/hack/validate/golangci-lint.yml @@ -3,12 +3,12 @@ linters: - deadcode - depguard - goimports - - golint - gosec - gosimple - govet - ineffassign - misspell + - revive - staticcheck - structcheck - typecheck @@ -49,16 +49,12 @@ issues: # ID's. # # These exclusion patterns are copied from the default excluses at: - # https://github.com/golangci/golangci-lint/blob/v1.44.0/pkg/config/issues.go#L10-L104 + # https://github.com/golangci/golangci-lint/blob/v1.46.2/pkg/config/issues.go#L10-L104 # EXC0001 - text: "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*print(f|ln)?|os\\.(Un)?Setenv). is not checked" linters: - errcheck - # EXC0003 - - text: "func name will be used as test\\.Test.* by other packages, and that stutters; consider calling this" - linters: - - golint # EXC0006 - text: "Use of unsafe calls should be audited" linters: @@ -102,9 +98,9 @@ issues: - text: "type name will be used as (container|volume)\\.(Container|Volume).* by other packages, and that stutters; consider calling this" path: "api/types/(volume|container)/" linters: - - golint + - revive # FIXME temporarily suppress these. See #39924 - - text: "SA1019: .*\\.Xattrs is deprecated: Use PAXRecords instead" + - text: "SA1019: .*\\.Xattrs has been deprecated since Go 1.10: Use PAXRecords instead" linters: - staticcheck # FIXME temporarily suppress these. See #39926 |