File tree 3 files changed +4
-6
lines changed 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ linters-settings:
25
25
min-complexity : 30
26
26
goimports :
27
27
local-prefixes : github.com/k8snetworkplumbingwg/accelerated-bridge-cni
28
- golint :
29
- min-confidence : 0
30
28
gomnd :
31
29
settings :
32
30
mnd :
@@ -55,7 +53,6 @@ linters:
55
53
disable-all : true
56
54
enable :
57
55
- bodyclose
58
- - deadcode
59
56
- depguard
60
57
- dogsled
61
58
- dupl
@@ -79,13 +76,11 @@ linters:
79
76
- revive
80
77
- rowserrcheck
81
78
- staticcheck
82
- - structcheck
83
79
- stylecheck
84
80
- typecheck
85
81
- unconvert
86
82
- unparam
87
83
- unused
88
- - varcheck
89
84
- whitespace
90
85
91
86
issues :
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ GOLANGCI_LINT = $(BINDIR)/golangci-lint
36
36
# golangci-lint version should be updated periodically
37
37
# we keep it fixed to avoid it from unexpectedly failing on the project
38
38
# in case of a version bump
39
- GOLANGCI_LINT_VER = v1.46 .2
39
+ GOLANGCI_LINT_VER = v1.51 .2
40
40
TIMEOUT = 15
41
41
V = 0
42
42
Q = $(if $(filter 1,$V) ,,@)
Original file line number Diff line number Diff line change @@ -219,6 +219,9 @@ func (p *Plugin) updateDeviceInfo(cmdCtx *cmdContext) error {
219
219
if err != nil {
220
220
return fmt .Errorf ("failed to marshal DeviceInfo to JSON %q" , err )
221
221
}
222
+ //nolint:gosec
223
+ // save with same permissions as https://github.com/k8snetworkplumbingwg/network-attachment-definition-client
224
+ // utils.saveDeviceInfo
222
225
err = os .WriteFile (cmdCtx .pluginConf .RuntimeConfig .CNIDeviceInfoFile , bytes , 0444 )
223
226
if err != nil {
224
227
return fmt .Errorf ("failed to update CNIDeviceInfoFile %q" , err )
You can’t perform that action at this time.
0 commit comments