Skip to content

Commit 5eba9fc

Browse files
committed
PMM-7 Lint.
1 parent 2d42596 commit 5eba9fc

File tree

3 files changed

+98
-43
lines changed

3 files changed

+98
-43
lines changed

tools/go.mod

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/percona/postgres_exporter/tools
33
go 1.25.4
44

55
require (
6-
github.com/golangci/golangci-lint v1.64.8
6+
github.com/golangci/golangci-lint/v2 v2.6.2
77
github.com/prometheus/promu v0.18.0
88
github.com/reviewdog/reviewdog v0.21.0
99
honnef.co/go/tools v0.6.1
@@ -14,18 +14,22 @@ require (
1414
4d63.com/gochecknoglobals v0.2.2 // indirect
1515
code.gitea.io/sdk/gitea v0.22.1 // indirect
1616
codeberg.org/chavacava/garif v0.2.0 // indirect
17+
dev.gaijin.team/go/exhaustruct/v4 v4.0.0 // indirect
18+
dev.gaijin.team/go/golib v0.6.0 // indirect
1719
github.com/42wim/httpsig v1.2.3 // indirect
1820
github.com/4meepo/tagalign v1.4.3 // indirect
1921
github.com/Abirdcfly/dupword v0.1.7 // indirect
22+
github.com/AdminBenni/iota-mixing v1.0.0 // indirect
23+
github.com/AlwxSin/noinlineerr v1.0.5 // indirect
2024
github.com/Antonboom/errname v1.1.1 // indirect
2125
github.com/Antonboom/nilnil v1.1.1 // indirect
2226
github.com/Antonboom/testifylint v1.6.4 // indirect
2327
github.com/BurntSushi/toml v1.5.0 // indirect
24-
github.com/Crocmagnon/fatcontext v0.7.1 // indirect
2528
github.com/Djarvur/go-err113 v0.1.1 // indirect
26-
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.1 // indirect
2729
github.com/Masterminds/semver/v3 v3.4.0 // indirect
30+
github.com/MirrexOne/unqueryvet v1.2.1 // indirect
2831
github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect
32+
github.com/alecthomas/chroma/v2 v2.20.0 // indirect
2933
github.com/alecthomas/go-check-sumtype v0.3.1 // indirect
3034
github.com/alecthomas/kingpin/v2 v2.4.0 // indirect
3135
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b // indirect
@@ -34,12 +38,14 @@ require (
3438
github.com/alfatraining/structtag v1.0.0 // indirect
3539
github.com/alingse/asasalint v0.0.11 // indirect
3640
github.com/alingse/nilnesserr v0.2.0 // indirect
37-
github.com/ashanbrown/forbidigo v1.6.0 // indirect
38-
github.com/ashanbrown/makezero v1.2.0 // indirect
41+
github.com/ashanbrown/forbidigo/v2 v2.3.0 // indirect
42+
github.com/ashanbrown/makezero/v2 v2.1.0 // indirect
43+
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
3944
github.com/beorn7/perks v1.0.1 // indirect
4045
github.com/bkielbasa/cyclop v1.2.3 // indirect
4146
github.com/blizzy78/varnamelen v0.8.0 // indirect
4247
github.com/bombsimon/wsl/v4 v4.7.0 // indirect
48+
github.com/bombsimon/wsl/v5 v5.3.0 // indirect
4349
github.com/breml/bidichk v0.3.3 // indirect
4450
github.com/breml/errchkjson v0.4.1 // indirect
4551
github.com/butuzov/ireturn v0.4.0 // indirect
@@ -48,9 +54,15 @@ require (
4854
github.com/ccojocar/zxcvbn-go v1.0.4 // indirect
4955
github.com/cespare/xxhash/v2 v2.3.0 // indirect
5056
github.com/charithe/durationcheck v0.0.11 // indirect
57+
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
58+
github.com/charmbracelet/lipgloss v1.1.0 // indirect
59+
github.com/charmbracelet/x/ansi v0.8.0 // indirect
60+
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
61+
github.com/charmbracelet/x/term v0.2.1 // indirect
5162
github.com/ckaznocha/intrange v0.3.1 // indirect
5263
github.com/curioswitch/go-reassign v0.3.0 // indirect
5364
github.com/daixiang0/gci v0.13.7 // indirect
65+
github.com/dave/dst v0.27.3 // indirect
5466
github.com/davecgh/go-spew v1.1.1 // indirect
5567
github.com/davidmz/go-pageant v1.0.2 // indirect
5668
github.com/denis-tingaikin/go-header v0.5.0 // indirect
@@ -74,14 +86,17 @@ require (
7486
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
7587
github.com/go-xmlfmt/xmlfmt v1.1.3 // indirect
7688
github.com/gobwas/glob v0.2.3 // indirect
89+
github.com/godoc-lint/godoc-lint v0.10.1 // indirect
7790
github.com/gofrs/flock v0.13.0 // indirect
91+
github.com/golangci/asciicheck v0.5.0 // indirect
7892
github.com/golangci/dupl v0.0.0-20250308024227-f665c8d69b32 // indirect
7993
github.com/golangci/go-printf-func-name v0.1.1 // indirect
8094
github.com/golangci/gofmt v0.0.0-20250704145412-3e58ba0443c6 // indirect
81-
github.com/golangci/golangci-lint/v2 v2.6.2 // indirect
95+
github.com/golangci/golines v0.0.0-20250217134842-442fd0091d95 // indirect
8296
github.com/golangci/misspell v0.7.0 // indirect
8397
github.com/golangci/plugin-module-register v0.1.2 // indirect
8498
github.com/golangci/revgrep v0.8.0 // indirect
99+
github.com/golangci/swaggoswag v0.0.0-20250504205917-77f2aca3143e // indirect
85100
github.com/golangci/unconvert v0.0.0-20250410112200-a129a6e6413e // indirect
86101
github.com/google/go-cmp v0.7.0 // indirect
87102
github.com/google/go-github/v25 v25.1.3 // indirect
@@ -117,21 +132,26 @@ require (
117132
github.com/ldez/tagliatelle v0.7.2 // indirect
118133
github.com/ldez/usetesting v0.5.0 // indirect
119134
github.com/leonklingele/grouper v1.1.2 // indirect
135+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
120136
github.com/macabu/inamedparam v0.2.0 // indirect
137+
github.com/manuelarte/embeddedstructfieldcheck v0.4.0 // indirect
138+
github.com/manuelarte/funcorder v0.5.0 // indirect
121139
github.com/maratori/testableexamples v1.0.1 // indirect
122140
github.com/maratori/testpackage v1.1.2 // indirect
123141
github.com/matoous/godox v1.1.0 // indirect
124142
github.com/mattn/go-colorable v0.1.14 // indirect
125143
github.com/mattn/go-isatty v0.0.20 // indirect
144+
github.com/mattn/go-runewidth v0.0.16 // indirect
126145
github.com/mattn/go-shellwords v1.0.12 // indirect
127146
github.com/mgechev/revive v1.13.0 // indirect
128147
github.com/mitchellh/go-homedir v1.1.0 // indirect
129148
github.com/moricho/tparallel v0.3.2 // indirect
149+
github.com/muesli/termenv v0.16.0 // indirect
130150
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
131151
github.com/nakabonne/nestif v0.3.1 // indirect
132152
github.com/nishanths/exhaustive v0.12.0 // indirect
133153
github.com/nishanths/predeclared v0.2.2 // indirect
134-
github.com/nunnatsa/ginkgolinter v0.19.1 // indirect
154+
github.com/nunnatsa/ginkgolinter v0.21.2 // indirect
135155
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
136156
github.com/pmezard/go-difflib v1.0.0 // indirect
137157
github.com/polyfloyd/go-errorlint v1.8.0 // indirect
@@ -148,6 +168,7 @@ require (
148168
github.com/reva2/bitbucket-insights-api v1.0.0 // indirect
149169
github.com/reviewdog/errorformat v0.0.0-20250320004447-223c26dbe212 // indirect
150170
github.com/reviewdog/go-bitbucket v0.0.0-20201024094602-708c3f6a7de0 // indirect
171+
github.com/rivo/uniseg v0.4.7 // indirect
151172
github.com/rogpeppe/go-internal v1.14.1 // indirect
152173
github.com/ryancurrah/gomodguard v1.4.1 // indirect
153174
github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect
@@ -159,7 +180,6 @@ require (
159180
github.com/securego/gosec/v2 v2.22.10 // indirect
160181
github.com/sirupsen/logrus v1.9.3 // indirect
161182
github.com/sivchari/containedctx v1.0.3 // indirect
162-
github.com/sivchari/tenv v1.12.1 // indirect
163183
github.com/sonatard/noctx v0.4.0 // indirect
164184
github.com/sourcegraph/go-diff v0.7.0 // indirect
165185
github.com/spf13/afero v1.15.0 // indirect
@@ -172,7 +192,6 @@ require (
172192
github.com/stretchr/objx v0.5.3 // indirect
173193
github.com/stretchr/testify v1.11.1 // indirect
174194
github.com/subosito/gotenv v1.6.0 // indirect
175-
github.com/tdakkota/asciicheck v0.4.1 // indirect
176195
github.com/tetafro/godot v1.5.4 // indirect
177196
github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67 // indirect
178197
github.com/timonwong/loggercheck v0.11.0 // indirect
@@ -184,13 +203,16 @@ require (
184203
github.com/uudashr/iface v1.4.1 // indirect
185204
github.com/xen0n/gosmopolitan v1.3.0 // indirect
186205
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
206+
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
187207
github.com/yagipy/maintidx v1.0.0 // indirect
188208
github.com/yeya24/promlinter v0.3.0 // indirect
189209
github.com/ykadowak/zerologlint v0.1.5 // indirect
190210
gitlab.com/bosi/decorder v0.4.2 // indirect
191211
gitlab.com/gitlab-org/api/client-go v0.142.6 // indirect
192212
go-simpler.org/musttag v0.14.0 // indirect
193213
go-simpler.org/sloglint v0.11.1 // indirect
214+
go.augendre.info/arangolint v0.3.1 // indirect
215+
go.augendre.info/fatcontext v0.9.0 // indirect
194216
go.uber.org/atomic v1.11.0 // indirect
195217
go.uber.org/automaxprocs v1.6.0 // indirect
196218
go.uber.org/multierr v1.11.0 // indirect
@@ -206,8 +228,6 @@ require (
206228
golang.org/x/text v0.31.0 // indirect
207229
golang.org/x/time v0.14.0 // indirect
208230
golang.org/x/tools v0.39.0 // indirect
209-
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
210-
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
211231
google.golang.org/protobuf v1.36.10 // indirect
212232
gopkg.in/yaml.v2 v2.4.0 // indirect
213233
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)