-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
58 lines (51 loc) · 1.11 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
linters:
disable-all: true
enable:
- errcheck
- gosimple
- goimports
- govet
- ineffassign
- staticcheck
- unused
- gofmt
- exportloopref
- gocyclo
- funlen
- nakedret
- dupl
run:
timeout: 2m
issues:
exclude-dirs:
- gen/
exclude-rules:
- path: _test\.go
linters:
- funlen
linters-settings:
funlen:
# Checks the number of lines in a function.
# If lower than 0, disable the check.
# Default: 60
lines: 150
# Checks the number of statements in a function.
# If lower than 0, disable the check.
# Default: 40
statements: 70
nakedret:
# Make an issue if func has more lines of code than this setting, and it has naked returns.
# Default: 30
max-func-lines: 10
gosimple:
# Select the Go version to target.
# Default: 1.13
# Deprecated: use the global `run.go` instead.
go: "1.19"
# Sxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
# Default: ["*"]
checks: ["all"]
dupl:
# Tokens count to trigger issue.
# Default: 150
threshold: 220