1
0
Fork 0
mirror of https://github.com/matrix-org/gomatrix synced 2025-05-12 18:44:55 +00:00

Run CI using golangci-lint, Go 1.13.10 (#78)

* Run CI using golangci-lint, Go 1.13.10

* Update pre-commit hook

* Fix lint issues
This commit is contained in:
Neil Alexander 2020-05-01 13:17:22 +01:00 committed by GitHub
parent 408fff5e6a
commit e5578b12c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 30 additions and 21 deletions

View file

@ -2,9 +2,6 @@
set -eu
golint
misspell --error .
# gofmt doesn't exit with an error code if the files don't match the expected
# format. So we have to run it and see if it outputs anything.
if gofmt -l -s . 2>&1 | read
@ -18,9 +15,5 @@ then
exit 1
fi
ineffassign .
go fmt
go tool vet --all --shadow .
gocyclo -over 12 .
go test -timeout 5s -test.v
golangci-lint run
go test -timeout 5s . ./...