Skip to content

Commit 7f87385

Browse files
committed
chore: add golangci-lint config
1 parent 2d80c69 commit 7f87385

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.golangci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
run:
2+
timeout: 2m
3+
4+
linters:
5+
enable:
6+
# enabled by default
7+
# https://golangci-lint.run/usage/linters/
8+
- govet
9+
- errcheck
10+
- staticcheck
11+
- unused
12+
- gosimple
13+
- structcheck
14+
- varcheck
15+
- ineffassign
16+
- deadcode
17+
- typecheck
18+
# project additions
19+
# keep this list alphabetically sorted
20+
- bodyclose
21+
- goconst
22+
# - gofmt -- goimports contains this
23+
- goimports
24+
- gosec
25+
- misspell
26+
- nakedret
27+
- nolintlint
28+
- prealloc
29+
- unconvert
30+
31+
linters-settings:
32+
gofmt:
33+
simplify: true
34+
goimports:
35+
local-prefixes: github.com/xen0n/go-workwx
36+
misspell:
37+
locale: US
38+
nakedret:
39+
max-func-lines: 1

0 commit comments

Comments
 (0)