-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.reviewdog.yml
42 lines (41 loc) · 1.06 KB
/
.reviewdog.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
# reviewdog.yml
runner:
golint:
cmd: golint $(go list ./... | grep -v /vendor/)
format: golint
govet:
cmd: go vet $(go list ./... | grep -v /vendor/)
format: govet
unused:
cmd: unused $(go list ./... | grep -v /vendor/)
errorformat:
- "%f:%l:%c: %m"
errcheck:
cmd: errcheck -asserts -ignoretests -blank $(go list ./... | grep -v /vendor/)
errorformat:
- "%f:%l:%c:%m"
gosimple:
cmd: gosimple $(go list ./... | grep -v /vendor/)
errorformat:
- "%f:%l:%c: %m"
staticcheck:
cmd: staticcheck $(go list ./... | grep -v /vendor/)
errorformat:
- "%f:%l:%c: %m"
misspell:
cmd: misspell $(git ls-files)
errorformat:
- "%f:%l:%c: %m"
unparam:
cmd: unparam $(go list ./... | grep -v /vendor/)
errorformat:
- "%f:%l:%c: %m"
revive:
cmd: revive -config=.revive.toml $(go list ./... | grep -v /vendor/)
format: golint
golangci:
cmd: golangci-lint run --out-format=line-number ./...
errorformat:
- '%E%f:%l:%c: %m'
- '%E%f:%l: %m'
- '%C%.%#'