Skip to content

fix: fix golangci error #4

fix: fix golangci error

fix: fix golangci error #4

Triggered via pull request April 17, 2024 13:56
Status Failure
Total duration 17s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint (1.21): pkg/ike/handler/send.go#L64
Error return value of `ikeMessage.Encode` is not checked (errcheck)
lint (1.21): pkg/ike/handler/send.go#L91
unnecessary conversion (unconvert)
lint (1.21): pkg/ike/handler/send.go#L21
unnecessary conversion (unconvert)
lint (1.21): pkg/ike/xfrm/xfrm.go#L18
var `ikeLog` is unused (unused)
lint (1.21): pkg/ike/service/service.go#L34
S1021: should merge variable declaration with assignment on next line (gosimple)
lint (1.21): internal/nwucp/service/service.go#L25
S1021: should merge variable declaration with assignment on next line (gosimple)
lint (1.21): internal/nwucp/dispatcher.go#L35
S1010: should omit second index in slice, s[a:len(s)] is identical to s[a:] (gosimple)
lint (1.21): pkg/factory/factory.go#L108
shadow: declaration of "err" shadows declaration at line 105 (govet)
lint (1.21): pkg/ike/xfrm/xfrm.go#L166
shadow: declaration of "err" shadows declaration at line 149 (govet)
lint (1.21): pkg/ike/handler/handler.go#L203
shadow: declaration of "err" shadows declaration at line 112 (govet)
lint (1.21)
Restore cache failed: Dependencies file is not found in /home/runner/work/n3iwue/n3iwue. Supported file pattern: go.sum