Skip to content

Fix golangci configuration #27

Fix golangci configuration

Fix golangci configuration #27

Triggered via pull request March 25, 2024 13:14
Status Failure
Total duration 1m 34s
Artifacts

validate_pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 16 warnings
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#L53
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/client/alerts.go#L40
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/client/alerts.go#L52
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/commands/logger.go#L14
unused-parameter: parameter 'pc' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/commands/analyse_prometheus.go#L34
unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/commands/block_gen.go#L45
unused-parameter: parameter 'k' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/commands/chunks.go#L184
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/rules.go#L570
error-strings: error strings should not be capitalized or end with punctuation or a newline (revive)
Lint: pkg/commands/analyse_ruler.go#L68
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/