-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy path.golangci.yml
47 lines (45 loc) · 1.16 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
run:
timeout: 5m
linters:
disable-all: true
enable:
- govet
- copyloopvar
- staticcheck
- gosimple
- ineffassign
- typecheck
- gosec
- unconvert
- goconst
- goimports
- misspell
- prealloc
- gocritic
- gofmt
- revive
issues:
exclude-use-default: false
exclude:
- G104 # Errors unhandled
- G103 # Use of unsafe calls should be audited
- G114 # Use of net/http serve function without timeouts.
- G115 # Integer overflow conversion should be audited
- G204 # Subprocess launched with variable
- G301 # Expect directory permissions to be 0750 or less
- G304 # Potential file inclusion via variable
- G306 # WriteFile permissions 0600 or less to be audited
- G307 # Deferring unsafe method "Close" on type "*os.File" to be audited
- G404 # Use of weak random number generator
exclude-rules:
- linters:
- govet
text: "copylocks"
- linters:
- revive
text: package-comments
- linters:
- staticcheck
text: "Do not rely on the global seed"
exclude-dirs:
- snapshotter/internal/integtest/stargz # Code copied from upstream stargz