forked from Aptomi/k8s-app-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
51 lines (48 loc) · 1.07 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
run:
deadline: 2m
skip-dirs:
- .git
- .idea
- pkg/server/ui
- vendor
- webui
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
govet:
check-shadowing: true
gofmt:
simplify: true
gocyclo:
# todo: switch to 10 as more appropriate complexity
min-complexity: 20
maligned:
suggest-new: true
dupl:
# todo: switch to 50 as more appropriate duplication threshold
threshold: 200
goconst:
min-len: 3
min-occurrences: 3
depguard:
list-type: blacklist
# include-go-root: false
# packages:
# - github.com/davecgh/go-spew/spew
linters:
enable-all: true
disable:
# enable to optimize struct size in memory
- maligned
# todo: enable lll and switch to 120 as more appropriate line length limit
- lll
issues:
exclude-use-default: false
exclude:
# [gas] Duplicated errcheck checks
- G104
# [gas] False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
- Potential file inclusion via variable
max-issues-per-linter: 0
max-same-issues: 0