Skip to content

Commit c942d8c

Browse files
CI. Migrate to golangci-lint v2
1 parent f48f838 commit c942d8c

File tree

2 files changed

+54
-22
lines changed

2 files changed

+54
-22
lines changed

.github/workflows/reviewdog.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ jobs:
5757
with:
5858
reporter: github-pr-review
5959
level: error
60-
golangci_lint_version: v1.64.8
6160

6261
gofmt:
6362
name: runner / gofmt

.golangci.yml

Lines changed: 54 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,66 @@
1+
version: "2"
12
linters:
2-
presets:
3-
- bugs
4-
- error
5-
- unused
63
enable:
4+
- asasalint
5+
- asciicheck
6+
- bidichk
7+
- bodyclose
8+
- durationcheck
9+
- err113
10+
- errchkjson
711
- errname
8-
- predeclared
9-
- stylecheck
10-
# - ireturn
11-
# - gomnd
12+
- errorlint
13+
- gocheckcompilerdirectives
14+
- gochecknoinits
15+
- gochecksumtype
16+
- gosmopolitan
17+
- lll
18+
- loggercheck
19+
- makezero
1220
- misspell
21+
- musttag
1322
- nilerr
23+
- nilnesserr
1424
- nilnil
15-
- lll
16-
# - gocritic
17-
- typecheck
18-
# - goconst
19-
- gochecknoinits
20-
# - forbidigo
25+
- noctx
2126
- nonamedreturns
27+
- predeclared
28+
- protogetter
29+
- reassign
30+
- recvcheck
31+
- rowserrcheck
32+
- spancheck
33+
- sqlclosecheck
34+
- staticcheck
35+
- testifylint
36+
- unparam
37+
- zerologlint
2238
disable:
2339
- contextcheck
2440
- exhaustive
2541
- gosec
2642
- wrapcheck
27-
28-
linters-settings:
29-
govet:
30-
disable:
31-
- composites
32-
misspell:
33-
locale: "US"
43+
settings:
44+
govet:
45+
disable:
46+
- composites
47+
misspell:
48+
locale: US
49+
exclusions:
50+
generated: lax
51+
presets:
52+
- comments
53+
- common-false-positives
54+
- legacy
55+
- std-error-handling
56+
paths:
57+
- third_party$
58+
- builtin$
59+
- examples$
60+
formatters:
61+
exclusions:
62+
generated: lax
63+
paths:
64+
- third_party$
65+
- builtin$
66+
- examples$

0 commit comments

Comments
 (0)