Skip to content

misc: update golangci-lint and use cached action #192

misc: update golangci-lint and use cached action

misc: update golangci-lint and use cached action #192

Triggered via pull request October 3, 2024 12:38
Status Failure
Total duration 3m 14s
Artifacts

ci.yaml

on: pull_request
Matrix: Integration test Kubernetes
Release images
0s
Release images
Tagged release images
0s
Tagged release images
Tagged release binaries
0s
Tagged release binaries
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Check: pkg/kubernetes/api/sloth/v1/register.go#L4
import 'k8s.io/apimachinery/pkg/apis/meta/v1' is not allowed from list 'Main' (depguard)
Check: pkg/kubernetes/api/sloth/v1/register.go#L5
import 'k8s.io/apimachinery/pkg/runtime' is not allowed from list 'Main' (depguard)
Check: pkg/kubernetes/api/sloth/v1/register.go#L6
import 'k8s.io/apimachinery/pkg/runtime/schema' is not allowed from list 'Main' (depguard)
Check: pkg/kubernetes/api/sloth/v1/register.go#L8
import 'github.com/slok/sloth/pkg/kubernetes/api/sloth' is not allowed from list 'Main' (depguard)
Check: pkg/kubernetes/api/sloth/v1/types.go#L4
import 'k8s.io/apimachinery/pkg/apis/meta/v1' is not allowed from list 'Main' (depguard)
Check: internal/k8sprometheus/storage.go#L70
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Check: internal/k8sprometheus/spec.go#L42
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Check: internal/k8sprometheus/kubernetes.go#L115
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Check: internal/k8sprometheus/kubernetes.go#L7
import 'github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1' is not allowed from list 'Main' (depguard)
Check: internal/k8sprometheus/kubernetes.go#L8
import 'github.com/prometheus-operator/prometheus-operator/pkg/client/versioned' is not allowed from list 'Main' (depguard)