a505b99ba3
test go 1.14 use golangci-lint
22 lines
566 B
Bash
Executable file
22 lines
566 B
Bash
Executable file
#!/bin/bash
|
|
# The script does automatic checking on a Go package and its sub-packages, including:
|
|
# 1. gofmt (http://golang.org/cmd/gofmt/)
|
|
# 2. golint (https://github.com/golang/lint)
|
|
# 3. go vet (http://golang.org/cmd/vet)
|
|
# 4. gosimple (https://github.com/dominikh/go-simple)
|
|
# 5. unconvert (https://github.com/mdempsky/unconvert)
|
|
#
|
|
|
|
set -ex
|
|
|
|
go test -tags="rpctest" ./...
|
|
|
|
# Automatic checks
|
|
golangci-lint run --deadline=10m --disable-all \
|
|
--enable=gofmt \
|
|
--enable=golint \
|
|
--enable=vet \
|
|
--enable=gosimple \
|
|
--enable=unconvert
|
|
|