-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy path.golangci.yaml
More file actions
43 lines (42 loc) · 852 Bytes
/
.golangci.yaml
File metadata and controls
43 lines (42 loc) · 852 Bytes
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
version: 2
linters:
disable-all: true
enable:
- errcheck
- govet
- gosec
- ineffassign
- staticcheck
- unused
- misspell
- prealloc
formatters:
enable:
- gofmt
settings:
gosec:
# https://github.com/securego/gosec#available-rules
excludes:
- G101 # Look for hard coded credentials
- G204 # Audit the use of command execution
- G402 # TLS InsecureSkipVerify set true
exclude-files:
- /zz_generated_
- _generated
exclude-dirs:
- generated
exclusions:
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- staticcheck
text: "QF1008:" # could remove embedded field from selector (staticcheck)
run:
timeout: 5m
tests: true
build-tags:
- test