forked from projectcontour/contour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
61 lines (57 loc) · 1.45 KB
/
.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
54
55
56
57
58
59
60
61
run:
timeout: 10m
skip-files:
- apis/projectcontour/v1/kubeconditions.go # copy-pasted from k8s.io/apimachinery, has invalid header
linters:
enable:
- bodyclose
- gofmt
- goimports
- golint
- gosec
- misspell
- unconvert
- unparam
- goheader
# TODO(jpeach): enable these later:
# - gocyclo
# - gocognit
linters-settings:
misspell:
ignore-words:
- clas
- cancelled
locale: US
gofmt:
simplify: true
unparam:
check-exported: false
goheader:
template-path: ./hack/license-template.txt
issues:
exclude:
# TODO(jpeach): exclude unparam warnings about functions that always receive
# the same arguments. We should clean those up some time.
- always receives
exclude-rules:
- path: zz_generated
linters:
- goimports
# TODO(youngnick): Disable the deprecation warnings, because of the "github.com/golang/protobuf/proto"
# libraries. We can't stop using them yet, because they move from Proto v1 to V2
# And we can't nolint them by line, because https://github.com/golangci/golangci-lint/issues/741
- linters:
- staticcheck
text: "SA1019: package github.com/golang/protobuf"
- linters:
- golint
text: "var `ingress_https` should be `ingressHTTPS`"
- linters:
- golint
text: "var `ingress_http` should be `ingressHTTP`"
- linters:
- golint
text: "returns unexported type"
- linters:
- golint
text: "don't use ALL_CAPS in Go names; use CamelCase"