Skip to content

Add linting step to CI #163

Add linting step to CI

Add linting step to CI #163

Triggered via pull request October 31, 2024 18:39
Status Failure
Total duration 35s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Lint: svchost.go#L61
Error return value is not checked (errcheck)
Lint: auth/helper_program.go#L52
appendCombine: can combine chain of 2 appends into one (gocritic)
Lint: auth/helper_program.go#L89
appendCombine: can combine chain of 2 appends into one (gocritic)
Lint: auth/helper_program.go#L126
appendCombine: can combine chain of 2 appends into one (gocritic)
Lint: auth/helper_program_test.go#L19
filepathJoin: "testdata/test-helper" contains a path separator (gocritic)
Lint: disco/host.go#L205
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
Lint: disco/host.go#L216
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
Lint: disco/host.go#L419
importShadow: shadow of imported from 'github.com/hashicorp/go-version' package 'version' (gocritic)
Lint: disco/disco_test.go#L32
builtinShadow: shadowing of predeclared identifier: close (gocritic)
Lint: disco/disco_test.go#L69
builtinShadow: shadowing of predeclared identifier: close (gocritic)
Run Header Copyright
The following actions use a deprecated Node.js version and will be forced to run on node20: hashicorp/setup-copywrite@v1.1.2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/