forked from mongodb/mongodb-kubernetes-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
40 lines (38 loc) · 776 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
---
#########################
#########################
## Golang Linter rules ##
#########################
#########################
# configure golangci-lint
# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- gosec
- goconst
- golint
text: "underscore"
linters:
enable:
- govet
- errcheck
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
- rowserrcheck
- gosec
- unconvert
run:
modules-download-mode:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
# default concurrency is a available CPU number
concurrency: 4