Skip to content

Commit d8366f3

Browse files
authored
ci: update to golangci-lint v2 (#17)
1 parent ade64d5 commit d8366f3

3 files changed

Lines changed: 46 additions & 45 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ lint: vet
3636
# locally install build dependencies
3737
[group('build')]
3838
init:
39-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2
39+
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4
4040

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module cattlecloud.net/go/scope
22

3-
go 1.23
3+
go 1.26

0 commit comments

Comments
 (0)