-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
120 lines (114 loc) · 2.38 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
linters:
disable-all: true
enable:
# Re-enable the default linters
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# Enable the "always useful" linters as of 1.53.3
- asasalint
- asciicheck
- bidichk
- decorder
- dogsled
- dupl
- dupword
- errchkjson
- errname
- errorlint
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- gci
- gocheckcompilerdirectives
- gochecknoinits
- goconst
- gocritic
- godot
- godox
- goerr113
- gofumpt
- gomoddirectives
- goprintffuncname
- gosec
- gosmopolitan
- importas
- interfacebloat
- ireturn
- makezero
- mirror
- misspell
- musttag
- nakedret
- nestif
- nilerr
- nilnil
- nolintlint
- nonamedreturns
- prealloc
- predeclared
- reassign
- revive
- tagalign
- tenv
- testableexamples
- unconvert
- unparam
- usestdlibvars
- wastedassign
- whitespace
# Disabled: Run periodically, but too many places to annotate
# - gomnd
# Disabled: Not how I do things
# - exhaustruct # Zero value is fine.
# - funlen # I'm not breaking up my math.
# - gochecknoglobals # How else am I supposed to declare constants.
# - lll # The 70s called and wants their ttys back.
# - paralleltest
# - varnamelen # The papers use short variable names.
# - tagliatelle # I want my tags to match the files.
# - thelper
# - tparallel
# - testpackage
# - wsl # Nice idea, not how I like to write code.
# Disabled: Annoying/Useless
# - cyclop
# - gocognit
# - gocyclo
# - maintidx
# - wrapcheck
# Disabled: Irrelevant/redundant
# - bodyclose
# - containedctx
# - contextcheck
# - depguard
# - durationcheck
# - execinquery
# - ginkgolinter
# - gofmt
# - goheader
# - goimports
# - gomodguard
# - grouper
# - loggercheck
# - nlreturn
# - noctx
# - nosprintfhostport
# - promlinter
# - rowserrcheck
# - sqlclosecheck
# - stylecheck
# - zerologlint
linters-settings:
gci:
sections:
- standard
- default
- prefix(gitlab.com/yawning/secp256k1-voi)
skip-generated: true
custom-order: true