-
Notifications
You must be signed in to change notification settings - Fork 443
/
.golangci.yml
57 lines (52 loc) · 1015 Bytes
/
.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
run:
timeout: 15m
output:
sort-results: true
linters:
enable:
- gocritic
- gofumpt
- goimports
- misspell
- predeclared
- revive
- unconvert
- unused
- errcheck
- gosec
- govet
- perfsprint
- usestdlibvars
- loggercheck
- whitespace
- errorlint
issues:
max-same-issues: 0
exclude-rules:
- linters:
- gocritic
text: "appendAssign"
- linters:
- revive
text: "don't use an underscore in package name" # package name not change
- linters:
- revive
text: "VpcDns should be VpcDNS" # api param not change
- linters:
- revive
text: "VpcDnsList should be VpcDNSList" # api param not change
- linters:
- gosec
path: _test\.go
- linters:
- gosec
path: test/
linters-settings:
goimports:
local-prefixes: github.com/kubeovn/kube-ovn
gofumpt:
extra-rules: true
perfsprint:
strconcat: false
errorlint:
asserts: false