-
Notifications
You must be signed in to change notification settings - Fork 16
/
.golangci.yml
53 lines (49 loc) · 989 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
49
50
51
52
53
linters:
enable-all: false
enable:
- exportloopref
- staticcheck
- megacheck
- govet
- gosimple
- nakedret
- typecheck
- gosec
- revive
- unconvert
- misspell
disable:
- ineffassign
- errcheck
- varcheck
- deadcode
- unused
- structcheck
- lll
- gofmt
- goconst
- scopelint
run:
concurrency: 4
timeout: 3m
# Keep exit code 0 until we fix all this, i.e. get the baseline set.
issues-exit-code: 0
# Keep this false until we address all the non-test files and set baseline.
tests: true
issues:
exclude-dirs:
- testdata
exclude-files:
- ".*_test.go$"
exclude-rules:
# We don't control the ciphers as we are just implementing standards.
- linters:
- gosec
text: "weak cryptographic primitive"
# output configuration options
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
path-prefix: ""