This repository has been archived by the owner on Apr 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
113 lines (103 loc) · 2.16 KB
/
.golangci.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
run:
# default concurrency is a available CPU number
#concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# list of build tags, all linters use it. Default is empty list.
#build-tags:
# - mytag
#skip-dirs:
# - build
# default is true. Enables skipping of directories:
skip-dirs-use-default: true
skip-files:
- ".*\\.pb\\.go"
issues:
exclude-use-default: false
linters:
enable:
- deadcode
- errcheck
- goconst
- gocritic
- golint
- gomnd
- gosimple
- govet
- ineffassign
- lll
- misspell
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
disable:
- bodyclose
- depguard
- dogsled
- funlen
- gochecknoinits
- gochecknoglobals
- gocognit
- gocyclo
- godox
- gofmt
- goprintffuncname
- gosec
- interfacer
- maligned
- nakedret
- prealloc
- rowserrcheck
- scopelint
- stylecheck
- wsl
- goimports
- dupl
linters-settings:
dupl:
threshold: 100
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
- octalLiteral
- wrapperFunc
gocyclo:
min-complexity: 15
golint:
min-confidence: 0.8
gomnd:
settings:
mnd:
checks: argument,case,condition,operation,return,assign
govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
lll:
line-length: 200
tab-width: 1
misspell:
locale: US
ignore-words:
- write-down-word-to-ignore-misspell-check