-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
89 lines (89 loc) · 1.92 KB
/
.golangci.yml
File metadata and controls
89 lines (89 loc) · 1.92 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
version: "2"
run:
modules-download-mode: readonly
tests: true
linters:
default: all
disable:
- asasalint # poorly documented
- contextcheck # useful only sometimes but not often enough
- cyclop # cover in review
- exhaustruct # not helpful
- funcorder # not helpful
- funlen # cover in review
- gochecknoglobals # not practical
- gochecknoinits # not practical
- gocyclo # cover in review
- godox # not helpful
- interfacebloat # not practical
- ireturn # not helpful
- maintidx # cover in review
- mnd # not good
- nestif # I think it's buggy; gocognit is a little better
- noinlineerr # not helpful
- paralleltest # not helpful
- testpackage # not helpful
- varnamelen # cover in review
- wsl # replaced by wsl_5
settings:
custom:
println:
type: module
printf:
type: module
uselessf:
type: module
deferfor:
type: module
errresp:
type: module
mustcheck:
type: module
fatal:
type: module
depguard:
rules:
main:
deny:
- pkg: "github.com/pkg/errors"
desc: use internal errors package
errcheck:
check-blank: true
gomoddirectives:
replace-local: true
replace-allow-list:
- github.com/mutagen-io/mutagen
govet:
disable:
- fieldalignment
enable-all: true
lll:
line-length: 140
exclusions:
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- gen$
- thirdparty$
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
settings:
gci:
sections:
- standard
- default
- prefix(github.com/edaniels/graft)
exclusions:
paths:
- gen$
- thirdparty$
- third_party$
- builtin$
- examples$