draft-classic/scripts/lint.sh

22 строки
461 B
Bash
Executable File

#!/usr/bin/env bash
# Mandatory tests
echo -e "\033[0;31mManadatory Linters: These must pass\033[0m"
gometalinter --vendor --tests --deadline=20s --disable-all \
--enable=gofmt \
--enable=misspell \
--enable=deadcode \
--enable=ineffassign \
--enable=vet \
./...
mandatory=$?
# Optional tests
echo -e "\033[0;32mOptional Linters: These should pass\033[0m"
gometalinter --vendor --tests --deadline=20s --disable-all \
--enable=golint \
./...
exit $mandatory