Skip to content

Commit f4884bd

Browse files
committed
ci: update to golangci-lint v2
1 parent 6ff650e commit f4884bd

4 files changed

Lines changed: 53 additions & 51 deletions

File tree

.github/workflows/scripts/golangci.yaml

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,47 @@
1-
run:
2-
timeout: 5m
1+
version: "2"
32
linters:
43
enable:
5-
- asasalint
6-
- asciicheck
7-
- bidichk
8-
- bodyclose
9-
- copyloopvar
10-
- dogsled
11-
- dupword
12-
- durationcheck
13-
- errcheck
14-
- errname
15-
- errorlint
16-
- exhaustive
17-
- gochecknoinits
18-
- gocritic
19-
- gofmt
20-
- gosimple
21-
- govet
22-
- ineffassign
23-
- makezero
24-
- misspell
25-
- musttag
26-
- nilnil
27-
- noctx
28-
- paralleltest
29-
- perfsprint
30-
- prealloc
31-
- predeclared
32-
- reassign
33-
- revive
34-
- rowserrcheck
35-
- staticcheck
36-
- sqlclosecheck
37-
- tagalign
38-
- tenv
39-
- unused
40-
- whitespace
4+
- asasalint
5+
- asciicheck
6+
- bidichk
7+
- bodyclose
8+
- copyloopvar
9+
- dogsled
10+
- dupword
11+
- durationcheck
12+
- errname
13+
- errorlint
14+
- exhaustive
15+
- gochecknoinits
16+
- gocritic
17+
- makezero
18+
- misspell
19+
- musttag
20+
- nilnil
21+
- noctx
22+
- paralleltest
23+
- perfsprint
24+
- prealloc
25+
- predeclared
26+
- reassign
27+
- revive
28+
- rowserrcheck
29+
- sqlclosecheck
30+
- tagalign
31+
- usetesting
32+
- whitespace
33+
settings:
34+
exhaustive:
35+
default-signifies-exhaustive: true
36+
paralleltest:
37+
ignore-missing-subtests: true
38+
exclusions:
39+
generated: lax
40+
presets:
41+
- comments
42+
formatters:
43+
enable:
44+
- gofmt
45+
exclusions:
46+
generated: lax
4147

42-
linters-settings:
43-
paralleltest:
44-
ignore-missing-subtests: true
45-
exhaustive:
46-
default-signifies-exhaustive: true

Justfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ lint: vet
4242
# locally install build dependencies
4343
[group('build')]
4444
init:
45-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2
45+
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4
46+

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module cattlecloud.net/go/forms
22

3-
go 1.23
3+
go 1.26
44

55
require (
6-
github.com/shoenig/go-conceal v0.5.4
7-
github.com/shoenig/lang v0.0.6
6+
github.com/shoenig/go-conceal v0.5.6
7+
github.com/shoenig/lang v0.0.7
88
github.com/shoenig/test v1.12.2
99
)
1010

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
22
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
3-
github.com/shoenig/go-conceal v0.5.4 h1:xLzarDUw3vUJjz+DirzO58yijkX4I9F1KA+RPZMLGLY=
4-
github.com/shoenig/go-conceal v0.5.4/go.mod h1:LXmjZn/bO1Nrtvfex4VNbKViVE+aMhVvskZx8o7HBfs=
5-
github.com/shoenig/lang v0.0.6 h1:i8NVe+fNQLUGXk+KPP6lB6Jcfmcrmc9nCEYknHsBbVQ=
6-
github.com/shoenig/lang v0.0.6/go.mod h1:DStvcG5yPYr/xBBcTEaousm+Pqjn9ozAKfyqWwfhj34=
3+
github.com/shoenig/go-conceal v0.5.6 h1:K2j8Ql6U4YrBxCRaNF/AnuYaeG8dmf2HcApc7nEdmpk=
4+
github.com/shoenig/go-conceal v0.5.6/go.mod h1:rP6ts7GI3lTWQu0gZBWN/aLR1YrdqvrAZbT8cxzxd2A=
5+
github.com/shoenig/lang v0.0.7 h1:0F7/U1ria0edQPYf0e4zX+hJ2Wxo4UPss2fydWkqvCw=
6+
github.com/shoenig/lang v0.0.7/go.mod h1:DStvcG5yPYr/xBBcTEaousm+Pqjn9ozAKfyqWwfhj34=
77
github.com/shoenig/test v1.12.2 h1:ZVT8NeIUwGWpZcKaepPmFMoNQ3sVpxvqUh/MAqwFiJI=
88
github.com/shoenig/test v1.12.2/go.mod h1:UxJ6u/x2v/TNs/LoLxBNJRV9DiwBBKYxXSyczsBHFoI=

0 commit comments

Comments
 (0)