Skip to content

Commit d7f475e

Browse files
author
Ricardo Lüders
authored
DVO-205: (chore) replace golint (#321)
* chore: replace golint with revive * style: fix revive reports
1 parent 3eebf29 commit d7f475e

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Diff for: .golangci.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ linters:
66
enable:
77
- gofmt
88
- goimports
9-
- golint
9+
- revive
1010
- govet
1111
- misspell
1212
- unused
@@ -18,10 +18,6 @@ linters:
1818
- staticcheck
1919

2020
linters-settings:
21-
golint:
22-
# minimal confidence for issues, default is 0.8
23-
min-confidence: 0
24-
2521
lll:
2622
line-length: 120
2723
tab-width: 8

Diff for: internal/testing/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (c *TestClient) Create(ctx context.Context, obj client.Object, opts ...Requ
2727
}
2828
}
2929

30-
func (c *TestClient) Update(ctx context.Context, obj client.Object, opts ...RequestOption) {
30+
func (c *TestClient) Update(ctx context.Context, obj client.Object, _ ...RequestOption) {
3131
gomega.ExpectWithOffset(1, c.client.Update(ctx, obj)).Should(gomega.Succeed())
3232
}
3333

Diff for: pkg/prometheus/prometheus.go

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ func (s *Server) Start(ctx context.Context) error {
171171
errCh := make(chan error)
172172
drain := func() {
173173
for range errCh {
174+
continue
174175
}
175176
}
176177

0 commit comments

Comments
 (0)