Skip to content

Commit

Permalink
DVO-205: (chore) replace golint (#321)
Browse files Browse the repository at this point in the history
* chore: replace golint with revive

* style: fix revive reports
  • Loading branch information
Ricardo Lüders authored Apr 19, 2024
1 parent 3eebf29 commit d7f475e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ linters:
enable:
- gofmt
- goimports
- golint
- revive
- govet
- misspell
- unused
Expand All @@ -18,10 +18,6 @@ linters:
- staticcheck

linters-settings:
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0

lll:
line-length: 120
tab-width: 8
2 changes: 1 addition & 1 deletion internal/testing/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (c *TestClient) Create(ctx context.Context, obj client.Object, opts ...Requ
}
}

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

Expand Down
1 change: 1 addition & 0 deletions pkg/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func (s *Server) Start(ctx context.Context) error {
errCh := make(chan error)
drain := func() {
for range errCh {
continue
}
}

Expand Down

0 comments on commit d7f475e

Please sign in to comment.