-
Notifications
You must be signed in to change notification settings - Fork 118
/
.golangci.yml
41 lines (37 loc) · 957 Bytes
/
.golangci.yml
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
# This is applied to `estargz` submodule as well.
# https://golangci-lint.run/usage/configuration#config-file
linters:
enable:
- depguard # Checks for imports that shouldn't be used.
- staticcheck
- unconvert
- gofmt
- goimports
- revive
- ineffassign
- govet
- unused
- misspell
disable:
- errcheck
linters-settings:
depguard:
rules:
main:
deny:
- pkg: "github.com/containerd/containerd/errdefs"
desc: The containerd errdefs package was migrated to a separate module. Use github.com/containerd/errdefs instead.
- pkg: "github.com/containerd/containerd/log"
desc: The containerd log package was migrated to a separate module. Use github.com/containerd/log instead.
run:
deadline: 4m
issues:
exclude-rules:
- linters:
- revive
text: "unused-parameter"
exclude-dirs:
- docs
- images
- out
- script