Skip to content

Commit 6bf7b64

Browse files
committed
Add golangci-lint config
Check in a .golangci.yml so the repo has a consistent linter setup. Uses the v2 config format with the standard linter set plus bodyclose, errorlint, gocritic, gosec, misspell, noctx, and prealloc. Closes #561
1 parent 9ea264c commit 6bf7b64

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.golangci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "2"
2+
3+
linters:
4+
default: standard
5+
enable:
6+
- bodyclose
7+
- errorlint
8+
- gocritic
9+
- gosec
10+
- misspell
11+
- noctx
12+
- prealloc
13+
14+
issues:
15+
max-same-issues: 0

0 commit comments

Comments
 (0)