-
Notifications
You must be signed in to change notification settings - Fork 71
/
.golangci.yaml
37 lines (34 loc) · 978 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
linters:
# Disable all linters, the defaults don't pass on our code yet
disable-all: true
# Enable these for now
enable:
- unused
- depguard
- gosimple
- govet
- errorlint
- copyloopvar
- intrange
linters-settings:
depguard:
rules:
main:
deny:
- pkg: "github.com/sirupsen/logrus"
desc: "logging is allowed only by github.com/rs/zerolog"
- pkg: "golang.org/x/exp"
desc: "exp is not allowed"
- pkg: "github.com/portainer/libcrypto"
desc: "use github.com/portainer/portainer/pkg/libcrypto"
- pkg: "github.com/portainer/libhttp"
desc: "use github.com/portainer/portainer/pkg/libhttp"
files:
- "!**/*_test.go"
# errorlint is causing a typecheck error for some reason. The go compiler will report these
# anyway, so ignore them from the linter
issues:
exclude-rules:
- path: ./
linters:
- typecheck