Skip to content

Commit 50eda26

Browse files
committed
update linter
1 parent 5256405 commit 50eda26

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.golangci.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
1-
# Refer to golangci-lint's example config file for more options and information:
2-
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
31
version: "2"
42

53
run:
64
timeout: 5m
7-
modules-download-mode: readonly
5+
allow-parallel-runners: true
86

9-
linters:
7+
formatters:
108
enable:
11-
- errcheck
12-
- govet
13-
- staticcheck
9+
- goimports
10+
- gofmt
1411

15-
issues:
16-
exclude-use-default: false
17-
max-issues-per-linter: 0
18-
max-same-issues: 0
12+
linters:
13+
enable:
14+
- copyloopvar
15+
- dupword
16+
- durationcheck
17+
- fatcontext
18+
- ginkgolinter
19+
- gocritic
20+
- govet
21+
- loggercheck
22+
- misspell
23+
- perfsprint
24+
- revive
25+
- unconvert
26+
- makezero
27+
- errcheck
28+
- goconst
29+
- ineffassign
30+
- nakedret
31+
- prealloc
32+
- unparam
33+
- unused

0 commit comments

Comments
 (0)