Skip to content

Commit

Permalink
Fix linter ignores
Browse files Browse the repository at this point in the history
Signed-off-by: beorn7 <beorn@grafana.com>
  • Loading branch information
beorn7 committed Mar 16, 2021
1 parent fbc3e40 commit c33dc21
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion prometheus/counter_test.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/desc.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/example_metricvec_test.go
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion prometheus/examples_test.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/histogram.go
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion prometheus/histogram_test.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/metric.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/registry.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/registry_test.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/summary.go
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion prometheus/value.go
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion prometheus/wrap.go
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion prometheus/wrap_test.go
Expand Up @@ -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"
Expand Down

0 comments on commit c33dc21

Please sign in to comment.