forked from projectcontour/contour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
64 lines (60 loc) · 1.39 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
62
63
64
run:
timeout: 10m
linters:
enable:
- bodyclose
- gofmt
- goimports
- revive
- gosec
- misspell
- unconvert
- unparam
- goheader
- gocritic
# 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: "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"
- path: test/e2e
linters:
- bodyclose