Skip to content

Commit 9db1fec

Browse files
chmoueltheakshaypant
authored andcommitted
chore: update golangci linter configuration
Updated gomodguard to gomodguard_v2 for the latest linter version. Also disabled the inline check in govet to reduce false positives during code analysis. Error was: level=warning msg="The linter 'gomodguard' is deprecated (since v2.12.0) due to: new major version. Replaced by gomodguard_v2." level=warning msg="Suggested new configuration:\nlinters:\n enable:\n - gomodguard_v2\n" pkg/acl/owners_test.go:200:37: inline: cannot inline: type parameter inference is not yet supported (govet) assert.Assert(t, slices.Contains(tt.want, v), "got = %v, want %v", got, tt.want) pkg/kubeinteraction/cleanups_test.go:33:34: inline: cannot inline: type parameter inference is not yet supported (govet) cleanupAnnotations := maps.Clone(cleanupLabels) ^ test/pkg/configmap/configmap.go:21:11: inline: cannot inline: type parameter inference is not yet supported (govet) maps.Copy(newData, origCfgmap.Data) ^ test/pkg/configmap/configmap.go:22:11: inline: cannot inline: type parameter inference is not yet supported (govet) maps.Copy(newData, data) Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent 445941b commit 9db1fec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ linters:
2727
- gocritic
2828
- godot
2929
- goheader
30-
- gomodguard
30+
- gomodguard_v2
3131
- goprintffuncname
3232
- gosec
3333
- gosmopolitan
@@ -57,6 +57,9 @@ linters:
5757
- whitespace
5858
- zerologlint
5959
settings:
60+
govet:
61+
disable:
62+
- inline
6063
misspell:
6164
ignore-rules:
6265
- cancelled

0 commit comments

Comments
 (0)