add golangci-lint

This commit is contained in:
6543 2022-03-27 19:40:18 +02:00
parent ac72eb2d64
commit 9629df54b2

View file

@ -6,11 +6,12 @@ pipeline:
- go mod vendor
lint:
image: golang
image: golangci/golangci-lint:v1.45.2
commands:
- go version
- go install mvdan.cc/gofumpt@latest
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
- go vet
- golangci-lint run -v
# # TODO: make tests work
# test: