Skip to content

Commit 2d2a48a

Browse files
committed
fix: update golangci and fix lint errors
1 parent 5ce88b4 commit 2d2a48a

File tree

5 files changed

+645
-621
lines changed

5 files changed

+645
-621
lines changed

.golangci.bck.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
run:
2+
timeout: 10m
3+
linters:
4+
enable:
5+
- errcheck
6+
- gosimple
7+
- govet
8+
- ineffassign
9+
- staticcheck
10+
- typecheck
11+
- unused

.golangci.yaml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
run:
2-
timeout: 10m
1+
version: "2"
32
linters:
4-
enable:
5-
- errcheck
6-
- gosimple
7-
- govet
8-
- ineffassign
9-
- staticcheck
10-
- typecheck
11-
- unused
3+
exclusions:
4+
generated: lax
5+
presets:
6+
- comments
7+
- common-false-positives
8+
- legacy
9+
- std-error-handling
10+
paths:
11+
- third_party$
12+
- builtin$
13+
- examples$
14+
formatters:
15+
exclusions:
16+
generated: lax
17+
paths:
18+
- third_party$
19+
- builtin$
20+
- examples$

0 commit comments

Comments
 (0)