forked from pingcap/tidb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
34 lines (30 loc) · 928 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
run:
timeout: 10m
linters:
enable:
- typecheck
- goimports
- gosimple
- staticcheck
- gosec
disable:
- errcheck
linters-settings:
gosec:
excludes:
- G107 # Rule: Url provided to HTTP request as taint input
- G108 # Rule: Profiling endpoint automatically exposed on /debug/pprof
- G306 # Rule: Poor file permissions used when writing to a new file
- G402 # Rule: Look for bad TLS connection settings
- G404 # Rule: Insecure random number source (rand)
- G201 # Rule: SQL query construction using format string
- G114 # Rule: Use of net/http serve function that has no support for setting timeouts
- G112 # Rule: Potential slowloris attack
issues:
exclude-rules:
- path: tests
linters:
- gosec
- linters:
- staticcheck
text: "SA1019:" # Rule: Using a deprecated function, variable, constant or field