forked from kubernetes-csi/csi-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
41 lines (38 loc) · 891 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
run:
skip-dirs:
- release-tools
linters:
fast: false
enable:
- deadcode
- errcheck
- gocognit
- gocyclo
- gofmt
- goimports
- golint
- govet
- gosec
- ineffassign
- misspell
- staticcheck
- stylecheck
- typecheck
- unconvert
- varcheck
- whitespace
linters-settings:
govet:
# report about shadowed variables
check-shadowing: true
issues:
exclude:
# conversion function names use underscores, and may be unused
- "`convert_[a-z]+_[A-Z][a-zA-Z0-9]+_To_[a-z]+_[A-Z][a-zA-Z0-9]+` is unused"
- "(don't|should not) use underscores in Go names; func convert_[a-z]+_[A-Z][a-zA-Z0-9]+_To_[a-z]+_[A-Z][a-zA-Z0-9]+ should be"
exclude-rules:
# this file uses MD5 to compare files efficiently
- path: integrationtests/utils.go
text: "weak cryptographic primitive"
linters:
- gosec