-
-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy path.golangci.yml
More file actions
53 lines (52 loc) · 993 Bytes
/
.golangci.yml
File metadata and controls
53 lines (52 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "2"
run:
issues-exit-code: 1
tests: false
output:
formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: true
linters:
enable:
- bodyclose
- gosec
- misspell
- prealloc
- unconvert
settings:
errcheck:
exclude-functions:
- fmt.*
- Read.*
misspell:
locale: US
staticcheck:
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1006", "-QF1008"] # default, and exclude 1 more undesired check
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gosec
text: G107
- linters:
- gosec
text: G204
- linters:
- gosec
text: G306
- linters:
- gosec
text: G115
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax