style: further tidying employing go doc 1.19+ spec and features #77
build.yml
on: pull_request
Matrix: test
lint
19s
goreleaser
0s
Annotations
11 errors and 4 warnings
lint:
sensor/audiovolume_test.go#L6
File is not `goimports`-ed with -local caresuite (goimports)
|
lint:
sensor/cpu_test.go#L6
File is not `goimports`-ed with -local caresuite (goimports)
|
lint:
sensor/memory_test.go#L6
File is not `goimports`-ed with -local caresuite (goimports)
|
lint:
util/util.go#L34
G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
|
lint:
sensor/online.go#L72
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
|
lint:
sensor/script.go#L28
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
|
lint:
main.go#L223
`cancelled` is a misspelling of `canceled` (misspell)
|
lint:
definitions.go#L23
`init$2` - `m` is unused (unparam)
|
lint:
definitions.go#L31
`init$3` - `m` is unused (unparam)
|
lint:
definitions.go#L38
`init$4` - `m` is unused (unparam)
|
Test (1.21)
Process completed with exit code 1.
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test (1.21)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|