diff --git a/api/v1/api_test.go b/api/v1/api_test.go index b498317f..ddc8f0c8 100644 --- a/api/v1/api_test.go +++ b/api/v1/api_test.go @@ -22,7 +22,7 @@ import ( "time" "github.com/go-kit/kit/log" - //lint:ignore SA1019 Dependencies use the deprecated package, so we have to, too. + //nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" diff --git a/handler/handler_test.go b/handler/handler_test.go index 07d1ab50..95d3a635 100644 --- a/handler/handler_test.go +++ b/handler/handler_test.go @@ -24,7 +24,7 @@ import ( "time" "github.com/go-kit/kit/log" - //lint:ignore SA1019 Dependencies use the deprecated package, so we have to, too. + //nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too. "github.com/golang/protobuf/proto" "github.com/matttproud/golang_protobuf_extensions/pbutil" "github.com/prometheus/common/route" diff --git a/storage/diskmetricstore.go b/storage/diskmetricstore.go index 2ec8295e..0af54c8c 100644 --- a/storage/diskmetricstore.go +++ b/storage/diskmetricstore.go @@ -27,6 +27,8 @@ import ( "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" + + //nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too. "github.com/golang/protobuf/proto" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/model" diff --git a/storage/diskmetricstore_test.go b/storage/diskmetricstore_test.go index 360cba21..4eb883ee 100644 --- a/storage/diskmetricstore_test.go +++ b/storage/diskmetricstore_test.go @@ -24,6 +24,7 @@ import ( "time" "github.com/go-kit/kit/log" + //nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too. "github.com/golang/protobuf/proto" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/model" diff --git a/storage/interface.go b/storage/interface.go index dd62b51a..0a6cd8ce 100644 --- a/storage/interface.go +++ b/storage/interface.go @@ -17,6 +17,7 @@ import ( "sort" "time" + //nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" diff --git a/testutil/metric_families.go b/testutil/metric_families.go index 044b0717..2e379d3c 100644 --- a/testutil/metric_families.go +++ b/testutil/metric_families.go @@ -13,7 +13,7 @@ package testutil import ( - //lint:ignore SA1019 Dependencies use the deprecated package, so we have to, too. + //nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go"