Skip to content

Commit b208fd2

Browse files
authored
Merge pull request #1147 from percona/PBM_CI_lint
CI. Migrate to golangci-lint v2
2 parents f48f838 + d458ece commit b208fd2

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
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: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
1+
version: "2"
12
linters:
2-
presets:
3-
- bugs
4-
- error
5-
- unused
63
enable:
74
- errname
85
- predeclared
9-
- stylecheck
10-
# - ireturn
11-
# - gomnd
6+
- staticcheck
127
- misspell
138
- nilerr
149
- nilnil
1510
- lll
16-
# - gocritic
17-
- typecheck
18-
# - goconst
1911
- gochecknoinits
20-
# - forbidigo
2112
- nonamedreturns
2213
disable:
2314
- contextcheck
2415
- exhaustive
2516
- gosec
2617
- wrapcheck
27-
28-
linters-settings:
29-
govet:
30-
disable:
31-
- composites
32-
misspell:
33-
locale: "US"
18+
settings:
19+
govet:
20+
disable:
21+
- composites
22+
misspell:
23+
locale: US
24+
exclusions:
25+
generated: lax
26+
presets:
27+
- comments
28+
- common-false-positives
29+
- legacy
30+
- std-error-handling
31+
paths:
32+
- third_party$
33+
- builtin$
34+
- examples$
35+
formatters:
36+
exclusions:
37+
generated: lax
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$

0 commit comments

Comments
 (0)