forked from olivere/elastic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
78 lines (75 loc) · 2 KB
/
.golangci.yml
File metadata and controls
78 lines (75 loc) · 2 KB
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
run:
# 30min deadline
deadline: 30m
# Fail when any changes to go.mod are needed
# (enable after Go modules are introduced)
#modules-download-mode: readonly
# Skip certain directories
skip-dirs:
- node_modules$
# Skip certain auto-generated files
skip-files:
- ".*\\.pb\\.go$"
linters-settings:
errcheck:
check-blank: false
ignore: fmt:.*,io/ioutil:^Read.*,os:^Write.*,net/http:^ParseForm.*,github.com/go-kit/kit/log:^Log.*,github.com/go-kit/kit/log/level:^Log.*
govet:
check-shadowing: false
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- (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
- (github.com/go-kit/kit/log.Logger).Log
golint:
min-confidence: 0.8
gocyclo:
min-complexity: 30
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
depguard:
list-type: blacklist
packages:
- github.com/davecgh/go-spew/spew
misspell:
locale: US
lll:
line-length: 120
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/olivere/elastic
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- wrapperFunc
- importShadow
linters:
enable-all: true
disable:
- maligned
- prealloc
- gochecknoglobals
- gochecknoinits
- gocyclo
- dupl
- lll
- goconst
issues:
exclude-rules:
- linters:
- lll
source: '^//go:generate '
- path: sage/
text: "ALL_CAPS|don't use underscores in Go names|struct field.*should be"