Skip to content

Commit fabb80d

Browse files
committed
chore: add golangci-lint configuration
1 parent 809145a commit fabb80d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
run:
2+
timeout: 5m
3+
go: '1.21'
4+
5+
linters:
6+
disable-all: true
7+
enable:
8+
- errcheck
9+
- gosimple
10+
- govet
11+
- ineffassign
12+
- staticcheck
13+
- unused
14+
15+
linters-settings:
16+
govet:
17+
enable-all: false
18+
enable:
19+
- nilness
20+
- shadow
21+
staticcheck:
22+
checks:
23+
- all
24+
- -SA1019 # Ignore deprecated warnings
25+
26+
issues:
27+
exclude-use-default: false
28+
max-issues-per-linter: 50
29+
max-same-issues: 10

0 commit comments

Comments
 (0)