-
Notifications
You must be signed in to change notification settings - Fork 46
/
.golangci.yaml
59 lines (58 loc) · 1.45 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
linters:
# Disable all linters.
# Default: false
disable-all: true
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
- errcheck
- staticcheck
- unused
issues:
exclude-rules:
# exclusions for errcheck
- path: "^.*/log.go$"
text: "globalLogger.Output.*not checked"
linters:
- errcheck
- path: "^.*_test.go$"
text: "release.Render.*not checked"
linters:
- errcheck
- path: "^.*_test.go$"
text: "release.Walk.*not checked"
linters:
- errcheck
- path: "internal/setup/fetch.go"
text: "lockFile.Unlock.*not checked"
linters:
- errcheck
# exclusions for unused
# addDebugCommand is an useful function that may be used later
- path: "cmd/chisel/main.go"
text: "addDebugCommand.*unused"
linters:
- unused
# exclude common (unused) issues from log.go files
- path: "^.*/log.go$"
text: "logf.*unused"
linters:
- unused
- path: "^.*/log.go$"
text: "debugf.*unused"
linters:
- unused
- path: "^.*/log.go$"
text: "globalDebug.*unused"
linters:
- unused
- path: "^.*/log.go$"
text: "globalLogger.*unused"
linters:
- unused
- path: "^.*.go$"
text: "\"golang.org/x/crypto/openpgp/\\w+\" is deprecated"
linters:
- staticcheck
max-issues-per-linter: 0
max-same-issues: 0