Skip to content

Commit d9c07f7

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

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

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)