forked from openziti/ziti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
24 lines (24 loc) · 1 KB
/
.golangci.yml
File metadata and controls
24 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: "2"
linters:
settings:
staticcheck:
checks:
- "all"
- "-ST1000" # Incorrect or missing package comment
- "-ST1003" # Poorly chosen identifier
- "-ST1006" # Poorly chosen receiver name
- "-ST1020" # The documentation of an exported function should start with the function’s name
- "-ST1021" # The documentation of an exported type should start with type’s name
- "-QF1008" # access through an embedded member, which is not necessary. Consider adding back
- "-QF1003" # could use tagged switch
- "-QF1001" # could apply De Morgan's law
- "-ST1016" # methods on the same type should have the same receiver name
- "-QF1002" # could use tagged switch on err
- "-QF1012" # Use fmt.Fprintf(...) instead of WriteString(fmt.Sprintf(...)) (staticcheck)
- "-SA1019" # x509.IsEncryptedPEMBlock has been deprecated since Go 1.16
run:
build-tags:
- apitests
- pkcs11
# Default: 1m
timeout: 8m