-
-
Notifications
You must be signed in to change notification settings - Fork 139
/
.golangci.yaml
48 lines (46 loc) · 1018 Bytes
/
.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
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
sort-results: true
linters:
disable-all: true
enable:
- gofmt
- revive
- gosimple
- govet
- ineffassign
- exportloopref
- staticcheck
- unconvert
- unused
- misspell
- goimports
- typecheck
- errcheck
- whitespace
- depguard
- stylecheck
- nlreturn
- nilerr
linters-settings:
staticcheck:
checks: ["all", "-SA1029"]
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