mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +02:00
chore(deps): update dependency golangci/golangci-lint to v2.15.0 (main) (#2758)
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1866,7 +1866,7 @@ jobs:
|
||||
GOARCH: amd64
|
||||
with:
|
||||
# renovate: github=golangci/golangci-lint
|
||||
version: v2.14.0
|
||||
version: v2.15.0
|
||||
args: "--max-same-issues=0"
|
||||
|
||||
super-linter:
|
||||
|
||||
@@ -86,8 +86,8 @@ If GNU Make is unavailable on Windows, use the equivalent commands from the
|
||||
current Makefile. Its current formatter and linter commands are:
|
||||
|
||||
```powershell
|
||||
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.14.0 fmt
|
||||
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.14.0 run ./...
|
||||
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.15.0 fmt
|
||||
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.15.0 run ./...
|
||||
go test ./...
|
||||
```
|
||||
|
||||
|
||||
@@ -449,8 +449,8 @@ func TestReadAheadConnCloseWaitsForReader(t *testing.T) {
|
||||
synctest.Wait()
|
||||
|
||||
select {
|
||||
case <-closed:
|
||||
t.Fatal("Close returned before the background read finished")
|
||||
case err := <-closed:
|
||||
t.Fatalf("Close returned before the background read finished: %v", err)
|
||||
default:
|
||||
}
|
||||
|
||||
|
||||
@@ -158,7 +158,8 @@ func TestBorrowedItemsPanic(t *testing.T) {
|
||||
)
|
||||
|
||||
require.Panics(t, func() {
|
||||
for range seq {
|
||||
for _, err := range seq {
|
||||
require.NoError(t, err)
|
||||
panic("consumer panic")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user