Fix golangci configuration #26
Annotations
4 errors and 16 warnings
Lint:
pkg/chunk/migrate/writer/writer.go#L94
unused-parameter: parameter 'workerID' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/chunk/cassandra/storage_client.go#L199
unused-parameter: parameter 'host' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
cmd/e2ealerting/main.go#L7
File is not `goimports`-ed with -local github.com/cortexproject/cortex-tools (goimports)
|
Lint
issues found
|
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v1, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Lint
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/
|
Lint:
pkg/client/rules.go#L37
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/client/rules.go#L53
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/client/rules.go#L68
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/commands/analyse_grafana.go#L73
if-return: redundant if ...; err != nil check, just return error instead. (revive)
|
Lint:
pkg/commands/analyse_grafana.go#L26
unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/commands/bucket_validation.go#L302
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
|
Lint:
pkg/commands/push_gateway.go#L32
unused-parameter: parameter 'pc' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/commands/access_control.go#L28
unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/commands/migrate.go#L26
unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
pkg/commands/analyse_prometheus.go#L231
if-return: redundant if ...; err != nil check, just return error instead. (revive)
|
Build Binaries
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build Binaries
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/
|
Unit-Tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Unit-Tests
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/
|