forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
42 lines (37 loc) · 1.06 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
service:
golangci-lint-version: 1.21.0 # Keep this in sync with .circleci/config.yml and Jenkinsfile.pr
run:
timeout: 5m
modules-download-mode: vendor
linters-settings:
gofmt:
simplify: true
govet:
check-shadowing: true
enable-all: true
linters:
disable-all: true
enable:
- deadcode
- gofmt
- golint
- gosimple
- govet
- ineffassign
- structcheck
- 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:
# ignore golint error for a lot of packages for now
- golint
path: "api4|app|cmd|einterface|enterprise|imports|jobs|manualtesting|migrations|mlog|model|testlib|services|store|utils|web|wsapi|plugin/api.go|plugin/context.go|plugin/client.go|plugin/client_rpc.go|plugin/environment.go|plugin/health_check.go|plugin/hooks.go|plugin/supervisor.go|plugin/valid.go"