Skip to content

Commit 3f8bcda

Browse files
committed
lint
Signed-off-by: alanprot <[email protected]>
1 parent 9b89a91 commit 3f8bcda

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQ
778778
github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM=
779779
github.com/opentracing-contrib/go-grpc v0.1.2 h1:MP16Ozc59kqqwn1v18aQxpeGZhsBanJ2iurZYaQSZ+g=
780780
github.com/opentracing-contrib/go-grpc v0.1.2/go.mod h1:glU6rl1Fhfp9aXUHkE36K2mR4ht8vih0ekOVlWKEUHM=
781-
github.com/opentracing-contrib/go-stdlib v1.1.0 h1:hSJ8yYaiAO/k2YZUeWJWpQCPE2wRCDtxRnir0gU6wbA=
781+
github.com/opentracing-contrib/go-stdlib v1.1.0 h1:cZBWc4pA4e65tqTJddbflK435S0tDImj6c9BMvkdUH0=
782782
github.com/opentracing-contrib/go-stdlib v1.1.0/go.mod h1:S0p+X9p6dcBkoMTL+Qq2VOvxKs9ys5PpYWXWqlCS0bQ=
783783
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
784784
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=

integration/ruler_test.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ import (
2020
"testing"
2121
"time"
2222

23-
"github.com/cortexproject/cortex/integration/ca"
24-
"github.com/cortexproject/cortex/integration/e2e"
25-
e2edb "github.com/cortexproject/cortex/integration/e2e/db"
26-
"github.com/cortexproject/cortex/integration/e2ecortex"
27-
"github.com/cortexproject/cortex/pkg/ruler"
28-
"github.com/cortexproject/cortex/pkg/ruler/rulespb"
29-
"github.com/cortexproject/cortex/pkg/storage/tsdb"
3023
v1 "github.com/prometheus/client_golang/api/prometheus/v1"
3124
"github.com/prometheus/common/model"
3225
"github.com/prometheus/prometheus/model/labels"
@@ -35,6 +28,14 @@ import (
3528
"github.com/stretchr/testify/assert"
3629
"github.com/stretchr/testify/require"
3730
"github.com/thanos-io/objstore/providers/s3"
31+
32+
"github.com/cortexproject/cortex/integration/ca"
33+
"github.com/cortexproject/cortex/integration/e2e"
34+
e2edb "github.com/cortexproject/cortex/integration/e2e/db"
35+
"github.com/cortexproject/cortex/integration/e2ecortex"
36+
"github.com/cortexproject/cortex/pkg/ruler"
37+
"github.com/cortexproject/cortex/pkg/ruler/rulespb"
38+
"github.com/cortexproject/cortex/pkg/storage/tsdb"
3839
)
3940

4041
func TestRulerAPI(t *testing.T) {

pkg/configs/userconfig/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ groups:
148148
func TestParseFormatted(t *testing.T) {
149149
dur, err := model.ParseDuration("5m")
150150
require.NoError(t, err)
151-
151+
152152
rulesV2 := []rulefmt.Rule{
153153
{
154154
Alert: "TestAlert",

pkg/cortex/configinit/init.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ package configinit
33
import "github.com/prometheus/common/model"
44

55
func init() {
6+
// nolint:staticcheck
67
model.NameValidationScheme = model.LegacyValidation
78
}

0 commit comments

Comments
 (0)