forked from operator-framework/operator-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
38 lines (37 loc) · 954 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
run:
timeout: 5m
linters:
enable:
- nakedret
- misspell
- ineffassign
- ginkgolinter
- goconst
- goimports
- errcheck
- dupl
- unparam
- revive
- staticcheck
- unused
- gosimple
- unconvert
- gocyclo
- gosec
issues:
exclude-rules:
# Allow dot imports for ginkgo and gomega
- source: ginkgo|gomega
linters:
- revive
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"