[lint] Switch to golangci-lint and fix errors

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl
2023-07-14 09:22:34 +02:00
parent a97d1126f9
commit 359cbbc5d9
10 changed files with 28 additions and 12 deletions

View File

@@ -33,12 +33,11 @@ jobs:
- name: Run staticcheck
run: staticcheck ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golint
run: golint -set_exit_status ./...
continue-on-error: true
- name: Run golangci-lint
run: golangci-lint run --timeout 5m
- name: Run tests
run: go test -race -vet=off ./...