forked from operator-framework/operator-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
42 lines (41 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
run:
timeout: 5m
linters:
enable:
- nakedret
- interfacer
- varcheck
- deadcode
- structcheck
- misspell
- maligned
- ineffassign
- goconst
- goimports
- errcheck
- dupl
- unparam
- golint
- staticcheck
- unused
- gosimple
- unconvert
- gocyclo
- gosec
issues:
exclude-rules:
# Allow dot imports for ginkgo and gomega
- source: ginkgo|gomega
linters:
- golint
text: "should not use dot imports"
- linters:
- gosec
# these exclusion rules are for current failures in the code base for gosec which are
# excluded for future PRs which include:
# G110: Potential DoS vulnerability via decompression bomb
# G204: Audit use of command execution
# G306: Poor file permissions used when writing to a new file
# G404: Insecure random number source (rand)
# G601: Implicit memory aliasing of items from a range statement
text: "G110|G601|G404|G204|G306"