-
Notifications
You must be signed in to change notification settings - Fork 12
/
.reviewdog.yml
51 lines (42 loc) · 1.64 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
43
44
45
46
47
48
49
50
51
---
runner:
go/vet:
cmd: go vet $(go list ./... | grep -v /vendor/ | grep -v github.com/smithy-security/smithy/api/proto/)
format: govet
go/staticcheck:
cmd: staticcheck -checks "all,-SA1019,-ST1000" $(go list ./... | grep -v /vendor/ | grep -v github.com/smithy-security/smithy/api/proto)
format: staticcheck
go/revive:
cmd: revive -exclude ./vendor/... -exclude ./api/proto/... -config revive.toml ./...
errorformat:
- '%f:%l:%c: %m'
go/containedctx:
cmd: go vet -vettool=$(which containedctx) $(go list ./... | grep -v /vendor/ | grep -v github.com/smithy-security/smithy/api/proto)
errorformat:
- '%f:%l:%c: %m'
go/ineffassign:
cmd: ineffassign $(go list ./... | grep -v /vendor/ | grep -v github.com/smithy-security/smithy/api/proto)
errorformat:
- '%f:%l:%c: %m'
go/errorlint:
cmd: go-errorlint -errorf-multi -errorf -test $(go list ./... | grep -v /vendor/ | grep -v github.com/smithy-security/smithy/api/proto)
errorformat:
- '%f:%l:%c: %m'
go/errcheck:
cmd: errcheck -asserts -blank $(go list ./... | grep -v /vendor/ | grep -v github.com/smithy-security/smithy/api/proto)
errorformat:
- '%f:%l:%c:%m'
npm/remark:
###################### Removes ansi codes see https://github.com/reviewdog/errorformat/issues/51
cmd: npm run lint | sed 's/\x1b\[[0-9;]*m//g'
format: remark-lint
# TODO: figure out how to set errorformat to parse the error output
# actionlint:
# cmd: actionlint
# errorformat:
# -
# TODO(OCU-130): Enable buf-lint again
# buf_lint:
# cmd: buf lint . --path ./api/
# level: error
# format: buf