-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy path.golangci.yaml
61 lines (56 loc) · 1.18 KB
/
.golangci.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "2"
output:
formats:
text:
print-issued-lines: true
print-linter-name: true
issues:
uniq-by-line: true
formatters:
enable:
- gofumpt
- goimports
linters:
disable:
- errcheck
enable:
- revive
- govet
- ineffassign
- copyloopvar
- staticcheck
- unconvert
- unused
- misspell
- whitespace
- depguard
- nlreturn
- nilerr
- gosec
settings:
gosec:
excludes:
- G104
- G301
- G302
- G304
revive:
severity: warning
staticcheck:
checks: ["all", "-SA1029", "-ST1020", "-ST1021", "-ST1022", "-ST1000", "-QF1008"]
depguard:
rules:
all:
deny:
- pkg: io/ioutil
desc: 'io/ioutil package has been deprecated'
- pkg: github.com/google/uuid
desc: "Uuid generation is only allowed using 'github.com/shellhub-io/shellhub/pkg/uuid'"
- pkg: github.com/dgrijalva/jwt-go
desc: "dgrijalva/jwt-go is deprecated please use 'github.com/golang-jwt/jwt'"
whitespace:
multi-if: true
multi-func: true
govet:
disable:
- composites