forked from spiffe/spire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
48 lines (45 loc) · 838 Bytes
/
.golangci.yml
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
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 12m
issues:
exclude-dirs:
- testdata$
- test/mock
exclude-files:
- ".*\\.pb\\.go$"
exclude-rules:
- linters: [ gosec ]
path: "(.*_test\\.go$)|(^test/.*)"
text: "integer overflow conversion"
linters:
enable:
- bodyclose
- copyloopvar
- durationcheck
- errorlint
- exptostd
- gocritic
- gofmt
- goimports
- gosec
- intrange
- misspell
- nakedret
- nilnesserr
- nolintlint
- revive
- unconvert
- unparam
- wastedassign
- whitespace
linters-settings:
govet:
enable:
- sortslice
- unusedwrite
revive:
# minimal confidence for issues, default is 0.8
confidence: 0.0
rules:
- name: unused-parameter
disabled: true