-
Notifications
You must be signed in to change notification settings - Fork 359
/
.golangci.yml
49 lines (45 loc) · 1.01 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
linters:
disable-all: true
enable:
- dupword
- errcheck
- gci
- gocheckcompilerdirectives
- godot
- goimports
- ineffassign
- misspell
- nolintlint
- staticcheck
- unconvert
- unparam
- unused
fast: false
linters-settings:
errcheck:
check-type-assertions: true
gci:
sections:
- standard
- default
misspell:
locale: US
extra-words:
- typo: "cancelation"
correction: "cancellation"
- typo: "cancelations"
correction: "cancellations"
- typo: "cancelling"
correction: "canceling"
- typo: "cancelled"
correction: "canceled"
issues:
max-same-issues: 0
exclude:
- "composites: .+(primitive.(Binary|Decimal128|E|Timestamp)|types.(Destination|Source)(Client|Database)) struct literal uses unkeyed fields"
# TODO (TOOLS-3633): Remove this exclusion and actually fix the issues.
exclude-rules:
- path: '\.go$'
linters:
- staticcheck
text: "is deprecated"