Skip to content

Commit eb752c9

Browse files
committed
fix: add missing useful linters
1 parent d520530 commit eb752c9

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

.golangci.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
run:
22
deadline: 1m
33
tests: false
4-
#skip-files:
5-
# - ".*\\.gen\\.go"
4+
skip-files:
5+
- ".*\\.pb\\.go"
6+
- ".*\\.gen\\.go"
67

78
linters-settings:
89
golint:
@@ -18,18 +19,36 @@ linters-settings:
1819
linters:
1920
disable-all: true
2021
enable:
21-
- goconst
22-
- misspell
22+
- bodyclose
2323
- deadcode
24-
- misspell
25-
- structcheck
24+
- depguard
25+
- dogsled
26+
- dupl
2627
- errcheck
27-
- unused
28-
- varcheck
28+
- funlen
2929
- gochecknoinits
30-
- staticcheck
31-
- unconvert
30+
#- gocognit
31+
- goconst
32+
- gocritic
33+
- gocyclo
3234
- gofmt
3335
- goimports
3436
- golint
37+
- gosimple
38+
- govet
3539
- ineffassign
40+
- interfacer
41+
- maligned
42+
- misspell
43+
- nakedret
44+
- prealloc
45+
- scopelint
46+
- staticcheck
47+
- structcheck
48+
#- stylecheck
49+
- typecheck
50+
- unconvert
51+
- unparam
52+
- unused
53+
- varcheck
54+
- whitespace

0 commit comments

Comments
 (0)