forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yaml
53 lines (46 loc) · 968 Bytes
/
.golangci.yaml
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
run:
timeout: 5m
build-tags:
- e2e
- performance
- probe
- preupgrade
- postupgrade
- postdowngrade
- istio
skip-dirs:
- pkg/client
skip-files:
- ".pb.go$"
linters:
enable:
- asciicheck
- golint
- gosec
- prealloc
- stylecheck
- unconvert
- unparam
disable:
- errcheck
issues:
exclude-rules:
- path: test # Excludes /test, *_test.go etc.
linters:
- gosec
- unparam
# Ignore "context.Context should be the first parameter of a function" errors in tests.
# See: https://github.com/golang/lint/issues/422
- path: test
text: "context.Context should be the first"
linters:
- golint
# Allow source and sink receivers in conversion code for clarity.
- path: _conversion\.go
text: "ST1016:"
linters:
- stylecheck
- path: _conversion\.go
text: "receiver name"
linters:
- golint