-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy path.golangci.yml
More file actions
121 lines (121 loc) · 2.46 KB
/
Copy path.golangci.yml
File metadata and controls
121 lines (121 loc) · 2.46 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
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
121
version: "2"
run:
tests: true
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- canonicalheader
- containedctx
- contextcheck
- copyloopvar
- decorder
- dogsled
- dupl
- dupword
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exptostd
- fatcontext
- forcetypeassert
- gocheckcompilerdirectives
- gochecknoinits
- gochecksumtype
- goconst
- gocritic
- godot
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- govet
- grouper
- iface
- importas
- inamedparam
- ineffassign
- intrange
- iotamixing
- makezero
- mirror
- misspell
- modernize
- musttag
- nakedret
- nestif
- nilerr
- nilnesserr
- noctx
- nolintlint
- nonamedreturns
- nosprintfhostport
- perfsprint
- predeclared
- reassign
- recvcheck
- revive
- rowserrcheck
- sloglint
- staticcheck
- testableexamples
- thelper
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
- wastedassign
- whitespace
settings:
gocritic:
disabled-checks:
- dupImport
- hugeParam
- rangeValCopy
- unnamedResult
enabled-tags:
- diagnostic
- style
- performance
revive:
rules:
- name: exported
arguments:
- checkPrivateReceivers
- name: package-comments
disabled: false
staticcheck:
checks:
- all
gosec:
excludes:
- G107 # Variable URL in HTTP request — intentional for ping/proxy
- G114 # HTTP server without timeouts — local dev tool
- G120 # FormValue without MaxBytesReader — local dev tool
- G203 # template.HTML from variable — intentional for slide rendering
- G704 # SSRF via taint — intentional for ping endpoint
- G204 # Subprocess with variable — intentional for shell command
- G702 # Command injection via taint — shell command is server-generated
- G304 # File path from variable — intentional for file serving
nestif:
min-complexity: 5
exhaustive:
default-signifies-exhaustive: true
exclusions:
generated: lax
presets:
- comments
- std-error-handling
formatters:
enable:
- gofmt
- gofumpt
settings:
gofumpt:
extra-rules: true