chore: Go update #1132
Annotations
10 errors and 12 warnings
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L220
Error return value of `file.Close` is not checked (errcheck)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L221
Error return value of `response.Body.Close` is not checked (errcheck)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L233
Error return value of `f.Close` is not checked (errcheck)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L262
Error return value of `file.Close` is not checked (errcheck)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L299
Error return value of `file.Close` is not checked (errcheck)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/utils.go#L90
Error return value of `res.Body.Close` is not checked (errcheck)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/agent_test.go#L1005
Function 'TestProgressType_String' is too long (153 > 150) (funlen)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon_test.go#L707
Function 'TestAgent_copyConfigurationFile' is too long (151 > 150) (funlen)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon_test.go#L861
Function 'TestAgent_launchScriptsConfiguration' is too long (213 > 150) (funlen)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon_test.go#L399
string `/imageOK` has 3 occurrences, make it a constant (goconst)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run actions/setup-go@v4
Restore cache failed: Dependencies file is not found in /home/runner/work/sztp/sztp. Supported file pattern: go.sum
|
Run golangci/golangci-lint-action@v3:
sztp-agent/cmd/daemon.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/cmd/disable.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/cmd/run.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/cmd/enable.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/cmd/status.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/main.go#L22
unreachable-code: unreachable code after this statement (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/main.go#L34
unreachable-code: unreachable code after this statement (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/main.go#L8
package-comments: should have a package comment (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L1
package-comments: package comment should be of the form "Package secureagent ..." (revive)
|
Run golangci/golangci-lint-action@v3:
sztp-agent/pkg/secureagent/daemon.go#L33
exported: exported const PRE should have comment (or a comment on this block) or be unexported (revive)
|
The logs for this run have expired and are no longer available.
Loading