5bcf420c13c6238eebd5efc42296b4f9dce68b29
- Author
- github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
ci: sync golangci-lint config (#685)
Co-authored-by: andreynering <7011819+andreynering@users.noreply.github.com>
Diff
1diff --git a/.golangci.yml b/.golangci.yml
2index 90c5c08bd06577c7f6b772d28dc92970918d467d..7c0a115e8df41516019099c7f32ef703032f377c 100644
3--- a/.golangci.yml
4+++ b/.golangci.yml
5@@ -1,17 +1,6 @@
6+version: "2"
7 run:
8 tests: false
9-
10-issues:
11- include:
12- - EXC0001
13- - EXC0005
14- - EXC0011
15- - EXC0012
16- - EXC0013
17-
18- max-issues-per-linter: 0
19- max-same-issues: 0
20-
21 linters:
22 enable:
23 - bodyclose
24@@ -19,8 +8,6 @@ linters:
25 - goconst
26 - godot
27 - godox
28- - gofumpt
29- - goimports
30 - gomoddirectives
31 - goprintffuncname
32 - gosec
33@@ -39,3 +26,24 @@ linters:
34 - unparam
35 - whitespace
36 - wrapcheck
37+ exclusions:
38+ generated: lax
39+ presets:
40+ - common-false-positives
41+ paths:
42+ - third_party$
43+ - builtin$
44+ - examples$
45+issues:
46+ max-issues-per-linter: 0
47+ max-same-issues: 0
48+formatters:
49+ enable:
50+ - gofumpt
51+ - goimports
52+ exclusions:
53+ generated: lax
54+ paths:
55+ - third_party$
56+ - builtin$
57+ - examples$