-
Notifications
You must be signed in to change notification settings - Fork 425
Expand file tree
/
Copy path.golangci.yml
More file actions
41 lines (36 loc) · 879 Bytes
/
.golangci.yml
File metadata and controls
41 lines (36 loc) · 879 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
version: "2"
linters:
disable:
# TODO: Re-enable after fixing pre-existing unchecked error returns
- errcheck
enable:
- govet
- ineffassign
- staticcheck
- unused
settings:
govet:
enable-all: true
disable:
- fieldalignment
- shadow
- nilness
exclusions:
rules:
# Existing code uses deprecated x/net/context
- text: 'SA1019:.*golang.org/x/net/context'
linters: [staticcheck]
# Existing code traps SIGKILL
- text: 'SA1016'
linters: [staticcheck]
# Existing code uses punctuation in error strings
- text: 'ST1005'
linters: [staticcheck]
# Existing unused vars
- text: 'templateDirsFlag is unused|dependencyChan is unused'
linters: [unused]
formatters:
enable: []
issues:
max-issues-per-linter: 0
max-same-issues: 0