forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
52 lines (46 loc) · 1.36 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
run:
timeout: 5m
modules-download-mode: vendor
skip-dirs:
- store/storetest/mocks
linters-settings:
gofmt:
simplify: true
govet:
check-shadowing: true
enable-all: true
linters:
disable-all: true
enable:
- deadcode
- gofmt
- golint
- gosimple
- govet
- ineffassign
- scopelint
- structcheck
- staticcheck
- unconvert
- unused
- varcheck
# TODO: enable this later
# - errcheck
issues:
exclude-rules:
- linters:
# ignore unused warnings from enterprise code
# add more as required.
- unused
text: "RedisSupplier|LocalCacheSupplier|Enterprise"
- linters:
- scopelint
# ignore warnings from table tests. https://github.com/kyoh86/scopelint/issues/4
path: ".*_test.go|store/storetest"
- linters:
- staticcheck
path: ".*_test.go|store/storetest"
- linters:
# ignore golint error for a lot of packages for now
- golint
path: "api4|app|cmd|einterface|enterprise|jobs|migrations|mlog|model|testlib|services|store|utils|web|wsapi|plugin/plugintest/api.go|plugin/api.go|plugin/context.go|plugin/client.go|plugin/client_rpc.go|plugin/client_rpc_generated.go|plugin/api_timer_layer_generated.go|plugin/hooks_timer_layer_generated|plugin/environment.go|plugin/health_check.go|plugin/hooks.go|plugin/supervisor.go|plugin/valid.go"