2017-08-17 13:52:14 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e -o pipefail
|
|
|
|
|
|
|
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
2017-09-07 14:59:56 -04:00
|
|
|
# CI platforms differ, so per-platform GOMETALINTER_OPTS can be set
|
|
|
|
# from a platform-specific Dockerfile, otherwise let's just set
|
|
|
|
# (somewhat pessimistic) default of 10 minutes.
|
2018-01-16 17:33:06 -05:00
|
|
|
: ${GOMETALINTER_OPTS=--deadline=10m}
|
|
|
|
|
2017-09-07 14:59:56 -04:00
|
|
|
gometalinter \
|
2018-01-16 17:33:06 -05:00
|
|
|
${GOMETALINTER_OPTS} \
|
2019-01-09 20:50:47 -05:00
|
|
|
--config ${SCRIPTDIR}/gometalinter.json ./...
|