Skip to content

Commit b9562b2

Browse files
committed
explicitly enable linters in config file, rename deadline to timeout
1 parent 660ea7a commit b9562b2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.golangci.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
1+
linters:
2+
disable-all: true
3+
enable:
4+
- misspell
5+
- structcheck
6+
- golint
7+
- deadcode
8+
- errcheck
9+
- varcheck
10+
- goconst
11+
- unparam
12+
- ineffassign
13+
- nakedret
14+
- interfacer
15+
- gocyclo
16+
- lll
17+
- dupl
18+
- goimports
19+
120
linters-settings:
221
lll:
322
line-length: 170
423
dupl:
524
threshold: 400
25+
626
run:
7-
deadline: 5m
27+
timeout: 5m

0 commit comments

Comments
 (0)