Skip to content

Commit

Permalink
Disable the linter in the build (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
brectanus-sigsci committed Jun 15, 2020
1 parent 88301f3 commit d58e3b8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ export CGO_ENABLED=0
go build .
go test .

### Run the linter
if [ -z "$(which gometalinter)" ]; then
go get github.com/alecthomas/gometalinter
fi
gometalinter \
--vendor \
--deadline=60s \
--disable-all \
--enable=vetshadow \
--enable=ineffassign \
--enable=deadcode \
--enable=golint \
--enable=gofmt \
--enable=vet \
--exclude=_gen.go \
--exclude=/usr/local/go/src/net/lookup_unix.go \
.
#### Run the linter
#if [ -z "$(which gometalinter)" ]; then
# go get github.com/alecthomas/gometalinter
#fi
#gometalinter \
# --vendor \
# --deadline=60s \
# --disable-all \
# --enable=vetshadow \
# --enable=ineffassign \
# --enable=deadcode \
# --enable=golint \
# --enable=gofmt \
# --enable=vet \
# --exclude=_gen.go \
# --exclude=/usr/local/go/src/net/lookup_unix.go \
# .

rm -rf artifacts/
mkdir -p artifacts/sigsci-module-golang
Expand Down

0 comments on commit d58e3b8

Please sign in to comment.