-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.golangci.yml
38 lines (36 loc) · 1.09 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
linters:
enable:
# Default linters, plus these:
- exportloopref
- gocognit
- goconst
- gocritic
- gofmt
- gosec
- misspell
- paralleltest
- revive
linters-settings:
govet:
enable:
- fieldalignment
issues:
exclude:
# Disable scopelint errors on table driven tests
- Using the variable on range scope `tc` in function literal
# Disable documenting fstest Test functions
- exported function Test\S* should have comment or be unexported
- comment on exported function Test\S* should be of the form
exclude-rules:
- path: '(.+)_test\.go|^fstest/' # Disable some lint failures on test files and packages.
linters:
- govet
text: 'fieldalignment: struct with .* bytes could be .*' # Govet's fieldalignment memory size check on table-driven test case types requires field reordering to improve performance, which can lower readability without a meaningful impact to non-test code.
include:
# Re-enable default excluded rules
- EXC0001
- EXC0002
- EXC0012
- EXC0013
- EXC0014
- EXC0015