Skip to content

Commit 2006d08

Browse files
authored
ci: migrate to golangci-lint v2 (#5)
1 parent 15a3539 commit 2006d08

File tree

2 files changed

+44
-45
lines changed

2 files changed

+44
-45
lines changed
Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
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
41-
42-
linters-settings:
43-
paralleltest:
44-
ignore-missing-subtests: true
45-
exhaustive:
46-
default-signifies-exhaustive: true
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+
- whitespace
32+
settings:
33+
exhaustive:
34+
default-signifies-exhaustive: true
35+
paralleltest:
36+
ignore-missing-subtests: true
37+
exclusions:
38+
generated: lax
39+
presets:
40+
- comments
41+
formatters:
42+
enable:
43+
- gofmt
44+
exclusions:
45+
generated: lax

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ lint: vet
4343
# locally install build dependencies
4444
[group('build')]
4545
init:
46-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2
46+
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.3.0
4747

0 commit comments

Comments
 (0)