Skip to content

Commit

Permalink
Disregard protobuf generated files from lint tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pavlos Tzianos <[email protected]>
  • Loading branch information
ptzianos committed Feb 15, 2024
1 parent 2072d90 commit a5c8a9c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
---
runner:
go/vet:
cmd: go vet $(go list ./... | grep -v /vendor/)
cmd: go vet $(go list ./... | grep -v /vendor/ | grep -v github.com/ocurity/dracon/api/proto/)
format: govet

go/staticcheck:
cmd: staticcheck $(go list ./... | grep -v /vendor/)
cmd: staticcheck $(go list ./... | grep -v /vendor/ | grep -v github.com/ocurity/dracon/api/proto)
format: staticcheck

go/revive:
cmd: revive -exclude ./vendor/... -config revive.toml ./...
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/)
cmd: go vet -vettool=$(which containedctx) $(go list ./... | grep -v /vendor/ | grep -v github.com/ocurity/dracon/api/proto)
errorformat:
- '%f:%l:%c: %m'

go/ineffassign:
cmd: ineffassign $(go list ./... | grep -v /vendor/)
cmd: ineffassign $(go list ./... | grep -v /vendor/ | grep -v github.com/ocurity/dracon/api/proto)
errorformat:
- '%f:%l:%c: %m'

go/errorlint:
cmd: go-errorlint -errorf-multi -errorf -test $(go list ./... | grep -v /vendor/)
cmd: go-errorlint -errorf-multi -errorf -test $(go list ./... | grep -v /vendor/ | grep -v github.com/ocurity/dracon/api/proto)
errorformat:
- '%f:%l:%c: %m'

go/errcheck:
cmd: errcheck -asserts -blank $(go list ./... | grep -v /vendor/)
cmd: errcheck -asserts -blank $(go list ./... | grep -v /vendor/ | grep -v github.com/ocurity/dracon/api/proto)
errorformat:
- '%f:%l:%c:%m'

Expand Down

0 comments on commit a5c8a9c

Please sign in to comment.