-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
49 lines (48 loc) · 1.15 KB
/
.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
run:
timeout: 5m
linters:
enable:
- interfacer
- varcheck
- deadcode
- structcheck
- misspell
- ineffassign
- goconst
- errcheck
- unparam
- golint
- staticcheck
- unused
- gosimple
- unconvert
- gocyclo
- gosec
- gocritic
- gocognit
- nestif
- noctx
- unparam
- whitespace
- wsl
linters-settings:
nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 7
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"