forked from kubeovn/kube-ovn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
44 lines (39 loc) · 856 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
run:
timeout: 15m
output:
sort-results: true
linters:
enable:
- gocritic
- gofumpt
- goimports
- misspell
- predeclared
- revive
- unconvert
- unused
- errcheck
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
- path: test/unittest/
linters:
- revive
text: "should not use dot imports" # ginkgo coding style
- linters:
- revive
text: "VpcDns should be VpcDNS" # api param not change
- linters:
- revive
text: "VpcDnsList should be VpcDNSList" # api param not change
linters-settings:
goimports:
local-prefixes: github.com/kubeovn/kube-ovn
gofumpt:
extra-rules: true