-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy path.golangci.yml
More file actions
132 lines (132 loc) · 2.47 KB
/
Copy path.golangci.yml
File metadata and controls
132 lines (132 loc) · 2.47 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
122
123
124
125
126
127
128
129
130
131
132
version: "2"
run:
concurrency: 4
go: ""
modules-download-mode: readonly
issues-exit-code: 1
tests: true
output:
formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: false
colors: false
linters:
default: none
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- durationcheck
- errcheck
- errname
- errorlint
- ginkgolinter
- gocritic
- godot
- gosec
- govet
- grouper
- importas
- ineffassign
- lll
- loggercheck
- makezero
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- noctx
- nolintlint
- nonamedreturns
- nosprintfhostport
- prealloc
- predeclared
- promlinter
- reassign
- revive
- staticcheck
# - tagliatelle
- testableexamples
- testpackage
- thelper
- tparallel
- unconvert
- unparam
- usestdlibvars
- varnamelen
- whitespace
settings:
errcheck:
check-type-assertions: true
check-blank: true
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
lll:
line-length: 130
nakedret:
max-func-lines: 1
revive:
rules:
- name: dot-imports
disabled: true
staticcheck:
checks:
- all
varnamelen:
max-distance: 20
min-name-length: 2
check-type-param: true
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-chan-recv-ok: true
ignore-decls:
- c echo.Context
- t *testing.T
- w http.ResponseWriter
- r *http.Request
exclusions:
generated: strict
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
# Examples and UDS e2e tests intentionally exercise the deprecated
# internal-tokenization path during the deprecation window of #517.
- path: '^(examples/|tests/e2e/uds_tokenizer/)'
linters: [staticcheck]
text: '^SA1019'
paths:
- third_party$
- builtin$
- examples$
- \.pb\.go$
- _grpc\.pb\.go$
issues:
max-issues-per-linter: 0
max-same-issues: 0
uniq-by-line: false
fix: false
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: strict
paths:
- third_party$
- builtin$
- examples$
- \.pb\.go$
- _grpc\.pb\.go$