Skip to content

fix: linter warnings in multiple files #2136

fix: linter warnings in multiple files

fix: linter warnings in multiple files #2136

Triggered via pull request October 11, 2024 22:51
@lklimeklklimek
synchronize #956
fix/lint
Status Failure
Total duration 1m 48s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
golangci-lint: scripts/keymigrate/migrate.go#L186
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it to match ^_ (revive)
golangci-lint: scripts/keymigrate/migrate.go#L279
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it to match ^_ (revive)
golangci-lint: scripts/keymigrate/migrate.go#L642
The copy of the 'for' variable "key" can be deleted (Go 1.22+) (copyloopvar)
golangci-lint: libs/workerpool/worker_pool.go#L95
G115: integer overflow conversion int -> int32 (gosec)
golangci-lint: libs/workerpool/worker_pool_test.go#L106
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it to match ^_ (revive)
golangci-lint: libs/workerpool/worker_pool_test.go#L149
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it to match ^_ (revive)
golangci-lint: libs/workerpool/worker_pool_test.go#L155
unused-parameter: parameter 'cancel' seems to be unused, consider removing or renaming it to match ^_ (revive)
golangci-lint: libs/workerpool/worker_pool_test.go#L256
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it to match ^_ (revive)
golangci-lint: libs/workerpool/worker_pool_test.go#L47
The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
golangci-lint: internal/libs/protoio/writer.go#L63
G115: integer overflow conversion int -> uint64 (gosec)
golangci-lint
The `set-output` 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/
golangci-lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
golangci-lint
The following actions use a deprecated Node.js version and will be forced to run on node20: technote-space/get-diff-action@v6, actions/setup-go@v2, actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/