From c33dc21e530a0465e86d6826c686d5835f082947 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Tue, 16 Mar 2021 16:17:19 +0100 Subject: [PATCH] Fix linter ignores Signed-off-by: beorn7 --- prometheus/counter_test.go | 2 +- prometheus/desc.go | 2 +- prometheus/example_metricvec_test.go | 2 +- prometheus/examples_test.go | 2 +- prometheus/histogram.go | 2 +- prometheus/histogram_test.go | 2 +- prometheus/metric.go | 2 +- prometheus/registry.go | 2 +- prometheus/registry_test.go | 2 +- prometheus/summary.go | 2 +- prometheus/value.go | 2 +- prometheus/wrap.go | 2 +- prometheus/wrap_test.go | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/prometheus/counter_test.go b/prometheus/counter_test.go index 56652a0a0..6b359b12a 100644 --- a/prometheus/counter_test.go +++ b/prometheus/counter_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" diff --git a/prometheus/desc.go b/prometheus/desc.go index 957d93a2d..4bb816ab7 100644 --- a/prometheus/desc.go +++ b/prometheus/desc.go @@ -20,7 +20,7 @@ import ( "strings" "github.com/cespare/xxhash/v2" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/prometheus/common/model" diff --git a/prometheus/example_metricvec_test.go b/prometheus/example_metricvec_test.go index 8e893e57a..1ead31f5f 100644 --- a/prometheus/example_metricvec_test.go +++ b/prometheus/example_metricvec_test.go @@ -14,7 +14,7 @@ package prometheus_test import ( - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "fmt" "github.com/golang/protobuf/proto" diff --git a/prometheus/examples_test.go b/prometheus/examples_test.go index 8bc051af7..a73ed184c 100644 --- a/prometheus/examples_test.go +++ b/prometheus/examples_test.go @@ -22,7 +22,7 @@ import ( "strings" "time" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/prometheus/common/expfmt" diff --git a/prometheus/histogram.go b/prometheus/histogram.go index f71e286be..3346fa1c5 100644 --- a/prometheus/histogram.go +++ b/prometheus/histogram.go @@ -22,7 +22,7 @@ import ( "sync/atomic" "time" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" diff --git a/prometheus/histogram_test.go b/prometheus/histogram_test.go index e779c1a6b..3514e8142 100644 --- a/prometheus/histogram_test.go +++ b/prometheus/histogram_test.go @@ -24,7 +24,7 @@ import ( "testing/quick" "time" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" diff --git a/prometheus/metric.go b/prometheus/metric.go index bf18593a9..dc121910a 100644 --- a/prometheus/metric.go +++ b/prometheus/metric.go @@ -17,7 +17,7 @@ import ( "strings" "time" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/prometheus/common/model" diff --git a/prometheus/registry.go b/prometheus/registry.go index 48f5ef9d7..383a7f594 100644 --- a/prometheus/registry.go +++ b/prometheus/registry.go @@ -26,7 +26,7 @@ import ( "unicode/utf8" "github.com/cespare/xxhash/v2" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/prometheus/common/expfmt" diff --git a/prometheus/registry_test.go b/prometheus/registry_test.go index 48596cd72..0ff7a644a 100644 --- a/prometheus/registry_test.go +++ b/prometheus/registry_test.go @@ -33,7 +33,7 @@ import ( dto "github.com/prometheus/client_model/go" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/prometheus/common/expfmt" diff --git a/prometheus/summary.go b/prometheus/summary.go index cf7007149..fb5ce22bf 100644 --- a/prometheus/summary.go +++ b/prometheus/summary.go @@ -23,7 +23,7 @@ import ( "time" "github.com/beorn7/perks/quantile" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" diff --git a/prometheus/value.go b/prometheus/value.go index 8304de477..c778711b8 100644 --- a/prometheus/value.go +++ b/prometheus/value.go @@ -19,7 +19,7 @@ import ( "time" "unicode/utf8" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" diff --git a/prometheus/wrap.go b/prometheus/wrap.go index c1b12f084..74ee93280 100644 --- a/prometheus/wrap.go +++ b/prometheus/wrap.go @@ -17,7 +17,7 @@ import ( "fmt" "sort" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" diff --git a/prometheus/wrap_test.go b/prometheus/wrap_test.go index 003544e31..8bd5e607d 100644 --- a/prometheus/wrap_test.go +++ b/prometheus/wrap_test.go @@ -19,7 +19,7 @@ import ( "strings" "testing" - //lint:ignore SA1019 Need to keep deprecated package for compatibility. + //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go"