-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
42 lines (40 loc) · 884 Bytes
/
.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
linters:
disable-all: true
enable:
- govet
- errcheck
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
- golint
- goimports
- gocritic
- scopelint
issues:
exclude-use-default: false # Enable golint comment warnings
exclude:
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
- "shadow: declaration of .err. shadows declaration"
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- ifElseChain
- singleCaseSwitch
- commentFormatting
- unnamedResult
- commentedOutCode
- hugeParam
- rangeValCopy
govet:
check-shadowing: true