-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy path.golangci.yml
62 lines (62 loc) · 1.11 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
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: lax
settings:
gofumpt:
extra-rules: true
goimports:
local-prefixes:
- github.com/envoyproxy/go-control-plane
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- bodyclose
- contextcheck
- errorlint
- gosec
- misspell
- perfsprint
- revive
- testifylint
- unconvert
- unparam
- whitespace
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gosec
path: pkg/test/resource/v3/secret.go
text: G101
settings:
exhaustive:
default-signifies-exhaustive: true
gosec:
excludes:
- G115
misspell:
locale: US
perfsprint:
int-conversion: true
err-error: true
errorf: true
sprintf1: true
strconcat: true
testifylint:
disable:
- float-compare
- go-require
enable-all: true
unparam:
check-exported: false
version: "2"