Commit 9db1fec
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments