Skip to content

chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v3.4.0 - autoclosed #783

chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v3.4.0 - autoclosed

chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v3.4.0 - autoclosed #783

Triggered via pull request September 23, 2023 03:46
Status Failure
Total duration 1m 2s
Artifacts

linters.yml

on: pull_request
markdown-lint
7s
markdown-lint
docker-lint
7s
docker-lint
shellcheck
8s
shellcheck
YAMLlint
3s
YAMLlint
golangci
49s
golangci
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
golangci: sztp-agent/pkg/secureagent/daemon.go#L220
Error return value of `file.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/daemon.go#L221
Error return value of `response.Body.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/daemon.go#L233
Error return value of `f.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/daemon.go#L262
Error return value of `file.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/daemon.go#L299
Error return value of `file.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/utils.go#L90
Error return value of `res.Body.Close` is not checked (errcheck)
golangci: sztp-agent/pkg/secureagent/agent_test.go#L1003
Function 'TestProgressType_String' is too long (153 > 150) (funlen)
golangci: sztp-agent/pkg/secureagent/daemon_test.go#L707
Function 'TestAgent_copyConfigurationFile' is too long (151 > 150) (funlen)
golangci: sztp-agent/pkg/secureagent/daemon_test.go#L861
Function 'TestAgent_launchScriptsConfiguration' is too long (213 > 150) (funlen)
golangci: sztp-agent/pkg/secureagent/daemon_test.go#L309
ifElseChain: rewrite if-else to switch statement (gocritic)
golangci
Restore cache failed: Dependencies file is not found in /home/runner/work/sztp/sztp. Supported file pattern: go.sum
golangci: sztp-agent/cmd/daemon.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
golangci: sztp-agent/cmd/disable.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
golangci: sztp-agent/cmd/run.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
golangci: sztp-agent/cmd/status.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
golangci: sztp-agent/cmd/enable.go#L1
package-comments: package comment should be of the form "Package cmd ..." (revive)
golangci: sztp-agent/main.go#L8
package-comments: should have a package comment (revive)
golangci: sztp-agent/main.go#L22
unreachable-code: unreachable code after this statement (revive)
golangci: sztp-agent/main.go#L34
unreachable-code: unreachable code after this statement (revive)
golangci: sztp-agent/pkg/secureagent/agent.go#L11
exported: exported const CONTENT_TYPE_YANG should have comment (or a comment on this block) or be unexported (revive)
golangci: sztp-agent/pkg/secureagent/agent.go#L13
exported: comment on exported const DHCLIENT_LEASE_FILE should be of the form "DHCLIENT_LEASE_FILE ..." (revive)