Skip to content

Commit 7e8de56

Browse files
ci: sync golangci-lint config (#1)
Co-authored-by: caarlos0 <[email protected]>
1 parent 8108738 commit 7e8de56

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.golangci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: "2"
2+
run:
3+
tests: false
4+
linters:
5+
enable:
6+
- bodyclose
7+
- exhaustive
8+
- goconst
9+
- godot
10+
- gomoddirectives
11+
- goprintffuncname
12+
- gosec
13+
- misspell
14+
- nakedret
15+
- nestif
16+
- nilerr
17+
- noctx
18+
- nolintlint
19+
- prealloc
20+
- revive
21+
- rowserrcheck
22+
- sqlclosecheck
23+
- tparallel
24+
- unconvert
25+
- unparam
26+
- whitespace
27+
- wrapcheck
28+
exclusions:
29+
generated: lax
30+
presets:
31+
- common-false-positives
32+
issues:
33+
max-issues-per-linter: 0
34+
max-same-issues: 0
35+
formatters:
36+
enable:
37+
- gofumpt
38+
- goimports
39+
exclusions:
40+
generated: lax

0 commit comments

Comments
 (0)