-
Notifications
You must be signed in to change notification settings - Fork 498
/
.golangci.yml
39 lines (34 loc) · 1.03 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
run:
timeout: 20m
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
- G115 # Rule: integer overflow conversion
govet:
disable:
- printf # non-constant format string in call
issues:
exclude-rules:
- path: tests
linters:
- gosec
- linters:
- staticcheck
text: "SA1019:" # Rule: Using a deprecated function, variable, constant or field