-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.golangci.yml
More file actions
144 lines (137 loc) · 2.7 KB
/
Copy path.golangci.yml
File metadata and controls
144 lines (137 loc) · 2.7 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: "2"
run:
go: "1.25"
timeout: 10m
tests: false
issues-exit-code: 1
modules-download-mode: readonly
allow-parallel-runners: true
build-tags:
- "!community"
- "jemalloc"
- "vectors"
relative-path-mode: gomod
issues:
max-issues-per-linter: 0 # Unlimited
max-same-issues: 0 # Unlimited
new: true
# new-from-merge-base: "couchbase/master"
fix: false
whole-files: false
linters:
enable:
- asciicheck
- bodyclose
- dogsled
- errcheck
- govet
- ineffassign
- lll
- misspell
- nakedret
- nolintlint
- prealloc
- staticcheck
- unconvert
- unparam
- unused
- importas
- nestif
- gocritic
- err113
- interfacebloat
- promlinter
- copyloopvar
- dupl
- forbidigo
- gochecksumtype
- gocognit
- goconst
- gocyclo
- goheader
- mnd
- gomodguard_v2
- goprintffuncname
- gosec
- makezero
- noctx
- nosprintfhostport
- rowserrcheck
- tagliatelle
- usestdlibvars
- wastedassign
- whitespace
- wrapcheck
- iface
settings:
gocyclo:
min-complexity: 20
lll:
line-length: 120
unparam:
check-exported: true
revive:
rules:
- name: var-naming
- name: package-comments
- name: exported
disabled: true
errcheck:
check-type-assertions: true
check-blank: true
mnd:
# Allow common magic numbers
ignored-numbers:
- "0"
- "1"
- "2"
- "3"
- "4"
- "5"
- "10"
- "100"
- "1000"
- "1024"
- "2048"
- "4096"
ignored-functions:
- time.Sleep
- time.Duration
whitespace:
multi-if: true
multi-func: true
govet:
enable:
- printf
settings:
printf:
funcs:
- github.com/couchbase/indexing/secondary/logging.Infof
- github.com/couchbase/indexing/secondary/logging.Warnf
- github.com/couchbase/indexing/secondary/logging.Errorf
- github.com/couchbase/indexing/secondary/logging.Debugf
- github.com/couchbase/indexing/secondary/logging.Tracef
- github.com/couchbase/indexing/secondary/logging.Panicf
- github.com/couchbase/indexing/secondary/logging.Fatalf
exclusions:
paths:
- protobuf
- secondary/protobuf
formatters:
enable:
- gofmt
- goimports
exclusions:
paths:
- protobuf
- secondary/protobuf
output:
formats:
text:
path: stdout
colors: false
print-issued-lines: true
print-linter-name: true
show-stats: false
severity:
default: error