Skip to content

Commit 7e5ad83

Browse files
upgrade golangci-lint (#128)
1 parent 958ab08 commit 7e5ad83

File tree

10 files changed

+575
-4112
lines changed

10 files changed

+575
-4112
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
go-version: [1.23.0]
17+
go-version: [1.24.0]
1818
os: [ubuntu-latest]
1919
steps:
2020
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}

.github/workflows/vulncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go-version: [1.23.0]
17+
go-version: [1.24.0]
1818
steps:
1919
- name: Check out code into the Go module directory
2020
uses: actions/checkout@v4

.golangci.yml

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,43 @@
1-
linters-settings:
2-
golint:
3-
min-confidence: 0
4-
5-
misspell:
6-
locale: US
7-
1+
version: "2"
82
linters:
9-
disable-all: true
3+
default: none
104
enable:
11-
- typecheck
12-
- goimports
13-
- misspell
5+
- durationcheck
6+
- gocritic
7+
- gomodguard
148
- govet
15-
- revive
169
- ineffassign
17-
- gosimple
18-
- gomodguard
19-
- gofmt
20-
- unused
10+
- misspell
11+
- revive
12+
- staticcheck
2113
- unconvert
22-
- gocritic
14+
- unused
15+
settings:
16+
misspell:
17+
locale: US
18+
exclusions:
19+
generated: lax
20+
rules:
21+
- path: (.+)\.go$
22+
text: should have a package comment
23+
- path: (.+)\.go$
24+
text: error strings should not be capitalized or end with punctuation or a newline
25+
- path: (.+)\.go$
26+
text: http.CloseNotifier has been deprecated since
27+
- path: (.+)\.go$
28+
text: has been deprecated since Go 1.6
29+
paths:
30+
- third_party$
31+
- builtin$
32+
- examples$
33+
formatters:
34+
enable:
35+
- gofmt
2336
- gofumpt
24-
- tenv
25-
- durationcheck
26-
- staticcheck
27-
28-
issues:
29-
exclude-use-default: false
30-
exclude:
31-
- should have a package comment
32-
- error strings should not be capitalized or end with punctuation or a newline
33-
- http.CloseNotifier has been deprecated since
34-
- has been deprecated since Go 1.6
35-
service:
36-
golangci-lint-version: 1.45.2 # use the fixed version to not introduce new linters unexpectedly
37+
- goimports
38+
exclusions:
39+
generated: lax
40+
paths:
41+
- third_party$
42+
- builtin$
43+
- examples$

CREDITS

Lines changed: 474 additions & 3928 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 17 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,46 @@
11
module github.com/minio/sidekick
22

3-
go 1.23
3+
go 1.24.0
44

5-
toolchain go1.23.7
5+
toolchain go1.24.2
66

77
require (
88
github.com/dustin/go-humanize v1.0.1
99
github.com/fatih/color v1.18.0
1010
github.com/gorilla/mux v1.8.1
1111
github.com/minio/cli v1.24.2
1212
github.com/minio/dnscache v0.1.1
13-
github.com/minio/pkg/v3 v3.0.29
14-
github.com/prometheus/client_golang v1.20.5
13+
github.com/minio/pkg/v3 v3.1.3
14+
github.com/prometheus/client_golang v1.22.0
1515
github.com/sirupsen/logrus v1.9.3
1616
go.uber.org/atomic v1.11.0
1717
go.uber.org/automaxprocs v1.6.0
18-
golang.org/x/net v0.34.0
19-
golang.org/x/sys v0.29.0
20-
golang.org/x/term v0.28.0
18+
golang.org/x/net v0.39.0
19+
golang.org/x/sys v0.32.0
20+
golang.org/x/term v0.31.0
2121
)
2222

2323
require (
2424
github.com/beorn7/perks v1.0.1 // indirect
2525
github.com/cespare/xxhash/v2 v2.3.0 // indirect
26-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
27-
github.com/go-ini/ini v1.67.0 // indirect
28-
github.com/go-ole/go-ole v1.3.0 // indirect
26+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
2927
github.com/goccy/go-json v0.10.5 // indirect
30-
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
31-
github.com/golang/protobuf v1.5.4 // indirect
32-
github.com/klauspost/compress v1.17.11 // indirect
33-
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
34-
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
28+
github.com/lestrrat-go/blackmagic v1.0.3 // indirect
3529
github.com/lestrrat-go/httpcc v1.0.1 // indirect
3630
github.com/lestrrat-go/httprc v1.0.6 // indirect
3731
github.com/lestrrat-go/iter v1.0.2 // indirect
38-
github.com/lestrrat-go/jwx/v2 v2.1.3 // indirect
32+
github.com/lestrrat-go/jwx/v2 v2.1.5 // indirect
3933
github.com/lestrrat-go/option v1.0.1 // indirect
40-
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
4134
github.com/mattn/go-colorable v0.1.14 // indirect
4235
github.com/mattn/go-isatty v0.0.20 // indirect
43-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
44-
github.com/minio/madmin-go/v3 v3.0.90 // indirect
45-
github.com/minio/md5-simd v1.1.2 // indirect
46-
github.com/minio/minio-go/v7 v7.0.84 // indirect
47-
github.com/montanaflynn/stats v0.7.1 // indirect
4836
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
49-
github.com/philhofer/fwd v1.1.3-0.20240916144458-20a13a1f6b7c // indirect
50-
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
51-
github.com/prometheus/client_model v0.6.1 // indirect
52-
github.com/prometheus/common v0.62.0 // indirect
53-
github.com/prometheus/procfs v0.15.1 // indirect
54-
github.com/prometheus/prom2json v1.4.1 // indirect
55-
github.com/prometheus/prometheus v0.301.0 // indirect
37+
github.com/prometheus/client_model v0.6.2 // indirect
38+
github.com/prometheus/common v0.63.0 // indirect
39+
github.com/prometheus/procfs v0.16.1 // indirect
5640
github.com/rjeczalik/notify v0.9.3 // indirect
57-
github.com/rs/xid v1.6.0 // indirect
58-
github.com/safchain/ethtool v0.5.9 // indirect
59-
github.com/secure-io/sio-go v0.3.1 // indirect
6041
github.com/segmentio/asm v1.2.0 // indirect
61-
github.com/shirou/gopsutil/v3 v3.24.5 // indirect
62-
github.com/shoenig/go-m1cpu v0.1.6 // indirect
63-
github.com/tinylib/msgp v1.2.5 // indirect
64-
github.com/tklauser/go-sysconf v0.3.14 // indirect
65-
github.com/tklauser/numcpus v0.9.0 // indirect
66-
github.com/yusufpapurcu/wmi v1.2.4 // indirect
67-
golang.org/x/crypto v0.32.0 // indirect
68-
golang.org/x/sync v0.10.0 // indirect
69-
golang.org/x/text v0.21.0 // indirect
70-
google.golang.org/protobuf v1.36.4 // indirect
42+
golang.org/x/crypto v0.37.0 // indirect
43+
golang.org/x/sync v0.13.0 // indirect
44+
golang.org/x/text v0.24.0 // indirect
45+
google.golang.org/protobuf v1.36.6 // indirect
7146
)

0 commit comments

Comments
 (0)