Skip to content

Add linting step to CI #160

Add linting step to CI

Add linting step to CI #160

Triggered via pull request October 31, 2024 17:13
Status Failure
Total duration 36s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Lint: disco/disco_test.go#L120
Error return value of `w.Write` is not checked (errcheck)
Lint: disco/disco_test.go#L190
Error return value of `w.Write` is not checked (errcheck)
Lint: disco/disco_test.go#L215
Error return value of `w.Write` is not checked (errcheck)
Lint: disco/host_test.go#L363
Error return value of `url.Parse` is not checked (errcheck)
Lint: disco/host_test.go#L568
Error return value of `url.Parse` 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)
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/