Skip to content

Commit fc9719f

Browse files
committed
fix(lint)
1 parent fae1ed8 commit fc9719f

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

components/kafka/.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linters:
2929
enable:
3030
# Sorted alphabetically.
3131
- errcheck
32-
- exportloopref
32+
- copyloopvar
3333
- gci
3434
- goimports # Also includes gofmt style formatting
3535
- gosimple
@@ -51,4 +51,4 @@ linters-settings:
5151
min-occurrences: 5
5252
govet:
5353
disable:
54-
- printf
54+
- printf

components/tls/.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linters:
2929
enable:
3030
# Sorted alphabetically.
3131
- errcheck
32-
- exportloopref
32+
- copyloopvar
3333
- gci
3434
- goimports # Also includes gofmt style formatting
3535
- gosimple
@@ -51,4 +51,4 @@ linters-settings:
5151
min-occurrences: 5
5252
govet:
5353
disable:
54-
- printf
54+
- printf

hodometer/.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linters:
2929
enable:
3030
# Sorted alphabetically.
3131
- errcheck
32-
- exportloopref
32+
- copyloopvar
3333
- gci
3434
- goimports # Also includes gofmt style formatting
3535
- gosimple
@@ -51,4 +51,4 @@ linters-settings:
5151
min-occurrences: 5
5252
govet:
5353
disable:
54-
- printf
54+
- printf

operator/.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linters:
2929
enable:
3030
# Sorted alphabetically.
3131
- errcheck
32-
- exportloopref
32+
- copyloopvar
3333
- gci
3434
- goimports # Also includes gofmt style formatting
3535
- gosimple
@@ -51,4 +51,4 @@ linters-settings:
5151
min-occurrences: 5
5252
govet:
5353
disable:
54-
- printf
54+
- printf

scheduler/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ linters:
2424
enable:
2525
# Sorted alphabetically.
2626
- errcheck
27-
- exportloopref
27+
- copyloopvar
2828
- gci
2929
- goimports # Also includes gofmt style formatting
3030
- gosimple

scheduler/pkg/agent/rclone/rclone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (r *RCloneClient) listenForConfigUpdates() {
143143
logger := r.logger.WithField("func", "listenForConfigUpdates")
144144
for config := range r.configChan {
145145
logger.Info("Received config update")
146-
config := config
146+
147147
go func() {
148148
err := r.loadRcloneConfiguration(&config)
149149
if err != nil {

scheduler/pkg/envoy/xdscache/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import (
3737
typev3 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
3838
"github.com/envoyproxy/go-control-plane/pkg/resource/v3"
3939
"github.com/envoyproxy/go-control-plane/pkg/wellknown"
40+
"google.golang.org/protobuf/types/known/anypb"
4041
duration "google.golang.org/protobuf/types/known/durationpb"
4142
wrappers "google.golang.org/protobuf/types/known/wrapperspb"
42-
"google.golang.org/protobuf/types/known/anypb"
4343

4444
"github.com/seldonio/seldon-core/scheduler/v2/pkg/util"
4545
)

scheduler/pkg/kafka/dataflow/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ func TestPipelineEvents(t *testing.T) {
458458
select {
459459
case next := <-stream.msgs:
460460
psr = next
461-
case <-time.After(2*time.Second):
461+
case <-time.After(2 * time.Second):
462462
t.Fail()
463463
}
464464

scheduler/pkg/server/pipeline_status_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func TestPipelineStatusEvents(t *testing.T) {
185185
}
186186
g.Expect(s.pipelineEventStream.streams[stream]).ToNot(BeNil())
187187
hub.PublishPipelineEvent(pipelineEventHandlerName, coordinator.PipelineEventMsg{
188-
PipelineName: "foo", PipelineVersion: 1,})
188+
PipelineName: "foo", PipelineVersion: 1})
189189

190190
// to allow events to propagate
191191
time.Sleep(500 * time.Millisecond)

0 commit comments

Comments
 (0)