Skip to content
Permalink
Browse files

switch to the golangci-lint linter (#44)

  • Loading branch information...
dajohi committed Jan 30, 2019
1 parent 77c5f09 commit 257752f690675d7c8dddc31282f910335167dddf
Showing with 5 additions and 15 deletions.
  1. +1 −2 .travis.yml
  2. +4 −13 goclean.sh
@@ -3,8 +3,7 @@ go:
- 1.11.x
sudo: false
install:
- go get -v github.com/alecthomas/gometalinter
- gometalinter --install
- go get -v github.com/golangci/golangci-lint/cmd/golangci-lint
script:
- export GO111MODULE=on
- (cd cmd/dcrtime && go build)
@@ -13,22 +13,13 @@ set -ex
# run tests
env GORACE="halt_on_error=1" go test -race ./...

# Make sure gometalinter is installed and $GOPATH/bin is in your path.
# $ go get -v github.com/alecthomas/gometalinter"
# $ gometalinter --install"
if [ ! -x "$(type -p gometalinter)" ]; then
exit 1
fi
# golangci-lint (github.com/golangci/golangci-lint) is used to run each each
# static checker.

# check linters
# linters do not work with modules yet
go mod vendor
unset GO111MODULE

gometalinter --vendor --disable-all --deadline=10m \
golangci-lint run --disable-all --deadline=10m \
--enable=gofmt \
--enable=vet \
--enable=gosimple \
--enable=unconvert \
--enable=ineffassign \
./...
--enable=ineffassign

0 comments on commit 257752f

Please sign in to comment.
You can’t perform that action at this time.