forked from envoyproxy/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
69 lines (66 loc) · 1.81 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
65
66
67
68
69
run:
deadline: 10m
linters:
enable:
- bodyclose
- depguard
- exportloopref
- gofmt
- goimports
- goheader
- gocritic
- gosec
- misspell
- revive
- unconvert
- unparam
linters-settings:
depguard:
packages-with-error-message:
- github.com/gogo/protobuf: "gogo/protobuf is deprecated, use golang/protobuf"
- gopkg.in/yaml.v2: "use sigs.k8s.io/yaml instead"
- gopkg.in/yaml.v3: "use sigs.k8s.io/yaml instead"
gci:
sections:
# Captures all standard packages if they do not match another section.
- standard
# Contains all imports that could not be matched to another section type.
- default
# Groups all imports with the specified Prefix.
- prefix(github.com/envoyproxy/gateway/)
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/envoyproxy/gateway/
gofmt:
simplify: true
unparam:
check-exported: false
revive:
rules:
# TODO: enable if-return check
- name: if-return
disabled: true
goheader:
# Note that because the format is different (this needs no comment markers),
# updating this text means also updating /tools/boilerplate.txt so that
# `make generate` will update the generated files correctly.
template: |-
Copyright Envoy Gateway Authors
SPDX-License-Identifier: Apache-2.0
The full text of the Apache license is available in the LICENSE file at
the root of the repo.
issues:
exclude-rules:
- path: zz_generated
linters:
- goimports
- linters:
- staticcheck
text: "SA1019:"
- path: test/e2e
linters:
- bodyclose
# Show the complete output
max-issues-per-linter: 0
max-same-issues: 0