-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
51 lines (50 loc) · 991 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
43
44
45
46
47
48
49
50
51
run:
skip-dirs:
- .github/
skip-files:
- .gitignore
- .go-version
- .golangci.yml
- go.mod
- go.sum
linters:
disable-all: true
enable:
- staticcheck
- errcheck
- gosimple
- govet
- ineffassign
- unused
- varcheck
- bodyclose
- errorlint
- godox
- gomnd
- goprintffuncname
- gosec
- nakedret
- nestif
- unconvert
- wastedassign
linters-settings:
staticcheck:
go: "1.16.6"
checks: ["all"]
gosimple:
go: "1.16.6"
checks: ["all"]
unused:
go: "1.16.6"
errorlint:
errorf: true
asserts: true
comparison: true
gomnd:
settings:
mnd:
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
checks: argument,case,condition,operation,return,assign
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 30