Skip to content

Add staticcheck

Add staticcheck #150

Triggered via pull request March 9, 2024 23:49
Status Failure
Total duration 43s
Artifacts

ci.yml

on: pull_request
build-and-test
35s
build-and-test
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
build-and-test: components/project-list/quit-message.go#L9
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
build-and-test: models/config/config_test.go#L5
"io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
build-and-test
Process completed with exit code 1.
build-and-test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build-and-test
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2