-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
81 lines (81 loc) · 2.02 KB
/
.golangci.yml
File metadata and controls
81 lines (81 loc) · 2.02 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
version: "2"
linters:
settings:
errcheck:
check-type-assertions: false
check-blank: false
exclude-functions:
- fmt.Fprintf
- fmt.Fprintln
- fmt.Printf
- fmt.Println
- fmt.Scanln
- fmt.Sscanf
- (fmt.State).Write
- (*os/exec.Cmd).CombinedOutput
- path/filepath.Walk
- syscall.Flock
- (*database/sql.Rows).Scan
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
path: _test\.go
- linters:
- errcheck
text: Error return value of `logger.Log`
- linters:
- errcheck
text: Error return value of `audit.MaybeCreateAnchor`
- linters:
- errcheck
text: SaveSession
- linters:
- errcheck
text: Error return value of `lockMgr.Release`
- linters:
- errcheck
text: Error return value of `pool.AddReservation`
- linters:
- errcheck
text: Error return value of `reg.Register`
- linters:
- errcheck
text: Error return value of `stager.
- linters:
- errcheck
text: Error return value of `m.git`
# ST1008: error return position — requires changing exported interfaces
- linters:
- staticcheck
text: "ST1008"
# QF1001: De Morgan's law — current form is more readable
- linters:
- staticcheck
text: "QF1001"
# QF1011: type omission in test — explicit type is intentional
- linters:
- staticcheck
path: _test\.go
text: "QF1011"
# QF1012: fmt.Fprintf vs WriteString(Sprintf) — style preference
- linters:
- staticcheck
text: "QF1012"
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$