Skip to content

Commit 483c7a2

Browse files
committed
Bump golangci
1 parent 231df55 commit 483c7a2

2 files changed

Lines changed: 45 additions & 27 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- name: golangci-lint
1818
uses: golangci/golangci-lint-action@v7
1919
with:
20-
version: v1.64
20+
version: v2.0.2

.golangci.yml

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
tests: false
44
linters:
5-
enable-all: true
6-
disable:
7-
- cyclop
8-
- exportloopref
9-
- depguard
10-
- exhaustruct
11-
- forbidigo
12-
- forcetypeassert
13-
- gci
14-
- gochecknoglobals
15-
- gochecknoinits
16-
- godox
17-
- godot
18-
- err113
19-
- gofumpt
20-
- mnd
21-
- lll
22-
- musttag
23-
- nakedret
24-
- nlreturn
25-
- nolintlint
26-
- nonamedreturns
27-
- tagliatelle
28-
- varnamelen
29-
- wrapcheck
5+
default: all
6+
disable:
7+
- cyclop
8+
- depguard
9+
- err113
10+
- exhaustruct
11+
- forbidigo
12+
- forcetypeassert
13+
- gochecknoglobals
14+
- gochecknoinits
15+
- godot
16+
- godox
17+
- lll
18+
- mnd
19+
- musttag
20+
- nakedret
21+
- nlreturn
22+
- nolintlint
23+
- nonamedreturns
24+
- tagliatelle
25+
- varnamelen
26+
- wrapcheck
27+
exclusions:
28+
generated: lax
29+
presets:
30+
- comments
31+
- common-false-positives
32+
- legacy
33+
- std-error-handling
34+
paths:
35+
- third_party$
36+
- builtin$
37+
- examples$
38+
formatters:
39+
enable:
40+
- gofmt
41+
- goimports
42+
exclusions:
43+
generated: lax
44+
paths:
45+
- third_party$
46+
- builtin$
47+
- examples$

0 commit comments

Comments
 (0)