forked from trezor/trezord-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
63 lines (54 loc) · 1.24 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
52
53
54
55
56
57
58
59
60
61
62
63
run:
deadline: 10m
issues:
exclude-rules:
# Exclude underscore warnings, too much work
# for a semi-vendored wrapper
- linters:
- stylecheck
path: usb/lowlevel/libusb/libusb.go
text: "should not use underscores in Go names"
# Exclude all cap warnings, too much work
# for a semi-vendored wrapper
- linters:
- stylecheck
path: usb/lowlevel/libusb/libusb.go
text: "ALL_CAPS"
- linters:
- gocritic
path: usb/lowlevel/libusb/libusb.go
- linters:
- unused
- deadcode
path: usb/lowlevel/hidapi/wchar.go
# Before we split into internal/non-internal, ignore comments
- linters:
- stylecheck
text: "(comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)"
exclude-use-default: false
linters:
enable:
- govet
- staticcheck
- gosec
- stylecheck
- interfacer
- unconvert
- dupl
- goconst
- gocyclo
- gofmt
- goimports
- maligned
- depguard
- misspell
- unparam
- nakedret
- prealloc
- scopelint
- gochecknoinits
- gocritic
linters-settings:
gofmt:
# causes errors in old go
simplify: true